public class LifecyclePolicy extends TieSystemObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The name of the attribute that holds a textual description
of the LifecyclePolicy.
|
static String |
LIFECYCLEDATERULE_ATTRIBUTE
The name of the attribute that references the rule in effect that
determines the LifecycleDate of the Document
associated with this LifecyclePolicy.
|
static String |
LOCKIMPLIED_ATTRIBUTE
The name of the attribute that indicates whether document instances
that reference this LifecyclePolicy are implicitly locked.
|
static String |
NAME_ATTRIBUTE
The name of the attribute that holds the name of this
LifecyclePolicy.
|
static String |
REFERENCED_ATTRIBUTE
The name of the attribute that indicates whether any document instances
reference this RetentionPolicy.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
LifecyclePolicy(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a LifecyclePolicy object.
|
Modifier and Type | Method and Description |
---|---|
void |
applyLock(Document doc)
Apply a lock on the specified document, as it
is in the process of referencing this LifecyclePolicy.
|
void |
applyLock(DocumentDefinition def)
Apply a lock on the specified document definition, as it
is in the process of referencing this LifecyclePolicy.
|
void |
applyUnlock(Document doc)
Release the lock held on the specified document, as it
is in the process of not referencing this LifecyclePolicy.
|
static LifecyclePolicy[] |
findAll(LibrarySession session)
Returns the set of defined LifecyclePolicy instances.
|
static LifecyclePolicy |
findByName(LibrarySession session,
String name)
Returns a LifecyclePolicy matching the specified name.
|
String |
getDescription()
Gets the description of this LifecyclePolicy.
|
LifecycleDateRuleSpecification |
getLifecycleDateRuleSpecification()
Gets the LifecycleDateRuleSpecification which holds the rule
for determining the LifecycleDate for documents under the control of
this LifecyclePolicy.
|
LifecyclePolicyEntry[] |
getLifecyclePolicyEntries()
Returns the set of LifecyclePolicyEntry defined for this
LifecyclePolicy.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
boolean |
isLockImplied()
Gets the indication of whether document instances
that reference this LifecyclePolicy are implicitly locked.
|
boolean |
isReferenced()
Gets the indication of whether any document instances
reference this LifecyclePolicy.
|
protected void |
preCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
creation of a PublicObject.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
protected void |
preUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the update of
a PublicObject.
|
void |
setReferenced(boolean active)
Sets the REFERENCED attribute for this object.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String DESCRIPTION_ATTRIBUTE
public static final String LOCKIMPLIED_ATTRIBUTE
public static final String REFERENCED_ATTRIBUTE
public static final String LIFECYCLEDATERULE_ATTRIBUTE
protected LifecyclePolicy(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getDescription() throws IfsException
IfsException
- if operation failspublic boolean isLockImplied() throws IfsException
IfsException
- if operation failspublic boolean isReferenced() throws IfsException
IfsException
- if operation failspublic LifecycleDateRuleSpecification getLifecycleDateRuleSpecification() throws IfsException
IfsException
- if operation failspublic LifecyclePolicyEntry[] getLifecyclePolicyEntries() throws IfsException
Returns null if no LifecyclePolicyEntry objects are associated.
IfsException
- if operation failspublic void setReferenced(boolean active) throws IfsException
This is set to true the first time a document references this policy. It is eventually set to false once it is determined that no documents still reference the policy.
active
- the new REFERENCED status valueIfsException
- if operation fails.public void applyLock(DocumentDefinition def) throws IfsException
Called from within the create operation on Document, when this LifecyclePolicy is being referenced by the Document.
def
- the Document that is now referencing this policyIfsException
- if operation fails.public void applyLock(Document doc) throws IfsException
Called from within the update operation on Document, when this LifecyclePolicy is being referenced by the Document.
doc
- the Document that is now referencing this policyIfsException
- if operation fails.public void applyUnlock(Document doc) throws IfsException
Called from within the update operation on Document, when a previously referenced record LifecyclePolicy was being referenced. This instance is the previously referenced LifecyclePolicy.
doc
- the Document that was referencing this policyIfsException
- if operation fails.protected void preCreate(LibraryObjectDefinition lodef) throws IfsException
Set an option that indicates that Categories are NOT to be created from within S_SystemObject.
preCreate
in class SystemObject
lodef
- object definition that will be used to create the objectIfsException
- if operation failsprotected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
Set an option that indicates that Categories are NOT to be created from within S_SystemObject.
preUpdate
in class SystemObject
lodef
- definition used to define how the target object
will be updatedIfsException
- if operation failsprotected void preFree(LibraryObjectDefinition lodef) throws IfsException
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.public static LifecyclePolicy[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static LifecyclePolicy findByName(LibrarySession session, String name) throws IfsException
LifecyclePolicy names are case sensitive, so this operations requires an exact match with respect to case.
session
- the session contextname
- the LifecyclePolicy nameIfsException
- if the operation fails.Copyright © 2023. All rights reserved.