public class PolicyListElement extends TieSystemObject implements PolicyListElementInterface
PolicyList
,
Policy
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
This class name for this class.
|
static String |
FILTERS_ATTRIBUTE
The filters which, if set by a previous policy with a FILTER SUBSEQUENT
outcome, prevent execution of this policy.
|
static String |
OPERATION_ATTRIBUTE
The operation to which this PolicyListElement applies.
|
static String |
PARENTPOLICYLIST_ATTRIBUTE
The PolicyList to which this PolicyListElement belongs.
|
static String |
POLICY_ATTRIBUTE
The Policy referenced by this PolicyListElement.
|
static String |
SORTSEQUENCE_ATTRIBUTE
The sort sequence of this PolicyListElement.
|
static String |
SUBOPERATION_ATTRIBUTE
The sub-operation of this PolicyListElement.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, NAME_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
PolicyListElement(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a PolicyListElement object - standard variant.
|
Modifier and Type | Method and Description |
---|---|
protected static PolicyListElement |
constructPolicyListElement(LibrarySession sess,
S_LibraryObjectData data)
Construct PolicyListElement from a S_LibraryObjectData
|
protected static PolicyListElement[] |
constructPolicyListElementArray(LibrarySession sess,
Long[] ids)
Construct a PolicyListElement array from an array of object IDs.
|
protected static Vector |
constructPolicyListElementVector(LibrarySession sess,
Vector vector)
Construct a Vector of PolicyListElement from a Vector of S_LibraryObjectData.
|
String[] |
getFilters()
Gets the filters which, if set by a previous policy with a
FILTER SUBSEQUENT outcome, prevent execution of this policy.
|
String |
getOperation()
Gets the operation to which this PolicyListElement applies.
|
PolicyList |
getParentPolicyList()
Gets the PolicyList containing this PolicyListElement.
|
Policy |
getPolicy()
Gets the Policy referenced by this PolicyListElement.
|
long |
getSortSequence()
Gets the sort sequence of this PolicyListElement.
|
String |
getSubOperation()
Gets the sub-operation of this PolicyListElement.
|
void |
setFilters(String[] filters)
Sets the filters which, if set by a previous policy with a
FILTER SUBSEQUENT outcome, prevent execution of this policy.
|
void |
setOperation(String operation)
Sets the operation to which this PolicyListElement applies.
|
void |
setPolicy(Policy policy)
Sets the Policy referenced by this PolicyListElement.
|
void |
setSortSequence(long sortSequence)
Sets the sort sequence of this PolicyListElement.
|
void |
setSubOperation(String subOperation)
Sets the sub-operation of this PolicyListElement.
|
protected static PolicyListElement[] |
vectorToPolicyListElementArray(Vector vector)
Convert a Vector of PolicyListElements to an
array of PolicyListElements.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, 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, hasNameAttribute, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, preFree, 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 PARENTPOLICYLIST_ATTRIBUTE
public static final String OPERATION_ATTRIBUTE
public static final String SUBOPERATION_ATTRIBUTE
public static final String SORTSEQUENCE_ATTRIBUTE
public static final String FILTERS_ATTRIBUTE
public static final String POLICY_ATTRIBUTE
protected PolicyListElement(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current Sessionid
- object IDclassId
- the class IDdata
- attributesIfsException
public PolicyList getParentPolicyList() throws IfsException
IfsException
- if the operation fails.public String getOperation() throws IfsException
IfsException
- if the operation failspublic void setOperation(String operation) throws IfsException
operation
- the operationIfsException
- if the operation failspublic String getSubOperation() throws IfsException
The sub-operation value is for informational purposes only; it is not used in performing an operation.
IfsException
- if the operation failspublic void setSubOperation(String subOperation) throws IfsException
The sub-operation value is for informational purposes only; it is not used in performing an operation.
subOperation
- the sub-operationIfsException
- if the operation failspublic long getSortSequence() throws IfsException
The sort sequence determines the order in which the set of Policies applicable to a particular operation are executed.
IfsException
- if the operation failspublic void setSortSequence(long sortSequence) throws IfsException
The sort sequence determines the order in which the set of Policies applicable to a particular operation are executed.
sortSequence
- the sort sequenceIfsException
- if the operation failspublic String[] getFilters() throws IfsException
"Filters" are String values which allow for conditional policy execution.
As the set of Policies applicable to a particular operation are executed, a set of filters are accumulated. This set of filters is empty prior to execution of the first Policy.
A Policy is executed only if no element of the INPUTFILTERS attribute of the corresponding PolicyListElement contains a value in accumulated filter set.
IfsException
- if the operation failspublic void setFilters(String[] filters) throws IfsException
"Filters" are String values which allow for conditional policy execution.
As the set of Policies applicable to a particular operation are executed, a set of filters are accumulated. This set of filters is empty prior to execution of the first Policy. By specifying a FILTER SUBSEQUENT outcome, a PolicyAction adds the filters specified by the OUTPUTFILTERS attribute of the corresponding PolicyListElement to this set.
A Policy is executed only if no element of the INPUTFILTERS attribute of the corresponding PolicyListElement contains a value in accumulated filter set.
filters
- the input filtersIfsException
- if the operation failspublic Policy getPolicy() throws IfsException
IfsException
- if the operation failspublic void setPolicy(Policy policy) throws IfsException
policy
- the PolicyIfsException
- if the operation failsprotected static Vector constructPolicyListElementVector(LibrarySession sess, Vector vector) throws IfsException
sess
- the Sessionvector
- a Vector of S_LibraryObjectDataIfsException
- if operation fails.protected static PolicyListElement constructPolicyListElement(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess
- the Sessiondata
- the S_LibraryObejctDataIfsException
- if operation fails.protected static PolicyListElement[] constructPolicyListElementArray(LibrarySession sess, Long[] ids) throws IfsException
sess
- the requesting sessionids
- the array of object IDsIfsException
- if operation fails.protected static PolicyListElement[] vectorToPolicyListElementArray(Vector vector)
vector
- A Vector containing PolicyListElements.Copyright © 2023. All rights reserved.