public static final class PeopleFlowDefinition.Builder extends Object implements Serializable, ModelBuilder, PeopleFlowContract
PeopleFlowDefinition
instances. Enforces the constraints of the
PeopleFlowContract
.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()
ModelBuilder
build
in interface ModelBuilder
public String getName()
getName
in interface PeopleFlowContract
PeopleFlowContract
. Will never be null.public Map<String,String> getAttributes()
getAttributes
in interface PeopleFlowContract
PeopleFlowContract
. Will never return null.public String getNamespaceCode()
getNamespaceCode
in interface PeopleFlowContract
PeopleFlowContract
. Will never be null.public String getTypeId()
getTypeId
in interface PeopleFlowContract
PeopleFlowContract
. Will never be null.public String getDescription()
getDescription
in interface PeopleFlowContract
PeopleFlowContract
. May be null, but not empty.public List<PeopleFlowMember.Builder> getMembers()
PeopleFlowContract
getMembers
in interface PeopleFlowContract
PeopleFlowMemberContract
s for this PeopleFlowContract
. Will never return null.public String getId()
Identifiable
getId
in interface Identifiable
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public 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–2016 The Kuali Foundation. All rights reserved.