Class PostCreatedActivityType
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.repository.activities.DefaultActivityType
org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityType
org.ametys.plugins.workspaces.activities.threads.ThreadsActivityType
org.ametys.plugins.workspaces.activities.threads.PostCreatedActivityType
- All Implemented Interfaces:
ActivityType
,LogEnabled
,PluginAware
,Configurable
,Contextualizable
,Serviceable
ActivityType
implementation for the addition of a post-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
data name for the post messagestatic final String
data name for the post idstatic final String
data name for the thread authorstatic final String
data name for the thead creation dateFields inherited from class org.ametys.plugins.workspaces.activities.threads.ThreadsActivityType
_context, _threadModule, ACTIVITY_CATEGORY_THREADS, THREAD_ID, THREAD_TITLE
Fields inherited from class org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityType
_notificationPreferenceHelper, _projectManager, _resolver, PROJECT_ACCESS, PROJECT_CATEGORY, PROJECT_NAME, PROJECT_TITLE, PROJECT_URL
Fields inherited from class org.ametys.plugins.repository.activities.DefaultActivityType
_currentUserProvider, _userHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isMergeable
(Activity activity1, Activity activity2) Determines if two activities can be mergedvoid
service
(ServiceManager serviceManager) void
setAdditionalActivityData
(Activity activity, Map<String, Object> parameters) Add the value specific to the activity type to the activityMethods inherited from class org.ametys.plugins.workspaces.activities.threads.ThreadsActivityType
additionnalDataToJSONForClient, contextualize, getMailBodyURI, getProjectFromEvent, getSubjectI18nParams, getTargetAmetysObject, mergeActivities
Methods inherited from class org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityType
_addValueIfExists, getParentProject, getSubjectI18nKey, getUsersEmailToNotify, support
Methods inherited from class org.ametys.plugins.repository.activities.DefaultActivityType
configure, getSupportedEventTypes, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
MESSAGE
data name for the post message- See Also:
-
POST_ID
data name for the post id- See Also:
-
THREAD_AUTHOR
data name for the thread author- See Also:
-
THREAD_CREATIONDATE
data name for the thead creation date- See Also:
-
-
Constructor Details
-
PostCreatedActivityType
public PostCreatedActivityType()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classThreadsActivityType
- Throws:
ServiceException
-
setAdditionalActivityData
public void setAdditionalActivityData(Activity activity, Map<String, Object> parameters) throws javax.jcr.RepositoryExceptionDescription copied from interface:ActivityType
Add the value specific to the activity type to the activity- Specified by:
setAdditionalActivityData
in interfaceActivityType
- Overrides:
setAdditionalActivityData
in classThreadsActivityType
- Parameters:
activity
- the activityparameters
- the activity parameters- Throws:
javax.jcr.RepositoryException
- if an error occurs while manipulating the repository
-
isMergeable
Description copied from interface:ActivityType
Determines if two activities can be merged- Specified by:
isMergeable
in interfaceActivityType
- Overrides:
isMergeable
in classThreadsActivityType
- Parameters:
activity1
- The first activityactivity2
- The second activity- Returns:
- true if the events can be merged
-