org.kuali.rice.kew.rule
Class RuleDelegationBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kew.rule.RuleDelegationBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, RuleDelegationContract, BusinessObject, PersistableBusinessObject

@Entity
public class RuleDelegationBo
extends PersistableBusinessObjectBase
implements RuleDelegationContract

A model bean representing the delegation of a rule from a responsibility to another rule. Specifies the delegation type which can be either {@link DelegationType#PRIMARY} or {@link DelegationType#SECONDARY}.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
RuleDelegationBo()
           
 
Method Summary
 Object copy(boolean preserveKeys)
           
 String getDelegateRuleId()
           
 RuleBaseValues getDelegationRule()
          rule associated with the RuleDelegation
 RuleBaseValues getDelegationRuleBaseValues()
           
 DelegationType getDelegationType()
          type of delegation for the RuleDelegation
 String getDelegationTypeCode()
          Getter for type code preserved for DD
 DocumentType getDocumentType()
           
 org.kuali.rice.kim.impl.group.GroupBo getGroupBo()
           
 String getGroupReviewerName()
           
 String getGroupReviewerNamespace()
           
 PersonImpl getPersonImpl()
           
 String getPersonReviewer()
           
 String getPersonReviewerType()
           
 String getResponsibilityId()
           
 String getRuleDelegationId()
           
 RuleResponsibilityBo getRuleResponsibility()
          Returns the most recent RuleResponsibility for the responsibility id on this RuleDelegation.
 void refresh()
          An override of the refresh() method that properly preserves the RuleBaseValues instance.
 void setDelegateRuleId(String delegateRuleId)
           
 void setDelegationRule(RuleBaseValues delegationRule)
           
 void setDelegationRuleBaseValues(RuleBaseValues delegationRuleBaseValues)
           
 void setDelegationType(DelegationType delegationType)
           
 void setDelegationTypeCode(String delegationTypeCode)
          Setter for type code preserved for DD
 void setGroupReviewerName(String groupReviewerName)
           
 void setGroupReviewerNamespace(String groupReviewerNamespace)
           
 void setPersonReviewer(String personReviewer)
           
 void setPersonReviewerType(String personReviewerType)
           
 void setResponsibilityId(String ruleResponsibilityId)
           
 void setRuleDelegationId(String ruleDelegationId)
           
static RuleDelegation to(RuleDelegationBo bo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

RuleDelegationBo

public RuleDelegationBo()
Method Detail

copy

public Object copy(boolean preserveKeys)

getDelegateRuleId

public String getDelegateRuleId()

setDelegateRuleId

public void setDelegateRuleId(String delegateRuleId)

getDelegationRule

public RuleBaseValues getDelegationRule()
Description copied from interface: RuleDelegationContract
rule associated with the RuleDelegation

This rule is run for the original rule as the delegate

Specified by:
getDelegationRule in interface RuleDelegationContract
Returns:
delegationRule

getDelegationRuleBaseValues

public RuleBaseValues getDelegationRuleBaseValues()

setDelegationRuleBaseValues

public void setDelegationRuleBaseValues(RuleBaseValues delegationRuleBaseValues)

setDelegationRule

public void setDelegationRule(RuleBaseValues delegationRule)

setDelegationTypeCode

public void setDelegationTypeCode(String delegationTypeCode)
Setter for type code preserved for DD

Parameters:
delegationTypeCode - the DelegationType code

getDelegationTypeCode

public String getDelegationTypeCode()
Getter for type code preserved for DD

Returns:
the DelegationType code

getDelegationType

public DelegationType getDelegationType()
Description copied from interface: RuleDelegationContract
type of delegation for the RuleDelegation

Determines what kind of delegation the RuleDelegation is

Specified by:
getDelegationType in interface RuleDelegationContract
Returns:
delegationType

setDelegationType

public void setDelegationType(DelegationType delegationType)

getRuleDelegationId

public String getRuleDelegationId()

setRuleDelegationId

public void setRuleDelegationId(String ruleDelegationId)

getRuleResponsibility

public RuleResponsibilityBo getRuleResponsibility()
Returns the most recent RuleResponsibility for the responsibility id on this RuleDelegation.


getDocumentType

public DocumentType getDocumentType()

getResponsibilityId

public String getResponsibilityId()

setResponsibilityId

public void setResponsibilityId(String ruleResponsibilityId)

getGroupReviewerName

public String getGroupReviewerName()

getGroupReviewerNamespace

public String getGroupReviewerNamespace()

getPersonReviewer

public String getPersonReviewer()

setGroupReviewerName

public void setGroupReviewerName(String groupReviewerName)

setGroupReviewerNamespace

public void setGroupReviewerNamespace(String groupReviewerNamespace)

setPersonReviewer

public void setPersonReviewer(String personReviewer)

getPersonReviewerType

public String getPersonReviewerType()

setPersonReviewerType

public void setPersonReviewerType(String personReviewerType)

getGroupBo

public org.kuali.rice.kim.impl.group.GroupBo getGroupBo()

getPersonImpl

public PersonImpl getPersonImpl()

refresh

public void refresh()
An override of the refresh() method that properly preserves the RuleBaseValues instance. If the delegationRuleBaseValues property becomes null as a result of the refresh() method on the PersistableBusinessObjectBase superclass, an attempt is made to retrieve it by calling refreshReferenceObject() for the property. If that also fails, then the RuleBaseValues instance that was in-place prior to the refresh() superclass call will be used as the delegationRuleBaseValues property's value. This override is necessary in order to prevent certain exceptions during the cancellation of a rule delegation maintenance document.

Specified by:
refresh in interface BusinessObject
Overrides:
refresh in class PersistableBusinessObjectBase
See Also:
PersistableBusinessObjectBase.refresh(), PersistableBusinessObjectBase.refreshReferenceObject(java.lang.String)

to

public static RuleDelegation to(RuleDelegationBo bo)


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