public class DocumentModule extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_CREATED_ACTIVITY
The file created activity.
|
protected org.exoplatform.services.listener.ListenerService |
listenerService |
protected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator |
nodeHierarchyCreator |
protected org.exoplatform.services.organization.OrganizationService |
organizationService |
protected org.exoplatform.services.jcr.RepositoryService |
repositoryService |
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviderService |
| Constructor and Description |
|---|
DocumentModule(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.services.organization.OrganizationService organizationService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endSession()
End session.
|
protected org.exoplatform.services.jcr.ext.common.SessionProvider |
startSessionAs(String user)
Start session as.
|
protected void |
storeFile(String filename,
String name,
boolean isPrivateContext,
String uuid,
String username,
String path,
String workspace,
String fileType,
String dataFolderPath)
Store file.
|
String |
storeScript(String scriptData,
String dataFolderPath)
Store script.
|
protected void |
storeVideos(String filename,
String name,
boolean isPrivateContext,
String uuid,
String username,
String path,
String workspace,
String type,
String fileType,
String dataFolderPath)
Store videos.
|
void |
uploadDocuments(org.json.JSONArray documents,
String defaultDataFolderPath)
Upload documents.
|
protected org.exoplatform.services.jcr.RepositoryService repositoryService
protected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator
protected org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService
protected org.exoplatform.services.listener.ListenerService listenerService
protected org.exoplatform.services.organization.OrganizationService organizationService
public static String FILE_CREATED_ACTIVITY
public DocumentModule(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.services.organization.OrganizationService organizationService)
public void uploadDocuments(org.json.JSONArray documents,
String defaultDataFolderPath)
documents - the documentsdefaultDataFolderPath - the documentsprotected void storeFile(String filename, String name, boolean isPrivateContext, String uuid, String username, String path, String workspace, String fileType, String dataFolderPath)
filename - the filenamename - the nameisPrivateContext - the is private contextuuid - the uuidusername - the usernamepath - the pathworkspace - the workspacefileType - the file typedataFolderPath - the data folder pathprotected void storeVideos(String filename, String name, boolean isPrivateContext, String uuid, String username, String path, String workspace, String type, String fileType, String dataFolderPath)
filename - the filenamename - the nameisPrivateContext - the is private contextuuid - the uuidusername - the usernamepath - the pathworkspace - the workspacetype - the typefileType - the file typedataFolderPath - the data folder path typeprotected org.exoplatform.services.jcr.ext.common.SessionProvider startSessionAs(String user)
user - the userprotected void endSession()
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.