public static final class PeopleFlowDefinition.Builder extends Object implements Serializable, ModelBuilder, PeopleFlowContract
PeopleFlowDefinition instances. Enforces the constraints of the
PeopleFlowContract.| Modifier and Type | Method and Description |
|---|---|
PeopleFlowMember.Builder |
addGroup(String groupId) |
PeopleFlowMember.Builder |
addPrincipal(String principalId) |
PeopleFlowMember.Builder |
addRole(String roleId) |
PeopleFlowDefinition |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static PeopleFlowDefinition.Builder |
create(PeopleFlowContract contract) |
static PeopleFlowDefinition.Builder |
create(String namespaceCode,
String name) |
static PeopleFlowDefinition.Builder |
createMaintenanceCopy(PeopleFlowContract contract) |
Map<String,String> |
getAttributes() |
String |
getDescription() |
String |
getId()
The unique identifier for an object.
|
List<PeopleFlowMember.Builder> |
getMembers()
Returns the list of members for this flow, sorted from lowest to highest priority number.
|
String |
getName() |
String |
getNamespaceCode() |
String |
getTypeId() |
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setAttributes(Map<String,String> attributes) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setMembers(List<PeopleFlowMember.Builder> members) |
void |
setName(String name) |
void |
setNamespaceCode(String namespaceCode) |
void |
setTypeId(String typeId) |
void |
setVersionNumber(Long versionNumber) |
public static PeopleFlowDefinition.Builder create(String namespaceCode, String name)
public static PeopleFlowDefinition.Builder create(PeopleFlowContract contract)
public static PeopleFlowDefinition.Builder createMaintenanceCopy(PeopleFlowContract contract)
public PeopleFlowDefinition build()
ModelBuilderbuild in interface ModelBuilderpublic String getName()
getName in interface PeopleFlowContractPeopleFlowContract. Will never be null.public Map<String,String> getAttributes()
getAttributes in interface PeopleFlowContractPeopleFlowContract. Will never return null.public String getNamespaceCode()
getNamespaceCode in interface PeopleFlowContractPeopleFlowContract. Will never be null.public String getTypeId()
getTypeId in interface PeopleFlowContractPeopleFlowContract. Will never be null.public String getDescription()
getDescription in interface PeopleFlowContractPeopleFlowContract. May be null, but not empty.public List<PeopleFlowMember.Builder> getMembers()
PeopleFlowContractgetMembers in interface PeopleFlowContractPeopleFlowMemberContracts for this PeopleFlowContract. Will never return null.public String getId()
IdentifiablegetId in interface Identifiablepublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setAttributes(Map<String,String> attributes)
public void setNamespaceCode(String namespaceCode)
public void setDescription(String description)
public void setMembers(List<PeopleFlowMember.Builder> members)
public void setActive(boolean active)
public void setVersionNumber(Long versionNumber)
public PeopleFlowMember.Builder addPrincipal(String principalId)
public PeopleFlowMember.Builder addGroup(String groupId)
public PeopleFlowMember.Builder addRole(String roleId)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.