org.kuali.rice.kew.rule
Class RuleDelegation
java.lang.Object
org.kuali.rice.kns.bo.BusinessObjectBase
org.kuali.rice.kns.bo.PersistableBusinessObjectBase
org.kuali.rice.kew.bo.KewPersistableBusinessObjectBase
org.kuali.rice.kew.rule.RuleDelegation
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.PersistenceBrokerAware, BusinessObject, PersistableBusinessObject
@Sequence(name="KREW_RTE_TMPL_S",
property="ruleDelegationId")
public class RuleDelegation
- extends KewPersistableBusinessObjectBase
A model bean representing the delegation of a rule from a responsibility to
another rule. Specifies the delegation type which can be either
KEWConstants.DELEGATION_PRIMARY
or KEWConstants.DELEGATION_SECONDARY
.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, beforeUpdate, buildListOfDeletionAwareLists, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
ruleDelegationId
private Long ruleDelegationId
responsibilityId
private Long responsibilityId
delegateRuleId
private Long delegateRuleId
delegationType
private String delegationType
delegationRuleBaseValues
private RuleBaseValues delegationRuleBaseValues
RuleDelegation
public RuleDelegation()
copy
public Object copy(boolean preserveKeys)
getDelegateRuleId
public Long getDelegateRuleId()
setDelegateRuleId
public void setDelegateRuleId(Long delegateRuleId)
getDelegationRuleBaseValues
public RuleBaseValues getDelegationRuleBaseValues()
setDelegationRuleBaseValues
public void setDelegationRuleBaseValues(RuleBaseValues delegationRuleBaseValues)
getDelegationType
public String getDelegationType()
setDelegationType
public void setDelegationType(String delegationType)
getRuleDelegationId
public Long getRuleDelegationId()
setRuleDelegationId
public void setRuleDelegationId(Long ruleDelegationId)
getRuleResponsibility
public RuleResponsibility getRuleResponsibility()
- Returns the most recent RuleResponsibility for the responsibility
id on this RuleDelegation.
getDocumentType
public DocumentType getDocumentType()
getResponsibilityId
public Long getResponsibilityId()
setResponsibilityId
public void setResponsibilityId(Long ruleResponsibilityId)
toStringMapper
protected LinkedHashMap toStringMapper()
- Specified by:
toStringMapper
in class BusinessObjectBase
- Returns:
- Map containing the fieldValues of the key fields for this class, indexed by fieldName
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)
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.