public class LifecyclePolicyEntry extends TieSystemCategory
Modifier and Type | Field and Description |
---|---|
static String |
AGENTIDENTIFIER_PROPERTY
The name of the String property (in the instance's PropertyBundle) of
the identifier of the agent instance that is responsible for
processing this LifecyclePolicyEntry.
|
static String |
BASETIMEOFDAY_PROPERTY
The name of the String property (in the instance's PropertyBundle) of
the base time-of-day to compute the time to search for Documents that
are eligible to have this action performed on them.
|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DESCRIPTION_ATTRIBUTE
The name of the attribute that holds the description of
this LifecyclePolicyEntry.
|
static String |
ENABLED_ATTRIBUTE
The name of the attribute that indicates whether documents
should continue to end up in the state reflected by this entry.
|
static String |
EXECUTIONPERIOD_PROPERTY
The name of the String property (in the instance's PropertyBundle) of
the time period to search for Documents that are eligible to
have this action performed on them.
|
static String |
FROZEN_ATTRIBUTE
The name of the attribute that indicates whether the processing for this
entry has been suspended (frozen).
|
static String |
LIFECYCLEPOLICYACTIONSPECIFICATION_ATTRIBUTE
The name of the attribute that references the action specification
to execute.
|
static String |
LIFECYCLESEQUENCE_ATTRIBUTE
The name of the attribute that holds the sequence of this entry within
the set of LifecyclePolicyEntries for the LifecyclePolicy (1-based).
|
static String |
NAME_ATTRIBUTE
The name of the attribute that holds the name of
this LifecyclePolicyEntry (optional).
|
static String |
THREADGROUP_PROPERTY
The name of the String property (in the instance's PropertyBundle) of
the thread group value to be used to balance the
execution within LifecycleAgent.
|
static String |
TIMEPERIOD_ATTRIBUTE
The name of the attribute that holds the time period
since the document's LifecycleDate when this action should
be executed (String[32]).
|
ASSOCIATEDSYSTEMOBJECT_ATTRIBUTE
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
LifecyclePolicyEntry(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a LifecyclePolicyEntry object.
|
Modifier and Type | Method and Description |
---|---|
protected static LifecyclePolicyEntry[] |
constructLifecyclePolicyEntryArray(LibrarySession sess,
Long[] ids)
Constructs a LifecyclePolicyEntry array from an array of object IDs.
|
String |
getAgentIdentifierProperty()
Returns the identifier of the agent instance that is responsible for
processing this LifecyclePolicyEntry.
|
String |
getBaseTimeOfDayProperty()
Gets the base time-of-day for computing the time to search for
Documents that are eligible to have this action performed on them.
|
String |
getDescription()
Gets the description of this LifecyclePolicyEntry.
|
String |
getExecutionPeriodProperty()
Returns the time period to search for Documents that are eligible to
have this action performed on them.
|
LifecyclePolicy |
getLifecyclePolicy()
Gets the LifecyclePolicy that this entry is part of.
|
LifecyclePolicyActionSpecification |
getLifecyclePolicyActionSpecification()
Gets the references of the LifecyclePolicyActionSpecification that will be
used to execute the action.
|
static LifecyclePolicyEntry[] |
getLifecyclePolicyEntries(LibrarySession session)
Returns the set of defined LifecyclePolicyEntry instances.
|
int |
getLifecycleSequence()
Gets the sequence of this entry within the set of LifecyclePolicyEntries
for the LifecyclePolicy (1-based).
|
int |
getLifecycleState()
Gets the lifecycle state that should be used after execution
of the associated action.
|
LifecyclePolicyEntry |
getPreviousLifecyclePolicyEntry()
Gets the LifecyclePolicyEntry that is immediate before this entry
in the list of LifecyclePolicyEntry objects for the LifecyclePolicy.
|
Integer |
getThreadGroupProperty()
Returns the thread group value to be used to balance the
execution within LifecycleAgent.
|
String |
getTimePeriod()
Gets the time period since the document's LifecycleDate when
this action should be executed.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
boolean |
isEnabled()
Returns true if the entry is enabled.
|
boolean |
isFrozen()
Returns true if the entry is suspended (frozen).
|
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.
|
protected void |
validatePropertyValues(PropertyDefinition[] propDefs)
Validates Properties specified during create or update operations.
|
constructCategoryArray, constructCategoryVector, constructSystemCategory, getAssociatedSystemObject
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, 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 LIFECYCLESEQUENCE_ATTRIBUTE
public static final String ENABLED_ATTRIBUTE
public static final String LIFECYCLEPOLICYACTIONSPECIFICATION_ATTRIBUTE
public static final String TIMEPERIOD_ATTRIBUTE
The value format is a number with an optional time unit suffix. The supported case-insensitive suffices are:
For example, the string "12H" represents a timeout period of twelve hours, "365d" represents 365 days, and "3500000" represents 3500000 milliseconds.
public static final String FROZEN_ATTRIBUTE
public static final String EXECUTIONPERIOD_PROPERTY
See TIMEPERIOD_ATTRIBUTE
for the definition of the time
format.
A null value indicates the default value for the LifecycleAgent will be used.
public static final String BASETIMEOFDAY_PROPERTY
Format is "HH:mm:ss" using a 24 hour clock. For example "13:00:00" indicates that the base time-of-day is 1:00 pm in the default Timezone.
If not specified, the default value for the LifecycleAgent will be used.
public static final String AGENTIDENTIFIER_PROPERTY
Can be null, in which case the default agent will process.
public static final String THREADGROUP_PROPERTY
Can be null, in which case a value is generated from the instance's ID.
protected LifecyclePolicyEntry(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
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getDescription() throws IfsException
IfsException
- if operation failspublic LifecyclePolicy getLifecyclePolicy() throws IfsException
IfsException
- if operation failspublic LifecyclePolicyEntry getPreviousLifecyclePolicyEntry() throws IfsException
Returns null if this is the first entry in the list.
IfsException
- if operation failspublic int getLifecycleState() throws IfsException
IfsException
- if operation failspublic int getLifecycleSequence() throws IfsException
IfsException
- if operation failspublic boolean isEnabled() throws IfsException
If a LifecyclePolicyEntry is not enabled, documents will skip that step as they progress through the lifecycle policy entries.
IfsException
- if the operation failspublic boolean isFrozen() throws IfsException
If a LifecyclePolicyEntry is frozen, processing will not occur for documents that are waiting for this step to occur.
IfsException
- if the operation failspublic LifecyclePolicyActionSpecification getLifecyclePolicyActionSpecification() throws IfsException
IfsException
- if operation failspublic String getTimePeriod() throws IfsException
The value's format is a number with an optional time unit suffix. The supported case-insensitive suffices are:
For example, the string "12H" represents a timeout period of twelve hours, "365d" represents 365 days, and "3500000" represents 3500000 milliseconds.
IfsException
- if operation failspublic String getExecutionPeriodProperty() throws IfsException
The value returned is a number with an optional time unit suffix. The supported case-insensitive suffices are:
For example, the string "4H" represents a timeout period of four hours, "3d" represents threee days, and "3500" represents 3500 milliseconds.
A null value indicates that the default should be used.
IfsException
- if the operation fails.public String getBaseTimeOfDayProperty() throws IfsException
Is a string representation of the base time of day relative to the timezone default for the default Domain, using a 24-hour clock format. For example, this method returns "18:30:00" if the base time of day is meant to be 6:30 p.m.
If null is returned, a default base time of day should be used (typically "00:00:00").
IfsException
- if the operation fails.public String getAgentIdentifierProperty() throws IfsException
Can be null, in which case the default agent will process.
IfsException
- if the operation fails.public Integer getThreadGroupProperty() throws IfsException
Can be null, in which case the ID is used to compute a thread group value.
IfsException
- if the operation fails.public static LifecyclePolicyEntry[] getLifecyclePolicyEntries(LibrarySession session) throws IfsException
session
- the session contextIfsException
- if the 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
LibraryObject
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.protected void validatePropertyValues(PropertyDefinition[] propDefs) throws IfsException
validatePropertyValues
in class LibraryObject
propDefs
- The Property definitionsIfsException
- protected static LifecyclePolicyEntry[] constructLifecyclePolicyEntryArray(LibrarySession sess, Long[] ids) throws IfsException
sess
- the session contextids
- the array of object IDsIfsException
- if operation fails.Copyright © 2023. All rights reserved.