org.kuali.rice.kew.api.rule
Class RuleResponsibility.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.rule.RuleResponsibility.Builder
All Implemented Interfaces:
Serializable, GloballyUnique, Identifiable, Versioned, ModelBuilder, RuleResponsibilityContract
Enclosing class:
RuleResponsibility

public static final class RuleResponsibility.Builder
extends Object
implements Serializable, ModelBuilder, RuleResponsibilityContract

A builder which can be used to construct RuleResponsibility instances. Enforces the constraints of the RuleResponsibilityContract.

See Also:
Serialized Form

Method Summary
 RuleResponsibility build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RuleResponsibility.Builder create()
           
static RuleResponsibility.Builder create(RuleResponsibilityContract contract)
           
 String getActionRequestedCd()
          code for the Action Requested
 String getApprovePolicy()
          approval policy for the RuleResponsibility
 List<RuleDelegation.Builder> getDelegationRules()
          list of RuleDelegations for the RuleResponsibility
 String getGroupId()
          unique id of the Group for the RuleResponsibility
 String getId()
          The unique identifier for an object.
 String getObjectId()
          Return the globally unique object id of this object.
 String getPrincipalId()
          unique id of the Principal for the RuleResponsibility
 Integer getPriority()
          integer representation of the priority of the RuleResponsibility
 String getResponsibilityId()
          Unique Id for Responsibility.
 String getRoleName()
          unique name of the Role for the RuleResponsibility
 Long getVersionNumber()
          Returns the version number for this object.
 boolean isUsingGroup()
          determines if the RuleResponsibiltity is using a kim Group
 boolean isUsingPrincipal()
          determines if the RuleResponsibiltity is using a kim Principal
 boolean isUsingRole()
          determines if the RuleResponsibiltity is using a kim Role
 void setActionRequestedCd(String actionRequestedCd)
           
 void setApprovePolicy(String approvePolicy)
           
 void setDelegationRules(List<RuleDelegation.Builder> delegationRules)
           
 void setGroupId(String groupId)
           
 void setId(String id)
           
 void setObjectId(String objectId)
           
 void setPrincipalId(String principalId)
           
 void setPriority(Integer priority)
           
 void setResponsibilityId(String responsibilityId)
           
 void setRoleName(String roleName)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RuleResponsibility.Builder create()

create

public static RuleResponsibility.Builder create(RuleResponsibilityContract contract)

build

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

getPriority

public Integer getPriority()
Description copied from interface: RuleResponsibilityContract
integer representation of the priority of the RuleResponsibility

Specified by:
getPriority in interface RuleResponsibilityContract
Returns:
priority

getResponsibilityId

public String getResponsibilityId()
Description copied from interface: RuleResponsibilityContract
Unique Id for Responsibility.

This is the unique Id of the Responsibility

Specified by:
getResponsibilityId in interface RuleResponsibilityContract
Returns:
responsibilityId

getActionRequestedCd

public String getActionRequestedCd()
Description copied from interface: RuleResponsibilityContract
code for the Action Requested

This code matches the unique code for an ActionRequest

Specified by:
getActionRequestedCd in interface RuleResponsibilityContract
Returns:
actionRequestedCd

getApprovePolicy

public String getApprovePolicy()
Description copied from interface: RuleResponsibilityContract
approval policy for the RuleResponsibility

Specified by:
getApprovePolicy in interface RuleResponsibilityContract
Returns:
approvalPolicy

getPrincipalId

public String getPrincipalId()
Description copied from interface: RuleResponsibilityContract
unique id of the Principal for the RuleResponsibility

Specified by:
getPrincipalId in interface RuleResponsibilityContract
Returns:
principalId

getGroupId

public String getGroupId()
Description copied from interface: RuleResponsibilityContract
unique id of the Group for the RuleResponsibility

Specified by:
getGroupId in interface RuleResponsibilityContract
Returns:
groupId

getRoleName

public String getRoleName()
Description copied from interface: RuleResponsibilityContract
unique name of the Role for the RuleResponsibility

Specified by:
getRoleName in interface RuleResponsibilityContract
Returns:
groupId

getDelegationRules

public List<RuleDelegation.Builder> getDelegationRules()
Description copied from interface: RuleResponsibilityContract
list of RuleDelegations for the RuleResponsibility

Specified by:
getDelegationRules in interface RuleResponsibilityContract
Returns:
delegationRules

isUsingRole

public boolean isUsingRole()
Description copied from interface: RuleResponsibilityContract
determines if the RuleResponsibiltity is using a kim Role

Specified by:
isUsingRole in interface RuleResponsibilityContract
Returns:
boolean value representing if the RuleResponsibility is using a Role

isUsingPrincipal

public boolean isUsingPrincipal()
Description copied from interface: RuleResponsibilityContract
determines if the RuleResponsibiltity is using a kim Principal

Specified by:
isUsingPrincipal in interface RuleResponsibilityContract
Returns:
boolean value representing if the RuleResponsibility is using a Principal

isUsingGroup

public boolean isUsingGroup()
Description copied from interface: RuleResponsibilityContract
determines if the RuleResponsibiltity is using a kim Group

Specified by:
isUsingGroup in interface RuleResponsibilityContract
Returns:
boolean value representing if the RuleResponsibility is using a Group

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

getObjectId

public String getObjectId()
Description copied from interface: GloballyUnique
Return the globally unique object id of this object. In general, this value should only be null if the object has not yet been stored to a persistent data store.

Specified by:
getObjectId in interface GloballyUnique
Returns:
the objectId of this object, or null if it has not been set yet

setId

public void setId(String id)

setPriority

public void setPriority(Integer priority)

setResponsibilityId

public void setResponsibilityId(String responsibilityId)

setActionRequestedCd

public void setActionRequestedCd(String actionRequestedCd)

setApprovePolicy

public void setApprovePolicy(String approvePolicy)

setPrincipalId

public void setPrincipalId(String principalId)

setGroupId

public void setGroupId(String groupId)

setRoleName

public void setRoleName(String roleName)

setDelegationRules

public void setDelegationRules(List<RuleDelegation.Builder> delegationRules)

setVersionNumber

public void setVersionNumber(Long versionNumber)

setObjectId

public void setObjectId(String objectId)


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