public abstract class AbstractWorkspacesEventsObserver extends AbstractLogEnabled implements Observer, Serviceable
Observer
implementation for workspaces' eventsModifier and Type | Field and Description |
---|---|
protected EventTypeExtensionPoint |
_eventTypeExtensionPoint
Event type extension point
|
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
AbstractWorkspacesEventsObserver() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
getEventParameters(Event event,
Project project)
Get the event's parameters
|
int |
getPriority(Event event)
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers. |
protected Project |
getProject(AmetysObject ao)
Get the parent project
|
void |
service(ServiceManager serviceManager) |
protected void |
storeEvent(Event event,
Project project)
Store the event
|
getLogger, setLogger
protected EventTypeExtensionPoint _eventTypeExtensionPoint
public AbstractWorkspacesEventsObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
public int getPriority(Event event)
Observer
getPriority
in interface Observer
event
- the event.protected void storeEvent(Event event, Project project) throws RepositoryException
event
- The eventproject
- The project. Can be nullRepositoryException
- if failed to store eventprotected Map<String,Object> getEventParameters(Event event, Project project)
event
- The eventproject
- The project. Can not be nullprotected Project getProject(AmetysObject ao)
ao
- The ametys objectnull
if not found