public class UpdatePageOnContentValidatedObserver extends AbstractWorkspacesEventsObserver implements Contextualizable
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private CurrentUserProvider |
_currentUserProvider |
private ObservationManager |
_observationManager |
private ProjectManager |
_projectManager |
_eventTypeExtensionPoint
MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
UpdatePageOnContentValidatedObserver() |
Modifier and Type | Method and Description |
---|---|
private Project |
_getProject() |
private void |
_updateContentPage(Content content,
Project project) |
void |
contextualize(Context context) |
void |
observe(Event event,
Map<String,Object> transientVars)
Observes an event.
|
void |
service(ServiceManager serviceManager) |
protected void |
storeEvent(Event event,
Project project)
Store the event
|
boolean |
supports(Event event)
Checks if the event is supported.
|
getEventParameters, getPriority, getProject
getLogger, setLogger
private ProjectManager _projectManager
private ObservationManager _observationManager
private CurrentUserProvider _currentUserProvider
public UpdatePageOnContentValidatedObserver()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractWorkspacesEventsObserver
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public boolean supports(Event event)
Observer
public void observe(Event event, Map<String,Object> transientVars) throws Exception
Observer
observe
in interface Observer
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event.
This may allow optimizations between observers.Exception
- if an error occurs.
All exceptions will be logged but not propagated, as the observation mechanism should never fail.private void _updateContentPage(Content content, Project project)
private Project _getProject()
protected void storeEvent(Event event, Project project) throws RepositoryException
storeEvent
in class AbstractWorkspacesEventsObserver
event
- The eventproject
- The project. Can be nullRepositoryException
- if failed to store event