Class ContentCommentedActivityType
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.projects.AbstractProjectsActivityType
org.ametys.plugins.workspaces.activities.projects.WebContentActivityType
org.ametys.plugins.workspaces.activities.projects.ContentCommentedActivityType
- All Implemented Interfaces:
ActivityType
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Activity type to represent that a content was commented
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the data path for the parent comment authorstatic final String
the data path for the parent comment datestatic final String
the data path for the parent comment summarystatic final String
the data name for the commentstatic final String
the data name for the composite storing the parent comment infostatic final String
the data path for the parent comment summaryFields inherited from class org.ametys.plugins.workspaces.activities.projects.WebContentActivityType
CONTENT_ID, CONTENT_SUMMARY, CONTENT_TITLE, CONTENT_TYPE, PAGE_ID
Fields inherited from class org.ametys.plugins.workspaces.activities.projects.AbstractProjectsActivityType
EVENT_CATEGORY_PROJECTS
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 TypeMethodDescriptiongetMailBodyURI
(Activity activity) Get the URI to resolve to get the mail bodyvoid
service
(ServiceManager serviceManager) void
setAdditionalActivityData
(Activity activity, Map<String, Object> parameters) Add the value specific to the activity type to the activityboolean
Check if an event with an id in the getSupportedEventType should actually leads to the creation of an activityMethods inherited from class org.ametys.plugins.workspaces.activities.projects.WebContentActivityType
getFilterPatternExpression, getProjectFromEvent, getSubjectI18nParams, getTargetAmetysObject, isMergeable
Methods inherited from class org.ametys.plugins.workspaces.activities.AbstractWorkspacesActivityType
_addValueIfExists, additionnalDataToJSONForClient, getParentProject, getSubjectI18nKey, getUsersEmailToNotify
Methods inherited from class org.ametys.plugins.repository.activities.DefaultActivityType
configure, getSupportedEventTypes, mergeActivities, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
PARENT_COMMENT
the data name for the composite storing the parent comment info- See Also:
-
COMMENT_DATE
the data path for the parent comment date- See Also:
-
COMMENT_AUTHOR
the data path for the parent comment author- See Also:
-
PARENT_COMMENT_SUMMARY
the data path for the parent comment summary- See Also:
-
COMMENT_ID
the data path for the parent comment summary- See Also:
-
COMMENT_SUMMARY
the data name for the comment- See Also:
-
-
Constructor Details
-
ContentCommentedActivityType
public ContentCommentedActivityType()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWebContentActivityType
- Throws:
ServiceException
-
support
Description copied from class:AbstractWorkspacesActivityType
Check if an event with an id in the getSupportedEventType should actually leads to the creation of an activity- Overrides:
support
in classAbstractWorkspacesActivityType
- Parameters:
event
- the event to test- Returns:
- true if an activity should be created
-
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 classWebContentActivityType
- Parameters:
activity
- the activityparameters
- the activity parameters- Throws:
javax.jcr.RepositoryException
- if an error occurs while manipulating the repository
-
getMailBodyURI
Description copied from class:AbstractWorkspacesActivityType
Get the URI to resolve to get the mail body- Overrides:
getMailBodyURI
in classWebContentActivityType
- Parameters:
activity
- the activity- Returns:
- the uri
-