@Named(value="documentService") public class DocumentService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_CREATED_ACTIVITY
The file created activity.
|
| Constructor and Description |
|---|
DocumentService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.services.organization.OrganizationService organizationService)
Instantiates a new document service.
|
| 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)
Store file.
|
String |
storeScript(String scriptData)
Store script.
|
protected void |
storeVideos(String filename,
String name,
boolean isPrivateContext,
String uuid,
String username,
String path,
String workspace,
String type,
String fileType)
Store videos.
|
void |
uploadDocuments(org.json.JSONArray documents,
PopulatorService populatorService_)
Upload documents.
|
public static String FILE_CREATED_ACTIVITY
@Inject
public DocumentService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.services.organization.OrganizationService organizationService)
repositoryService - the repository servicesessionProviderService - the session provider servicenodeHierarchyCreator - the node hierarchy creatorlistenerService - the listener serviceorganizationService - the organization servicepublic void uploadDocuments(org.json.JSONArray documents,
PopulatorService populatorService_)
documents - the documentspopulatorService_ - the populator serviceprotected void storeFile(String filename, String name, boolean isPrivateContext, String uuid, String username, String path, String workspace, String fileType)
filename - the filenamename - the nameisPrivateContext - the is private contextuuid - the uuidusername - the usernamepath - the pathworkspace - the workspacefileType - the file typeprotected void storeVideos(String filename, String name, boolean isPrivateContext, String uuid, String username, String path, String workspace, String type, String fileType)
filename - the filenamename - the nameisPrivateContext - the is private contextuuid - the uuidusername - the usernamepath - the pathworkspace - the workspacetype - the typefileType - the file typeprotected org.exoplatform.services.jcr.ext.common.SessionProvider startSessionAs(String user)
user - the userprotected void endSession()
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.