org.kuali.rice.kim.api.role
Class RoleResponsibilityAction.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.role.RoleResponsibilityAction.Builder
All Implemented Interfaces:
Serializable, Identifiable, Versioned, ModelBuilder, ModelObjectBasic, ModelObjectComplete, RoleResponsibilityActionContract
Enclosing class:
RoleResponsibilityAction

public static class RoleResponsibilityAction.Builder
extends Object
implements RoleResponsibilityActionContract, ModelBuilder, ModelObjectComplete

See Also:
Serialized Form

Field Summary
private  String actionPolicyCode
           
private  String actionTypeCode
           
private  boolean forceAction
           
private  String Id
           
private  Integer priorityNumber
           
private  String roleMemberId
           
private  RoleResponsibility roleResponsibility
           
private  String roleResponsibilityId
           
private  Long versionNumber
           
 
Constructor Summary
private RoleResponsibilityAction.Builder()
           
 
Method Summary
 RoleResponsibilityAction build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RoleResponsibilityAction.Builder create()
           
static RoleResponsibilityAction.Builder create(RoleResponsibilityActionContract rra)
           
 boolean equals(Object obj)
          All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.
 String getActionPolicyCode()
          Returns the action policy code.
 String getActionTypeCode()
          A string representation of the action type to be taken on this RoleResponsibilityAction.
 String getId()
          The unique identifier for an object.
 Integer getPriorityNumber()
           
 String getRoleMemberId()
          String identifier for an associated RoleMember
 RoleResponsibility getRoleResponsibility()
          Returns a RoleResponsibility instances associated with this action.
 String getRoleResponsibilityId()
          Id of the contained RoleResponsibility object.
 Long getVersionNumber()
          Returns the version number for this object.
 int hashCode()
          All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.
 boolean isForceAction()
           
 void setActionPolicyCode(String actionPolicyCode)
           
 void setActionTypeCode(String actionTypeCode)
           
 void setForceAction(boolean forceAction)
           
 void setId(String id)
           
 void setPriorityNumber(Integer priorityNumber)
           
 void setRoleMemberId(String roleMemberId)
           
 void setRoleResponsibility(RoleResponsibility roleResponsibility)
           
 void setRoleResponsibilityId(String roleResponsibilityId)
           
 void setVersionNumber(Long versionNumber)
           
 String toString()
          This will return a proper string representation of the Model Object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

private String Id

roleResponsibilityId

private String roleResponsibilityId

roleMemberId

private String roleMemberId

actionTypeCode

private String actionTypeCode

actionPolicyCode

private String actionPolicyCode

forceAction

private boolean forceAction

priorityNumber

private Integer priorityNumber

roleResponsibility

private RoleResponsibility roleResponsibility

versionNumber

private Long versionNumber
Constructor Detail

RoleResponsibilityAction.Builder

private RoleResponsibilityAction.Builder()
Method Detail

create

public static RoleResponsibilityAction.Builder create()

create

public static RoleResponsibilityAction.Builder create(RoleResponsibilityActionContract rra)

build

public RoleResponsibilityAction 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

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String id)

getRoleResponsibilityId

public String getRoleResponsibilityId()
Description copied from interface: RoleResponsibilityActionContract
Id of the contained RoleResponsibility object.

Specified by:
getRoleResponsibilityId in interface RoleResponsibilityActionContract
Returns:
A RoleResponsibility Id. Can be null if there is no associated RoleResponsibility.

setRoleResponsibilityId

public void setRoleResponsibilityId(String roleResponsibilityId)

getActionTypeCode

public String getActionTypeCode()
Description copied from interface: RoleResponsibilityActionContract

A string representation of the action type to be taken on this RoleResponsibilityAction.

Examples are


setActionTypeCode

public void setActionTypeCode(String actionTypeCode)

getPriorityNumber

public Integer getPriorityNumber()
Specified by:
getPriorityNumber in interface RoleResponsibilityActionContract
Returns:
Integer representing the priority assigned to this Action. This can be a null value.

setPriorityNumber

public void setPriorityNumber(Integer priorityNumber)

getActionPolicyCode

public String getActionPolicyCode()
Description copied from interface: RoleResponsibilityActionContract
Returns the action policy code.

Specified by:
getActionPolicyCode in interface RoleResponsibilityActionContract
Returns:
String for the policy code. This can be null.

setActionPolicyCode

public void setActionPolicyCode(String actionPolicyCode)

getRoleMemberId

public String getRoleMemberId()
Description copied from interface: RoleResponsibilityActionContract
String identifier for an associated RoleMember

Specified by:
getRoleMemberId in interface RoleResponsibilityActionContract
Returns:
RoleMember identifier. This can be null.

setRoleMemberId

public void setRoleMemberId(String roleMemberId)

getRoleResponsibility

public RoleResponsibility getRoleResponsibility()
Description copied from interface: RoleResponsibilityActionContract
Returns a RoleResponsibility instances associated with this action.

Specified by:
getRoleResponsibility in interface RoleResponsibilityActionContract
Returns:
Associated RoleResponsibility - can be null.

setRoleResponsibility

public void setRoleResponsibility(RoleResponsibility roleResponsibility)

isForceAction

public boolean isForceAction()
Specified by:
isForceAction in interface RoleResponsibilityActionContract
Returns:
Whether this action should be is forced or not.

setForceAction

public void setForceAction(boolean forceAction)

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

setVersionNumber

public void setVersionNumber(Long versionNumber)

hashCode

public int hashCode()
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.

Specified by:
hashCode in interface ModelObjectComplete
Overrides:
hashCode in class Object
Returns:
the hashCode value

equals

public boolean equals(Object obj)
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.

Specified by:
equals in interface ModelObjectComplete
Overrides:
equals in class Object
Parameters:
obj - to object to compare for equality
Returns:
if equal

toString

public String toString()
Description copied from interface: ModelObjectBasic
This will return a proper string representation of the Model Object. All of the fields comprising the "public" api should be represented in the return value.

Specified by:
toString in interface ModelObjectBasic
Overrides:
toString in class Object
Returns:
the string representation


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.