Class NewsPublishedActivityType
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.NewsPublishedActivityType
- All Implemented Interfaces:
ActivityType
,LogEnabled
,PluginAware
,Configurable
,Serviceable
ActivityType
implementation for news publication-
Field Summary
Fields 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 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, support
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
-
CONTENT_TAGS
data name for the content tags- See Also:
-
-
Constructor Details
-
NewsPublishedActivityType
public NewsPublishedActivityType()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWebContentActivityType
- 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 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
-