Class RDBMSActivityFileStoragePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.core.storage.ActivityFileStoragePlugin
org.exoplatform.social.core.jpa.storage.RDBMSActivityFileStoragePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
This plugin will store activity attachment files using FileService
-
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
ConstructorsConstructorDescriptionRDBMSActivityFileStoragePlugin(org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.container.xml.InitParams initParams) -
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) Attach existing files to a given activityvoidstoreAttachments(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ActivityFile... attachments) Store attachments to a given activityMethods 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
-
RDBMSActivityFileStoragePlugin
public RDBMSActivityFileStoragePlugin(org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.container.xml.InitParams initParams)
-
-
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 Description copied from class:ActivityFileStoragePluginStore attachments to a given activity- Specified by:
storeAttachmentsin classActivityFileStoragePlugin- Parameters:
activity-streamOwner-attachments-- 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 Description copied from class:ActivityFileStoragePluginAttach existing files to a given activity- Specified by:
attachExistingFilein classActivityFileStoragePlugin- Parameters:
activity-streamOwner-attachment-- Throws:
Exception
-