Package org.kuali.rice.kew.rule.bo
Class RuleTemplateBo
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.rice.kew.rule.bo.RuleTemplateBo
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ojb.broker.PersistenceBrokerAware,org.eclipse.persistence.descriptors.changetracking.ChangeTracker,org.eclipse.persistence.internal.descriptors.PersistenceEntity,org.eclipse.persistence.internal.descriptors.PersistenceObject,org.eclipse.persistence.internal.weaving.PersistenceWeaved,org.eclipse.persistence.internal.weaving.PersistenceWeavedChangeTracking,org.eclipse.persistence.internal.weaving.PersistenceWeavedFetchGroups,org.eclipse.persistence.internal.weaving.PersistenceWeavedRest,org.eclipse.persistence.queries.FetchGroupTracker,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelObjectBasic,org.kuali.rice.kew.api.rule.RuleTemplateContract,org.kuali.rice.krad.bo.BusinessObject,org.kuali.rice.krad.bo.PersistableBusinessObject
@Entity
public class RuleTemplateBo
extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase
implements org.kuali.rice.kew.api.rule.RuleTemplateContract
A model bean which represents a template upon which a rule is created.
The RuleTemplate is essentially a collection of
RuleAttributes
(associated vai the RuleTemplateAttributeBo bean).- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]A list of default rule template option keys.Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumberFields inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
_persistence_cacheKey, _persistence_fetchGroup, _persistence_href, _persistence_links, _persistence_listener, _persistence_primaryKey, _persistence_relationshipInfo, _persistence_session, _persistence_shouldRefreshFetchGroup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsActiveRuleTemplateAttribute(RuleTemplateAttributeBo templateAttribute) booleancontainsRuleTemplateAttribute(RuleTemplateAttributeBo templateAttribute) Returns a List of only the active RuleTemplateAttributes on the RuleTemplate sorted according to display order (ascending).Used from the rule quicklinks when doing the focus channel.getFyi()getId()getName()List<org.kuali.rice.kew.api.rule.RoleName> getRoles()Returns a List of Roles from all RoleAttributes attached to this template.getRuleTemplateAttribute(int index) getRuleTemplateAttribute(RuleTemplateAttributeBo ruleTemplateAttribute) voidRemoves any non-default rule template options on the templatevoidsetAcknowledge(RuleTemplateOptionBo acknowledge) voidsetActiveRuleTemplateAttributes(List<RuleTemplateAttributeBo> ruleTemplateAttributes) This is implemented to allow us to use this collection on the inquiry for RuleTemplate.voidsetApprove(RuleTemplateOptionBo approve) voidsetComplete(RuleTemplateOptionBo complete) voidsetDefaultActionRequestValue(RuleTemplateOptionBo defaultActionRequestValue) voidsetDelegationTemplate(RuleTemplateBo delegationTemplate) voidsetDelegationTemplateId(String delegationTemplateId) voidsetDescription(String description) voidvoidvoidvoidsetReturnUrl(String returnUrl) voidsetRuleTemplateAttributes(List<RuleTemplateAttributeBo> ruleTemplateAttributes) voidsetRuleTemplateOptions(List<RuleTemplateOptionBo> ruleTemplateOptions) static org.kuali.rice.kew.api.rule.RuleTemplateto(RuleTemplateBo bo) Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
_persistence_get, _persistence_get_objectId, _persistence_get_versionNumber, _persistence_new, _persistence_post_clone, _persistence_set, _persistence_set_objectId, _persistence_set_versionNumber, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumberMethods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
_persistence_checkFetched, _persistence_checkFetchedForSet, _persistence_getCacheKey, _persistence_getFetchGroup, _persistence_getHref, _persistence_getId, _persistence_getLinks, _persistence_getPropertyChangeListener, _persistence_getRelationships, _persistence_getSession, _persistence_isAttributeFetched, _persistence_propertyChange, _persistence_resetFetchGroup, _persistence_setCacheKey, _persistence_setFetchGroup, _persistence_setHref, _persistence_setId, _persistence_setLinks, _persistence_setPropertyChangeListener, _persistence_setRelationships, _persistence_setSession, _persistence_setShouldRefreshFetchGroup, _persistence_shallow_clone, _persistence_shouldRefreshFetchGroup, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectIdMethods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toStringMethods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject
_persistence_shallow_cloneMethods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
-
Field Details
-
DEFAULT_OPTION_KEYS
A list of default rule template option keys.
-
-
Constructor Details
-
RuleTemplateBo
public RuleTemplateBo()
-
-
Method Details
-
removeNonDefaultOptions
public void removeNonDefaultOptions()Removes any non-default rule template options on the template -
getDelegateTemplateName
-
getRuleTemplateActionsUrl
-
getRuleTemplateAttribute
public RuleTemplateAttributeBo getRuleTemplateAttribute(RuleTemplateAttributeBo ruleTemplateAttribute) -
containsActiveRuleTemplateAttribute
-
containsRuleTemplateAttribute
-
getRuleTemplateAttribute
-
getRuleTemplateAttributes
- Specified by:
getRuleTemplateAttributesin interfaceorg.kuali.rice.kew.api.rule.RuleTemplateContract
-
getActiveRuleTemplateAttributes
Returns a List of only the active RuleTemplateAttributes on the RuleTemplate sorted according to display order (ascending).- Returns:
-
setActiveRuleTemplateAttributes
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
-
getDescription
- Specified by:
getDescriptionin interfaceorg.kuali.rice.kew.api.rule.RuleTemplateContract
-
setDescription
-
getName
- Specified by:
getNamein interfaceorg.kuali.rice.kew.api.rule.RuleTemplateContract
-
setName
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
setId
-
getDelegationTemplateId
-
setDelegationTemplateId
-
getDelegationTemplate
- Specified by:
getDelegationTemplatein interfaceorg.kuali.rice.kew.api.rule.RuleTemplateContract
-
setDelegationTemplate
-
getReturnUrl
-
setReturnUrl
-
getEncodedName
Used from the rule quicklinks when doing the focus channel. -
getRuleTemplateOptions
- Specified by:
getRuleTemplateOptionsin interfaceorg.kuali.rice.kew.api.rule.RuleTemplateContract
-
setRuleTemplateOptions
-
getRuleTemplateOption
-
setAcknowledge
-
setComplete
-
setApprove
-
setFyi
-
setDefaultActionRequestValue
-
getAcknowledge
-
getComplete
-
getApprove
-
getFyi
-
getDefaultActionRequestValue
-
getRoles
Returns a List of Roles from all RoleAttributes attached to this template.- Returns:
- list of roles
-
to
-