org.kuali.rice.kew.rule.bo
Class RuleTemplate
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.rice.kew.rule.bo.RuleTemplate
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject
@Entity
public class RuleTemplate
- extends PersistableBusinessObjectBase
A model bean which represents a template upon which a rule is created.
The RuleTemplate is essentially a collection of RuleAttribute
s
(associated vai the RuleTemplateAttribute
bean).
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
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, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
DEFAULT_OPTION_KEYS
public static final String[] DEFAULT_OPTION_KEYS
- A list of default rule template option keys.
ruleTemplateId
private String ruleTemplateId
name
private String name
description
private String description
delegationTemplateId
private String delegationTemplateId
delegationTemplate
private RuleTemplate delegationTemplate
ruleTemplateAttributes
private List<RuleTemplateAttribute> ruleTemplateAttributes
ruleTemplateOptions
private List<RuleTemplateOption> ruleTemplateOptions
returnUrl
private String returnUrl
RuleTemplate
public RuleTemplate()
removeNonDefaultOptions
public void removeNonDefaultOptions()
- Removes any non-default rule template options on the template
getDelegateTemplateName
public String getDelegateTemplateName()
getRuleTemplateActionsUrl
public String getRuleTemplateActionsUrl()
getRuleTemplateAttribute
private RuleTemplateAttribute getRuleTemplateAttribute(RuleTemplateAttribute ruleTemplateAttribute,
Boolean active)
- Returns the rule template attribute on this instance whose name matches the name of the rule template attribute
passed as a parameter, qualified by it's active state, or null if a match was not found.
getRuleTemplateAttribute
public RuleTemplateAttribute getRuleTemplateAttribute(RuleTemplateAttribute ruleTemplateAttribute)
containsActiveRuleTemplateAttribute
public boolean containsActiveRuleTemplateAttribute(RuleTemplateAttribute templateAttribute)
containsRuleTemplateAttribute
public boolean containsRuleTemplateAttribute(RuleTemplateAttribute templateAttribute)
getRuleTemplateAttribute
public RuleTemplateAttribute getRuleTemplateAttribute(int index)
getRuleTemplateAttributes
public List<RuleTemplateAttribute> getRuleTemplateAttributes()
getActiveRuleTemplateAttributes
public List<RuleTemplateAttribute> getActiveRuleTemplateAttributes()
- Returns a List of only the active RuleTemplateAttributes on the RuleTemplate
sorted according to display order (ascending).
- Returns:
setActiveRuleTemplateAttributes
public void setActiveRuleTemplateAttributes(List<RuleTemplateAttribute> ruleTemplateAttributes)
- This is implemented to allow us to use this collection on the inquiry for RuleTemplate. In the
KNS code it does an explicit check that the property is writable.
setRuleTemplateAttributes
public void setRuleTemplateAttributes(List<RuleTemplateAttribute> ruleTemplateAttributes)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getName
public String getName()
setName
public void setName(String name)
getRuleTemplateId
public String getRuleTemplateId()
setRuleTemplateId
public void setRuleTemplateId(String ruleTemplateId)
getDelegationTemplateId
public String getDelegationTemplateId()
setDelegationTemplateId
public void setDelegationTemplateId(String delegationTemplateId)
getDelegationTemplate
public RuleTemplate getDelegationTemplate()
setDelegationTemplate
public void setDelegationTemplate(RuleTemplate delegationTemplate)
getReturnUrl
public String getReturnUrl()
setReturnUrl
public void setReturnUrl(String returnUrl)
getEncodedName
public String getEncodedName()
- Used from the rule quicklinks when doing the focus channel.
getRuleTemplateOptions
public List<RuleTemplateOption> getRuleTemplateOptions()
setRuleTemplateOptions
public void setRuleTemplateOptions(List<RuleTemplateOption> ruleTemplateOptions)
getRuleTemplateOption
public RuleTemplateOption getRuleTemplateOption(String key)
setAcknowledge
public void setAcknowledge(RuleTemplateOption acknowledge)
setComplete
public void setComplete(RuleTemplateOption complete)
setApprove
public void setApprove(RuleTemplateOption approve)
setFyi
public void setFyi(RuleTemplateOption fyi)
setDefaultActionRequestValue
public void setDefaultActionRequestValue(RuleTemplateOption defaultActionRequestValue)
getAcknowledge
public RuleTemplateOption getAcknowledge()
getComplete
public RuleTemplateOption getComplete()
getApprove
public RuleTemplateOption getApprove()
getFyi
public RuleTemplateOption getFyi()
getDefaultActionRequestValue
public RuleTemplateOption getDefaultActionRequestValue()
getRoles
public List<Role> getRoles()
- Returns a List of Roles from all RoleAttributes attached to this template.
- Returns:
- list of roles
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.