Class DocumentTypePolicy

java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.rice.kew.doctype.DocumentTypePolicy
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.Versioned, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.krad.bo.BusinessObject, org.kuali.rice.krad.bo.PersistableBusinessObject

@Entity public class DocumentTypePolicy extends org.kuali.rice.krad.bo.PersistableBusinessObjectBase
Model bean representing a policy of a document type.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Summary

    Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase

    extension, newCollectionRecord, objectId, versionNumber

    Fields 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
    Constructor
    Description
     
    DocumentTypePolicy(String documentTypeId, String policyName, Boolean policyValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    copy(boolean preserveKeys)
     
    Return the actual value from the policy If there is a policy string value it will return it, else return the policy value (a boolean).
     
     
     
     
     
     
     
    boolean
     
    boolean
     
    boolean
     
    void
     
    void
    setDocumentTypeId(String documentTypeId)
     
    void
    setInheritedFlag(Boolean inheritedFlag)
     
    void
    setPolicyName(String policyName)
     
    void
    setPolicyStringValue(String policyStringValue)
     
    void
    setPolicyValue(Boolean policyValue)
     

    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, setVersionNumber

    Methods 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, 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

    Methods inherited from interface org.eclipse.persistence.internal.descriptors.PersistenceObject

    _persistence_shallow_clone
  • Constructor Details

    • DocumentTypePolicy

      public DocumentTypePolicy()
    • DocumentTypePolicy

      public DocumentTypePolicy(String documentTypeId, String policyName, Boolean policyValue)
  • Method Details

    • getPolicyDisplayValue

      public String getPolicyDisplayValue()
    • getInheritedFlag

      public Boolean getInheritedFlag()
    • setInheritedFlag

      public void setInheritedFlag(Boolean inheritedFlag)
    • isAllowUnrequestedAction

      public boolean isAllowUnrequestedAction()
    • isDefaultApprove

      public boolean isDefaultApprove()
    • isDisApprove

      public boolean isDisApprove()
    • getDocumentTypeId

      public String getDocumentTypeId()
    • setDocumentTypeId

      public void setDocumentTypeId(String documentTypeId)
    • getPolicyName

      public String getPolicyName()
    • setPolicyName

      public void setPolicyName(String policyName)
    • getPolicyValue

      public Boolean getPolicyValue()
    • setPolicyValue

      public void setPolicyValue(Boolean policyValue)
    • getPolicyStringValue

      public String getPolicyStringValue()
    • setPolicyStringValue

      public void setPolicyStringValue(String policyStringValue)
    • getActualPolicyValue

      public String getActualPolicyValue()
      Return the actual value from the policy If there is a policy string value it will return it, else return the policy value (a boolean). This was needed for building the XML representation to return from the document type service.
      Returns:
      string of policy value
    • copy

      public Object copy(boolean preserveKeys)
    • getDocumentType

      public DocumentType getDocumentType()
    • setDocumentType

      public void setDocumentType(DocumentType documentType)