Class WikiPageUpdatedEventType
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.repository.events.DefaultEventType
-
- org.ametys.plugins.workspaces.events.WorkspacesEventType
-
- org.ametys.plugins.workspaces.events.wiki.WikiEventType
-
- org.ametys.plugins.workspaces.events.wiki.WikiPageUpdatedEventType
-
- All Implemented Interfaces:
EventType
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class WikiPageUpdatedEventType extends WikiEventType
EventType
implementation for the creation of a new page in the wiki module
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.workspaces.events.wiki.WikiEventType
EVENT_CATEGORY_WIKI, EVENT_PAGE_ID_PROPERTY, EVENT_PAGE_TITLE_PROPERTY
-
Fields inherited from class org.ametys.plugins.workspaces.events.WorkspacesEventType
_projectManager, _resolver, EVENT_PROJECT_CATEGORY_PROPERTY, EVENT_PROJECT_NAME_PROPERTY, EVENT_PROJECT_TITLE_PROPERTY
-
Fields inherited from class org.ametys.plugins.repository.events.DefaultEventType
_currentUserProvider, _userHelper
-
Fields inherited from interface org.ametys.plugins.repository.events.EventType
EVENT_AUTHOR, EVENT_DATE, EVENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description WikiPageUpdatedEventType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
event2JSON(Node eventNode)
Format an event node to JSONMap<String,Object>
mergeEvents(List<Map<String,Object>> events)
Merge events into one event.-
Methods inherited from class org.ametys.plugins.workspaces.events.wiki.WikiEventType
storeAdditionalEventData
-
Methods inherited from class org.ametys.plugins.workspaces.events.WorkspacesEventType
isMergeable, service
-
Methods inherited from class org.ametys.plugins.repository.events.DefaultEventType
_getAuthor, configure, getSupportedTypes, setPluginInfo, storeEvent
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
WikiPageUpdatedEventType
public WikiPageUpdatedEventType()
-
-
Method Detail
-
event2JSON
public Map<String,Object> event2JSON(Node eventNode) throws RepositoryException
Description copied from interface:EventType
Format an event node to JSON- Specified by:
event2JSON
in interfaceEventType
- Overrides:
event2JSON
in classWorkspacesEventType
- Parameters:
eventNode
- the node of an event- Returns:
- the JSON for the node
- Throws:
RepositoryException
- if an error occurs while manipulating the repository
-
mergeEvents
public Map<String,Object> mergeEvents(List<Map<String,Object>> events)
Description copied from interface:EventType
Merge events into one event. Be careful : be sure that the events can be merged calling isMergeable method before- Specified by:
mergeEvents
in interfaceEventType
- Overrides:
mergeEvents
in classDefaultEventType
- Parameters:
events
- The events to merge- Returns:
- Merged event
-
-