Class ActivityFileStoragePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.core.storage.ActivityFileStoragePlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
- Direct Known Subclasses:
RDBMSActivityFileStoragePlugin
public abstract class ActivityFileStoragePlugin
extends org.exoplatform.container.component.BaseComponentPlugin
This is an abstract class that is the base class of component plugins that
will handle Activity attachments storage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Stringprotected intstatic final StringFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionActivityFileStoragePlugin(org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidattachExistingFile(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 activityprotected voidintreadParamValues(Map<String, String> activityParams, String paramName) voidsetDatasourceName(String datasourceName) voidsetPriority(int priority) abstract 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) Store attachments to a given activityMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
ACTIVITY_FILE_STORAGE_PARAM_NAME
- See Also:
-
ACTIVITY_FILE_ID_PARAM_NAME
- See Also:
-
TEMPLATE_PARAMS_SEPARATOR
- See Also:
-
datasourceName
-
priority
protected int priority
-
-
Constructor Details
-
ActivityFileStoragePlugin
public ActivityFileStoragePlugin(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
storeAttachments
public abstract 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 Store attachments to a given activity- Parameters:
activity-streamOwner-attachments-- Throws:
Exception
-
attachExistingFile
public abstract 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 Attach existing files to a given activity- Parameters:
activity-streamOwner-attachment-- Throws:
Exception
-
getDatasourceName
-
setDatasourceName
-
setPriority
public void setPriority(int priority) -
getPriority
public int getPriority() -
concatenateParam
-
readParamValues
-