Class ResourceCreatedOrUpdatedEventType
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.documents.DocumentsEventType
org.ametys.plugins.workspaces.events.documents.ResourceCreatedOrUpdatedEventType
- All Implemented Interfaces:
EventType
,LogEnabled
,PluginAware
,Configurable
,Serviceable
EventType
implementation for the renaming of a resource-
Field Summary
Fields inherited from class org.ametys.plugins.workspaces.events.documents.DocumentsEventType
_ametysObjectResolver, EVENT_CATEGORY_DOCUMENTS, EVENT_PARENT_FOLDER_ID_PROPERTY, EVENT_PARENT_FOLDER_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, PROJECT_ACCESS, PROJECT_CATEGORY, PROJECT_NAME, PROJECT_TITLE, PROJECT_URL
Fields inherited from class org.ametys.plugins.repository.events.DefaultEventType
_currentUserProvider, _userHelper, AUTHOR, DATE, NAME, TYPE
Fields inherited from interface org.ametys.plugins.repository.events.EventType
EVENT_AUTHOR, EVENT_DATE, EVENT_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevent2JSON
(javax.jcr.Node eventNode) Format an event node to JSONprotected void
storeAdditionalEventData
(javax.jcr.Node eventNode, Map<String, Object> parameters) Store additional data on eventMethods inherited from class org.ametys.plugins.workspaces.events.documents.DocumentsEventType
isMergeable, mergeEvents, 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 Details
-
ResourceCreatedOrUpdatedEventType
public ResourceCreatedOrUpdatedEventType()
-
-
Method Details
-
storeAdditionalEventData
protected void storeAdditionalEventData(javax.jcr.Node eventNode, Map<String, Object> parameters) throws javax.jcr.RepositoryExceptionDescription copied from class:DefaultEventType
Store additional data on event- Overrides:
storeAdditionalEventData
in classDocumentsEventType
- Parameters:
eventNode
- The event nodeparameters
- The event's parameters- Throws:
javax.jcr.RepositoryException
- if an error occurred
-
event2JSON
Description copied from interface:EventType
Format an event node to JSON- Specified by:
event2JSON
in interfaceEventType
- Overrides:
event2JSON
in classDocumentsEventType
- Parameters:
eventNode
- the node of an event- Returns:
- the JSON for the node
- Throws:
javax.jcr.RepositoryException
- if an error occurs while manipulating the repository
-