Class ECMSActivityFileStoragePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.core.storage.ActivityFileStoragePlugin
org.exoplatform.wcm.ext.component.activity.ECMSActivityFileStoragePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class ECMSActivityFileStoragePlugin
extends org.exoplatform.social.core.storage.ActivityFileStoragePlugin
This plugin will store activity attachment files in JCR
-
Field Summary
Fields inherited from class org.exoplatform.social.core.storage.ActivityFileStoragePlugin
ACTIVITY_FILE_ID_PARAM_NAME, ACTIVITY_FILE_STORAGE_PARAM_NAME, datasourceName, priority, TEMPLATE_PARAMS_SEPARATORFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionECMSActivityFileStoragePlugin(org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.cms.documents.AutoVersionService autoVersionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachExistingFile(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ActivityFile attachment) voidstoreAttachments(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ActivityFile... attachments) Methods inherited from class org.exoplatform.social.core.storage.ActivityFileStoragePlugin
concatenateParam, getDatasourceName, getPriority, readParamValues, setDatasourceName, setPriorityMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
ECMSActivityFileStoragePlugin
public ECMSActivityFileStoragePlugin(org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.services.cms.documents.AutoVersionService autoVersionService)
-
-
Method Details
-
storeAttachments
public void storeAttachments(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ActivityFile... attachments) throws Exception - Specified by:
storeAttachmentsin classorg.exoplatform.social.core.storage.ActivityFileStoragePlugin- Throws:
Exception
-
attachExistingFile
public void attachExistingFile(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ActivityFile attachment) throws Exception - Specified by:
attachExistingFilein classorg.exoplatform.social.core.storage.ActivityFileStoragePlugin- Throws:
Exception
-