Class 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_SEPARATOR
      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Constructor Summary

      Constructors 
      Constructor Description
      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 Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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)  
      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)  
      • Methods inherited from class org.exoplatform.social.core.storage.ActivityFileStoragePlugin

        concatenateParam, getDatasourceName, getPriority, readParamValues, setDatasourceName, setPriority
      • Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

        getDescription, getName, setDescription, setName
    • Constructor Detail

      • 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 Detail

      • 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:
        storeAttachments in class org.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:
        attachExistingFile in class org.exoplatform.social.core.storage.ActivityFileStoragePlugin
        Throws:
        Exception