Class AbstractConvertMinisiteEventObserver
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workspaces.minisite.AbstractConvertMinisiteEventObserver
- All Implemented Interfaces:
Observer,LogEnabled,Prioritizable,Supporter<Event>,Serviceable
- Direct Known Subclasses:
ConvertContentValidatedEvent2MinisitePageEventObserver,ConvertPageEvent2MinisitePageEventObserver
public abstract class AbstractConvertMinisiteEventObserver
extends AbstractLogEnabled
implements Observer, Serviceable
Abstract observer for events which have to be convert to minisite page event
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObservationManagerThe observation managerprotected ProjectManagerThe project managerFields inherited from interface org.ametys.core.observation.Observer
MAX_PRIORITY, MIN_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the priority for the component.protected booleanisMinisitePage(Project project, SitemapElement page) Determines if the page is part of minisite project module (root page excluded)voidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_projectManager
The project manager -
_observationManager
The observation manager
-
-
Constructor Details
-
AbstractConvertMinisiteEventObserver
public AbstractConvertMinisiteEventObserver()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getPriority
Description copied from interface:PrioritizableGet the priority for the component. On components usingPrioritizableinterface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriorityin interfacePrioritizable- Returns:
- the priority
-
isMinisitePage
Determines if the page is part of minisite project module (root page excluded)- Parameters:
project- the project. Can not be nullpage- the page- Returns:
- true if the page is a page of minisite
-