Class DefaultPageFlowDefinition
- java.lang.Object
-
- org.onehippo.forge.pageflow.core.def.impl.DefaultPageFlowDefinition
-
- All Implemented Interfaces:
Serializable
,PageFlowDefinition
public class DefaultPageFlowDefinition extends Object implements PageFlowDefinition
DefaultPageFlowDefinition
model implementation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultPageFlowDefinition(String id, String name, String uuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPageStateDefinition(PageStateDefinition pageStateDef)
void
addPageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
void
clearPageTransitionDefinitions()
boolean
equals(Object o)
Compares the specified object with thisPageFlowDefinition
for equality.String
getId()
Return the identifier of aPageFlowDefinition
.String
getName()
Return the (human readable) name of aPageFlowDefinition
.List<PageStateDefinition>
getPageStateDefinitions()
Return an unmodifiable list ofPageStateDefinition
s of thisPageFlowDefinition
.List<PageTransitionDefinition>
getPageTransitionDefinitions()
Return an unmodifiable list of the globalPageTransitionDefinition
s of thisPageFlowDefinition
.String
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
removeAllPageStateDefinitions()
boolean
removePageStateDefinition(PageStateDefinition pageStateDef)
boolean
removePageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:PageFlowDefinition
Return the identifier of aPageFlowDefinition
.- Specified by:
getId
in interfacePageFlowDefinition
- Returns:
- the identifier of a
PageFlowDefinition
-
getName
public String 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
public String 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
public List<PageStateDefinition> 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
public void addPageStateDefinition(PageStateDefinition pageStateDef)
-
removePageStateDefinition
public boolean removePageStateDefinition(PageStateDefinition pageStateDef)
-
removeAllPageStateDefinitions
public void removeAllPageStateDefinitions()
-
getPageTransitionDefinitions
public List<PageTransitionDefinition> 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
public void addPageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
-
removePageTransitionDefinition
public boolean removePageTransitionDefinition(PageTransitionDefinition pageTransitionDef)
-
clearPageTransitionDefinitions
public void clearPageTransitionDefinitions()
-
equals
public boolean equals(Object o)
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
-
-