org.kuali.rice.kew.rule.bo
Class RuleTemplate
java.lang.Object
org.kuali.rice.kns.bo.BusinessObjectBase
org.kuali.rice.kns.bo.PersistableBusinessObjectBase
org.kuali.rice.kew.rule.bo.RuleTemplate
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.PersistenceBrokerAware, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.kns.bo.BusinessObject, org.kuali.rice.kns.bo.PersistableBusinessObject
@Entity
public class RuleTemplate
- extends org.kuali.rice.kns.bo.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
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase |
extension, versionNumber |
Methods inherited from class org.kuali.rice.kns.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 |
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase |
prepareForWorkflow, toString, toStringBuilder, toStringMapper |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
toString |
DEFAULT_OPTION_KEYS
public static final String[] DEFAULT_OPTION_KEYS
- A list of default rule template option keys.
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
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 Long getRuleTemplateId()
setRuleTemplateId
public void setRuleTemplateId(Long ruleTemplateId)
getDelegationTemplateId
public Long getDelegationTemplateId()
setDelegationTemplateId
public void setDelegationTemplateId(Long 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 © 2007-2011 The Kuali Foundation. All Rights Reserved.