Class DefaultPageFlowDefinition
java.lang.Object
org.onehippo.forge.pageflow.core.def.impl.DefaultPageFlowDefinition
- All Implemented Interfaces:
Serializable
,PageFlowDefinition
Default
PageFlowDefinition
model implementation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPageStateDefinition
(PageStateDefinition pageStateDef) void
addPageTransitionDefinition
(PageTransitionDefinition pageTransitionDef) void
boolean
Compares the specified object with thisPageFlowDefinition
for equality.getId()
Return the identifier of aPageFlowDefinition
.getName()
Return the (human readable) name of aPageFlowDefinition
.Return an unmodifiable list ofPageStateDefinition
s of thisPageFlowDefinition
.Return an unmodifiable list of the globalPageTransitionDefinition
s of thisPageFlowDefinition
.getUuid()
Return the optional UUID of aPageFlowDefinition
, possibly reflecting the backend storage level UUID such as JCR.int
hashCode()
Returns the hash code value for thisPageFlowDefinition
.void
boolean
removePageStateDefinition
(PageStateDefinition pageStateDef) boolean
removePageTransitionDefinition
(PageTransitionDefinition pageTransitionDef) toString()
-
Constructor Details
-
DefaultPageFlowDefinition
-
-
Method Details
-
getId
Description copied from interface:PageFlowDefinition
Return the identifier of aPageFlowDefinition
.- Specified by:
getId
in interfacePageFlowDefinition
- Returns:
- the identifier of a
PageFlowDefinition
-
getName
Description copied from interface:PageFlowDefinition
Return the (human readable) name of aPageFlowDefinition
.- Specified by:
getName
in interfacePageFlowDefinition
- Returns:
- the (human readable) name of a
PageFlowDefinition
-
getUuid
Description copied from interface:PageFlowDefinition
Return the optional UUID of aPageFlowDefinition
, possibly reflecting the backend storage level UUID such as JCR.- Specified by:
getUuid
in interfacePageFlowDefinition
- Returns:
- the optional UUID of a
PageFlowDefinition
, possibly reflecting the backend storage level UUID such as JCR
-
getPageStateDefinitions
Description copied from interface:PageFlowDefinition
Return an unmodifiable list ofPageStateDefinition
s of thisPageFlowDefinition
.- Specified by:
getPageStateDefinitions
in interfacePageFlowDefinition
- Returns:
- an unmodifiable list of
PageStateDefinition
s of thisPageFlowDefinition
-
addPageStateDefinition
-
removePageStateDefinition
-
removeAllPageStateDefinitions
public void removeAllPageStateDefinitions() -
getPageTransitionDefinitions
Description copied from interface:PageFlowDefinition
Return an unmodifiable list of the globalPageTransitionDefinition
s of thisPageFlowDefinition
.The global
PageTransitionDefinition
s in thePageFlowDefinition
level should be registered asPageTransition
in eachPageState
at runtime even if aPageStateDefinition
does not define the samePageTransitionDefinition
explicitly.This global
PageTransitionDefinition
s are useful if you want to define a commonPageTransitionDefinition
that should be applied to eachPageStateDefinition
without having to define it in eachPageStateDefinition
level.- Specified by:
getPageTransitionDefinitions
in interfacePageFlowDefinition
- Returns:
- an unmodifiable list of the global
PageTransitionDefinition
s of thisPageFlowDefinition
-
addPageTransitionDefinition
-
removePageTransitionDefinition
-
clearPageTransitionDefinitions
public void clearPageTransitionDefinitions() -
equals
Description copied from interface:PageFlowDefinition
Compares the specified object with thisPageFlowDefinition
for equality.- Specified by:
equals
in interfacePageFlowDefinition
- Overrides:
equals
in classObject
- Parameters:
o
- the object to be compared for equality with thisPageFlowDefinition
- Returns:
- true if the specified object is equal to this
PageFlowDefinition
-
hashCode
public int hashCode()Description copied from interface:PageFlowDefinition
Returns the hash code value for thisPageFlowDefinition
.- Specified by:
hashCode
in interfacePageFlowDefinition
- Overrides:
hashCode
in classObject
- Returns:
- the hash code value for this
PageFlowDefinition
-
toString
-