Class PeopleFlowDefinition.Builder
java.lang.Object
org.kuali.rice.kew.api.peopleflow.PeopleFlowDefinition.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelBuilder,PeopleFlowContract
- Enclosing class:
- PeopleFlowDefinition
public static final class PeopleFlowDefinition.Builder
extends Object
implements Serializable, ModelBuilder, PeopleFlowContract
A builder which can be used to construct
PeopleFlowDefinition instances. Enforces the constraints of the
PeopleFlowContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddPrincipal(String principalId) build()static PeopleFlowDefinition.Builderstatic PeopleFlowDefinition.Buildercreate(PeopleFlowContract contract) static PeopleFlowDefinition.BuildercreateMaintenanceCopy(PeopleFlowContract contract) getId()Returns the list of members for this flow, sorted from lowest to highest priority number.getName()booleanisActive()voidsetActive(boolean active) voidsetAttributes(Map<String, String> attributes) voidsetDescription(String description) voidvoidsetMembers(List<PeopleFlowMember.Builder> members) voidvoidsetNamespaceCode(String namespaceCode) voidvoidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
createMaintenanceCopy
-
build
- Specified by:
buildin interfaceModelBuilder
-
getName
- Specified by:
getNamein interfacePeopleFlowContract- Returns:
- the name for this
PeopleFlowContract. Will never be null.
-
getAttributes
- Specified by:
getAttributesin interfacePeopleFlowContract- Returns:
- the attributes for this
PeopleFlowContract. Will never return null.
-
getNamespaceCode
- Specified by:
getNamespaceCodein interfacePeopleFlowContract- Returns:
- the namespace for this
PeopleFlowContract. Will never be null.
-
getTypeId
- Specified by:
getTypeIdin interfacePeopleFlowContract- Returns:
- the type id for this
PeopleFlowContract. Will never be null.
-
getDescription
- Specified by:
getDescriptionin interfacePeopleFlowContract- Returns:
- the name for this
PeopleFlowContract. May be null, but not empty.
-
getMembers
Description copied from interface:PeopleFlowContractReturns the list of members for this flow, sorted from lowest to highest priority number.- Specified by:
getMembersin interfacePeopleFlowContract- Returns:
- the
PeopleFlowMemberContracts for thisPeopleFlowContract. Will never return null.
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setName
-
setAttributes
-
setNamespaceCode
-
setTypeId
-
setDescription
-
setMembers
-
setId
-
setActive
public void setActive(boolean active) -
setVersionNumber
-
addPrincipal
-
addGroup
-
addRole
-