org.kuali.rice.kim.api.responsibility
Class ResponsibilityAction.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.responsibility.ResponsibilityAction.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, ResponsibilityActionContract
Enclosing class:
ResponsibilityAction

public static final class ResponsibilityAction.Builder
extends Object
implements Serializable, ModelBuilder, ResponsibilityActionContract

A builder which can be used to construct ResponsibilityAction instances. Enforces the constraints of the ResponsibilityActionContract.

See Also:
Serialized Form

Method Summary
 ResponsibilityAction build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static ResponsibilityAction.Builder create()
          All required fields are enforced in the build() method.
static ResponsibilityAction.Builder create(ResponsibilityActionContract contract)
           
 String getActionPolicyCode()
          The actionPolicyCode the responsibility action is associated with.
 String getActionTypeCode()
          The actionTypeCode the responsibility action is associated with.
 List<DelegateType.Builder> getDelegates()
          The delegates for this responsibility action.
 String getGroupId()
          The groupId the responsibility action is associated with.
 String getMemberRoleId()
          The memberRoleId the responsibility action is associated with.
 String getParallelRoutingGroupingCode()
          The parallelRoutingGroupingCode the responsibility action is associated with.
 String getPrincipalId()
          The principalId the responsibility action is associated with.
 Integer getPriorityNumber()
          The priorityNumber the responsibility action is associated with.
 Map<String,String> getQualifier()
          The qualifying attributes for the responsibility action.
 String getResponsibilityId()
          The responsibilityId the responsibility action is associated with.
 String getResponsibilityName()
          The responsibilityName the responsibility action is associated with.
 String getResponsibilityNamespaceCode()
          The responsibilityNamespaceCode the responsibility action is associated with.
 String getRoleId()
          The roleId the responsibility action is associated with.
 String getRoleResponsibilityActionId()
          The roleResponsibilityActionId the responsibility action is associated with.
 boolean isForceAction()
          Whether is responsibility action is a force action.
 void setActionPolicyCode(String actionPolicyCode)
           
 void setActionTypeCode(String actionTypeCode)
           
 void setDelegates(List<DelegateType.Builder> delegates)
           
 void setForceAction(boolean forceAction)
           
 void setGroupId(String groupId)
           
 void setMemberRoleId(String memberRoleId)
           
 void setParallelRoutingGroupingCode(String parallelRoutingGroupingCode)
           
 void setPrincipalId(String principalId)
           
 void setPriorityNumber(Integer priorityNumber)
           
 void setQualifier(Map<String,String> qualifier)
           
 void setResponsibilityId(String responsibilityId)
           
 void setResponsibilityName(String responsibilityName)
           
 void setResponsibilityNamespaceCode(String responsibilityNamespaceCode)
           
 void setRoleId(String roleId)
           
 void setRoleResponsibilityActionId(String roleResponsibilityActionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ResponsibilityAction.Builder create()
All required fields are enforced in the build() method. Please see ResponsibilityActionContract to see what fields are required.

Returns:
a new builder, not yet in a valid state

create

public static ResponsibilityAction.Builder create(ResponsibilityActionContract contract)

build

public ResponsibilityAction build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getPrincipalId

public String getPrincipalId()
Description copied from interface: ResponsibilityActionContract
The principalId the responsibility action is associated with.

Can be null as long as the ResponsibilityActionContract.getGroupId() is not null.

When this is set the ResponsibilityActionContract.getGroupId() will not be.

Specified by:
getPrincipalId in interface ResponsibilityActionContract
Returns:
the principalId

getRoleResponsibilityActionId

public String getRoleResponsibilityActionId()
Description copied from interface: ResponsibilityActionContract
The roleResponsibilityActionId the responsibility action is associated with. Can be null.

Specified by:
getRoleResponsibilityActionId in interface ResponsibilityActionContract
Returns:
the roleResponsibilityActionId

getParallelRoutingGroupingCode

public String getParallelRoutingGroupingCode()
Description copied from interface: ResponsibilityActionContract
The parallelRoutingGroupingCode the responsibility action is associated with. Can be null.

Specified by:
getParallelRoutingGroupingCode in interface ResponsibilityActionContract
Returns:
the parallelRoutingGroupingCode

getActionTypeCode

public String getActionTypeCode()
Description copied from interface: ResponsibilityActionContract
The actionTypeCode the responsibility action is associated with. Can be null.

Specified by:
getActionTypeCode in interface ResponsibilityActionContract
Returns:
the actionTypeCode

getActionPolicyCode

public String getActionPolicyCode()
Description copied from interface: ResponsibilityActionContract
The actionPolicyCode the responsibility action is associated with. Can be null.

Specified by:
getActionPolicyCode in interface ResponsibilityActionContract
Returns:
the actionPolicyCode

getPriorityNumber

public Integer getPriorityNumber()
Description copied from interface: ResponsibilityActionContract
The priorityNumber the responsibility action is associated with. Can be null.

Specified by:
getPriorityNumber in interface ResponsibilityActionContract
Returns:
the priorityNumber

getGroupId

public String getGroupId()
Description copied from interface: ResponsibilityActionContract
The groupId the responsibility action is associated with.

Can be null as long as the ResponsibilityActionContract.getPrincipalId() is not null.

When this is set the ResponsibilityActionContract.getPrincipalId() will not be.

Specified by:
getGroupId in interface ResponsibilityActionContract
Returns:
the groupId

getMemberRoleId

public String getMemberRoleId()
Description copied from interface: ResponsibilityActionContract
The memberRoleId the responsibility action is associated with. Cannot be null or blank.

Specified by:
getMemberRoleId in interface ResponsibilityActionContract
Returns:
the memberRoleId

getResponsibilityName

public String getResponsibilityName()
Description copied from interface: ResponsibilityActionContract
The responsibilityName the responsibility action is associated with. Cannot be null or blank.

Specified by:
getResponsibilityName in interface ResponsibilityActionContract
Returns:
the responsibilityName

getResponsibilityId

public String getResponsibilityId()
Description copied from interface: ResponsibilityActionContract
The responsibilityId the responsibility action is associated with. Cannot be null or blank.

Specified by:
getResponsibilityId in interface ResponsibilityActionContract
Returns:
the responsibilityId

getResponsibilityNamespaceCode

public String getResponsibilityNamespaceCode()
Description copied from interface: ResponsibilityActionContract
The responsibilityNamespaceCode the responsibility action is associated with. Cannot be null or blank.

Specified by:
getResponsibilityNamespaceCode in interface ResponsibilityActionContract
Returns:
the responsibilityNamespaceCode

isForceAction

public boolean isForceAction()
Description copied from interface: ResponsibilityActionContract
Whether is responsibility action is a force action.

Specified by:
isForceAction in interface ResponsibilityActionContract
Returns:
true if is a force action

getQualifier

public Map<String,String> getQualifier()
Description copied from interface: ResponsibilityActionContract
The qualifying attributes for the responsibility action. Cannot be null.

Specified by:
getQualifier in interface ResponsibilityActionContract
Returns:
attributes

getDelegates

public List<DelegateType.Builder> getDelegates()
Description copied from interface: ResponsibilityActionContract
The delegates for this responsibility action. Cannot be null but can be an empty list.

Specified by:
getDelegates in interface ResponsibilityActionContract
Returns:
delegates

getRoleId

public String getRoleId()
Description copied from interface: ResponsibilityActionContract
The roleId the responsibility action is associated with. Cannot be null or blank.

Specified by:
getRoleId in interface ResponsibilityActionContract
Returns:
the roleId

setPrincipalId

public void setPrincipalId(String principalId)

setRoleResponsibilityActionId

public void setRoleResponsibilityActionId(String roleResponsibilityActionId)

setParallelRoutingGroupingCode

public void setParallelRoutingGroupingCode(String parallelRoutingGroupingCode)

setActionTypeCode

public void setActionTypeCode(String actionTypeCode)

setActionPolicyCode

public void setActionPolicyCode(String actionPolicyCode)

setPriorityNumber

public void setPriorityNumber(Integer priorityNumber)

setGroupId

public void setGroupId(String groupId)

setMemberRoleId

public void setMemberRoleId(String memberRoleId)

setResponsibilityName

public void setResponsibilityName(String responsibilityName)

setResponsibilityId

public void setResponsibilityId(String responsibilityId)

setResponsibilityNamespaceCode

public void setResponsibilityNamespaceCode(String responsibilityNamespaceCode)

setForceAction

public void setForceAction(boolean forceAction)

setQualifier

public void setQualifier(Map<String,String> qualifier)

setDelegates

public void setDelegates(List<DelegateType.Builder> delegates)

setRoleId

public void setRoleId(String roleId)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.