Package org.exoplatform.container
Interface RootContainer.PortalContainerInitTask
- All Known Implementing Classes:
PortalContainer.RegisterTask,PortalContainer.UnregisterTask,RootContainer.PortalContainerPostCreateTask,RootContainer.PortalContainerPostInitTask,RootContainer.PortalContainerPreInitTask
- Enclosing class:
RootContainer
public static interface RootContainer.PortalContainerInitTask
This interface is used to define a task that needs to be launched at a given state during the
initialization of a portal container
-
Method Summary
Modifier and TypeMethodDescriptionbooleanalreadyExists(PortalContainer portalContainer) This method allows the implementation to define what the state "already exists" means for a portal containervoidexecute(jakarta.servlet.ServletContext context, PortalContainer portalContainer) Executes the taskgetType()voidonAlreadyExists(jakarta.servlet.ServletContext context, PortalContainer portalContainer) This method is called if the related portal container has already been registered
-
Method Details
-
alreadyExists
This method allows the implementation to define what the state "already exists" means for a portal container- Parameters:
portalContainer- the value of the current portal container- Returns:
trueif the portal container exists according to the task requirements,falseotherwise
-
onAlreadyExists
This method is called if the related portal container has already been registered- Parameters:
context- the servlet context of the web applicationportalContainer- the value of the current portal container
-
execute
Executes the task- Parameters:
context- the servlet context of the web applicationportalContainer- The portal container on which we would like to execute the task
-
getType
String getType()- Returns:
- the type of the task
-