public class Policy extends TieSystemObject
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CLASS_NAME
Name of this class. 
 | 
static String | 
EXECUTIONMODE_ATTRIBUTE
The privileged mode (if any) in which this Policy executes. 
 | 
static String | 
IMPLEMENTATIONENUM_ATTRIBUTE
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
static String | 
IMPLEMENTATIONNAME_ATTRIBUTE
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
static String | 
NAME_ATTRIBUTE
The name of the Policy. 
 | 
static String | 
OPERATION_ATTRIBUTE
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
static String | 
POLICYACTION_ATTRIBUTE
The fully-qualified class name of the Java PolicyAction. 
 | 
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTEDOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session| Modifier | Constructor and Description | 
|---|---|
protected  | 
Policy(LibrarySession session,
      Long id,
      Long classId,
      S_LibraryObjectData data)
Constructs a Policy. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected static Policy | 
constructPolicy(LibrarySession sess,
               S_LibraryObjectData data)
Constructs a Policy from a S_LibraryObjectData. 
 | 
protected static Vector | 
constructPolicyVector(LibrarySession sess,
                     Vector vector)
Constructs a Policy Vector from a Vector of S_LibraryObjectData. 
 | 
static Policy[] | 
findAll(LibrarySession session)
Returns the set of defined Policies. 
 | 
static Policy | 
findByName(LibrarySession session,
          String name)
Returns the a Policy matching the 
 specified name. 
 | 
int | 
getExecutionMode()
Gets the privileged mode (if any) in which this Policy executes. 
 | 
int | 
getImplementationEnum()
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
String | 
getImplementationName()
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
static LibraryObjectLookupCache | 
getLibraryObjectLookupCache(LibrarySessionInterface session)
Returns the LibraryObjectLookupCache used by find
 Policy instances by name. 
 | 
String | 
getOperation()
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
String | 
getPolicyAction()
Gets the fully-qualified class name of the Java PolicyAction. 
 | 
boolean | 
hasNameAttribute()
Override to return true for any PublicObject, indicating
 that the instance has a NAME attribute. 
 | 
void | 
setExecutionMode(int executionMode)
Sets the privileged mode (if any) in which this Policy executes. 
 | 
void | 
setImplementationEnum(int implementation)
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
void | 
setImplementationName(String implementation)
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
void | 
setOperation(String operation)
Deprecated. 
 
CM SDK 10gR2: see release notes for changes to Policy framework 
 | 
void | 
setPolicyAction(String policyAction)
Sets the fully-qualified class name of the Java PolicyAction. 
 | 
static String | 
toExecutionModeLabel(int executionMode)
Gets a localized String label for the specified ExecutionMode value,
 using the default Localizer. 
 | 
static String | 
toExecutionModeLabel(int executionMode,
                    LibrarySession session)
Gets a localized String label for the specified ExecutionMode value,
 using the Localizer for the specified session. 
 | 
static String | 
toExecutionModeLabel(int executionMode,
                    Localizer localizer)
Gets a localized String label for the specified ExecutionMode value,
 using the specified Localizer. 
 | 
protected static Policy | 
vectorPolicyElement(Vector vector,
                   int index)
Returns a specific Policy from a Vector of Policy at the specified index. 
 | 
protected static Policy[] | 
vectorToPolicyArray(Vector vector)
Constructs an array of Policy from a Vector of Policy. 
 | 
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyListsadded, 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, 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, verifyTargetObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeByUpperCaseName, getClassId, getId, getSessionInterfacegetTraceLogger, isTraced, tracepublic static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String EXECUTIONMODE_ATTRIBUTE
public static final String POLICYACTION_ATTRIBUTE
@Deprecated public static final String OPERATION_ATTRIBUTE
@Deprecated public static final String IMPLEMENTATIONNAME_ATTRIBUTE
@Deprecated public static final String IMPLEMENTATIONENUM_ATTRIBUTE
protected Policy(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session - the sessionid - the idclassId - the class iddata - the Policy dataIfsException - if the operation failspublic boolean hasNameAttribute()
                         throws IfsException
hasNameAttribute in class LibraryObjectIfsException - if operation fails.public int getExecutionMode()
                     throws IfsException
The allowed execution modes are defined by constants in this class.
IfsException - if the operation failspublic final void setExecutionMode(int executionMode)
                            throws IfsException
The allowed execution modes are defined by constants in this class.
Equivalent to:
AttributeValue av = AttributeValue.newAttributeValue(executionMode); setAttribute(EXECUTIONMODE_ATTRIBUTE, av);
executionMode - the execution modeIfsException - if the operation failspublic String getPolicyAction() throws IfsException
IfsException - if the operation failspublic final void setPolicyAction(String policyAction) throws IfsException
Equivalent to:
AttributeValue av = AttributeValue.newAttributeValue(policyAction); setAttribute(POLICYACTION_ATTRIBUTE, av);
policyAction - the PolicyAction class nameIfsException - if the operation fails@Deprecated public String getOperation() throws IfsException
IfsException - if the operation fails@Deprecated public final void setOperation(String operation) throws IfsException
Equivalent to:
AttributeValue av = AttributeValue.newAttributeValue(description); setAttribute(OPERATION_ATTRIBUTE, av);
operation - the operation nameIfsException - if the operation fails@Deprecated public String getImplementationName() throws IfsException
IfsException - if the operation fails@Deprecated public final void setImplementationName(String implementation) throws IfsException
Equivalent to:
AttributeValue av = AttributeValue.newAttributeValue(implementation); setAttribute(IMPLEMENTATIONNAME_ATTRIBUTE, av);
implementation - the implementation nameIfsException - if the operation fails@Deprecated public int getImplementationEnum() throws IfsException
IfsException - if the operation fails@Deprecated public void setImplementationEnum(int implementation) throws IfsException
Equivalent to:
AttributeValue av = AttributeValue.newAttributeValue(implementation); setAttribute(IMPLEMENTATIONENUM_ATTRIBUTE, av);
implementation - the implementation enumIfsException - if the operation failspublic static String toExecutionModeLabel(int executionMode) throws IfsException
executionMode - the execution modeIfsException - if the operation fails.public static String toExecutionModeLabel(int executionMode, LibrarySession session) throws IfsException
executionMode - the execution modesession - the sessionIfsException - if the operation fails.public static String toExecutionModeLabel(int executionMode, Localizer localizer) throws IfsException
executionMode - the execution modelocalizer - the Localizer, or null to use a temporary
            Localizer constructed from the VM's default
            LocaleIfsException - if the operation fails.public static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySessionInterface session) throws IfsException
session - the session contextIfsException - if the operation fails.public static Policy[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session - the session contextIfsException - if the operation fails.public static Policy findByName(LibrarySession session, String name) throws IfsException
session - the session contextname - the Policy nameIfsException - if the operation fails.protected static Vector constructPolicyVector(LibrarySession sess, Vector vector) throws IfsException
sess - current LibrarySessionvector - Vector of LibraryObjectDataIfsException - if the operation failsprotected static Policy constructPolicy(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess - current LibrarySessiondata - data componentIfsException - if the operation failsprotected static Policy[] vectorToPolicyArray(Vector vector) throws IfsException
vector - Vector of PolicyIfsException - if the operation failsprotected static Policy vectorPolicyElement(Vector vector, int index) throws IfsException
vector - Vector of Policyindex - index into VectorIfsException - if the operation failsCopyright © 2025. All rights reserved.