Class MapPageFlowDefinitionRegistry
- java.lang.Object
-
- org.onehippo.forge.pageflow.core.def.impl.MapPageFlowDefinitionRegistry
-
- All Implemented Interfaces:
PageFlowDefinitionRegistry
- Direct Known Subclasses:
RepositoryMapPageFlowDefinitionRegistry
public class MapPageFlowDefinitionRegistry extends Object implements PageFlowDefinitionRegistry
Generic purposeMap
basedPageFlowDefinitionRegistry
implementation.
-
-
Constructor Summary
Constructors Constructor Description MapPageFlowDefinitionRegistry()
MapPageFlowDefinitionRegistry(Map<String,PageFlowDefinition> pageFlowDefMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPageFlowDefinition(PageFlowDefinition pageFlowDef)
void
clearPageFlowDefinitions()
Clear all the registeredPageFlowDefinition
s in the registry.PageFlowDefinition
getPageFlowDefinition(String flowId)
Retrieve thePageFlowDefinition
by the identifier (flowId
).void
removePageFlowDefinition(String flowId)
Remove thePageFlowDefinition
by the identifier (flowId
) of thePageFlowDefinition
.void
removePageFlowDefinitionByUuid(String uuid)
Remove thePageFlowDefinition
by the optionaluuid
of thePageFlowDefinition
.
-
-
-
Constructor Detail
-
MapPageFlowDefinitionRegistry
public MapPageFlowDefinitionRegistry()
-
MapPageFlowDefinitionRegistry
public MapPageFlowDefinitionRegistry(Map<String,PageFlowDefinition> pageFlowDefMap)
-
-
Method Detail
-
getPageFlowDefinition
public PageFlowDefinition getPageFlowDefinition(String flowId) throws PageFlowException
Description copied from interface:PageFlowDefinitionRegistry
Retrieve thePageFlowDefinition
by the identifier (flowId
). Return null if there's noPageFlowDefinition
found by the identifier.- Specified by:
getPageFlowDefinition
in interfacePageFlowDefinitionRegistry
- Parameters:
flowId
- the identifier of thePageFlowDefinition
- Returns:
- the
PageFlowDefinition
identified byflowId
, or null if not found. - Throws:
PageFlowException
- if any exception occurs
-
addPageFlowDefinition
public void addPageFlowDefinition(PageFlowDefinition pageFlowDef) throws PageFlowException
- Throws:
PageFlowException
-
removePageFlowDefinitionByUuid
public void removePageFlowDefinitionByUuid(String uuid) throws PageFlowException
Description copied from interface:PageFlowDefinitionRegistry
Remove thePageFlowDefinition
by the optionaluuid
of thePageFlowDefinition
.- Specified by:
removePageFlowDefinitionByUuid
in interfacePageFlowDefinitionRegistry
- Parameters:
uuid
- the optional UUID value of thePageFlowDefinition
- Throws:
PageFlowException
- if any exception occurs
-
removePageFlowDefinition
public void removePageFlowDefinition(String flowId) throws PageFlowException
Description copied from interface:PageFlowDefinitionRegistry
Remove thePageFlowDefinition
by the identifier (flowId
) of thePageFlowDefinition
.- Specified by:
removePageFlowDefinition
in interfacePageFlowDefinitionRegistry
- Parameters:
flowId
- the identifier value of thePageFlowDefinition
- Throws:
PageFlowException
- if any exception occurs
-
clearPageFlowDefinitions
public void clearPageFlowDefinitions() throws PageFlowException
Description copied from interface:PageFlowDefinitionRegistry
Clear all the registeredPageFlowDefinition
s in the registry.- Specified by:
clearPageFlowDefinitions
in interfacePageFlowDefinitionRegistry
- Throws:
PageFlowException
- if any exception occurs
-
-