public class SchemaObject extends TieLibraryObject implements SchemaObjectInterface
SchemaCategory
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE_ATTRIBUTE
An indicator of whether this SchemaObject is still used.
|
static String |
CLASS_NAME
This class name for this class.
|
static String |
NAME_ATTRIBUTE
The name of this SchemaObject.
|
static String |
POLICYBUNDLE_ATTRIBUTE
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
static String |
POLICYLISTS_ATTRIBUTE
The set of PolicyLists explicitly applied to this object.
|
static String |
PROPERTYBUNDLE_ATTRIBUTE
The PropertyBundle applied to this SchemaObject
which contains a set of name/value pairs.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
SchemaObject(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Internal use only: Constructs a SchemaObject.
|
Modifier and Type | Method and Description |
---|---|
SchemaCategory |
addCategory(SchemaCategoryDefinition catdef)
Adds a SchemaCategory associated with this SchemaObject
|
protected static SchemaObject |
constructSchemaObject(LibrarySession sess,
S_LibraryObjectData data)
Internal use only: Constructs a SchemaObject for the specified data.
|
protected static Vector |
constructSchemaObjectVector(LibrarySession sess,
Vector vector)
Internal use only: Converts a vector of S_LibraryObjectDatas to a
vector of SchemaObjects.
|
void |
free(LibraryObjectDefinition def)
Permanently removes this object from the repository, with options.
|
SchemaCategory[] |
getCategories()
Returns an array of Schemacategories for this schemaObject.
|
SchemaCategory[] |
getCategories(ClassObject classobj)
Returns the associated SchemaCategory objects that are instances of the
ClassObject (or one of its subclasses) specified.
|
SchemaCategory[] |
getCategories(ClassObject classobj,
SortSpecification sort)
Returns the associated SchemaCategory objects that are instances of
the specified class or a subclass of the specified class.
|
SchemaCategory[] |
getCategories(SortSpecification sort)
Returns the associated SchemaCategory objects.
|
PolicyPropertyBundle |
getPolicyBundle()
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
PolicyList[] |
getPolicyLists()
Gets the PolicyLists for this object.
|
protected SchemaObject |
handleCreate(LibraryObjectDefinition lodef)
Handle the low-level creation of the SchemaObject
|
boolean |
hasNameAttribute()
override to return true for any SchemaObject, indicating
that the instance has a NAME attribute.
|
boolean |
hasPropertyBundleAttribute()
Overrides to return true for any SchemaObject, indicating
that the instance has a PROPERTYBUNDLE attribute.
|
boolean |
isActive()
Gets whether this SchemaObject is active.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a SchemaObject.
|
protected void |
postUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the update of a SchemaObject.
|
void |
putPolicy(Policy policy)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
removeAllPolicies()
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
removePolicy(Policy policy)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
removePolicy(String opname)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
setActive(boolean active)
Specifies whether this SchemaObject is active.
|
void |
setPolicyBundle(PolicyPropertyBundle bundle)
Deprecated.
CM SDK 10gR2: see release notes for changes to Policy framework
|
void |
setPolicyLists(PolicyList[] policyLists)
Sets the PolicyLists for this object.
|
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, preCreate, preFree, prePostAuditEvent, preUpdate, 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 POLICYLISTS_ATTRIBUTE
public static final String POLICYBUNDLE_ATTRIBUTE
public static final String ACTIVE_ATTRIBUTE
public static final String PROPERTYBUNDLE_ATTRIBUTE
protected SchemaObject(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessionid
- the idclassId
- the class iddata
- the dataIfsException
- if the operation failsprotected SchemaObject handleCreate(LibraryObjectDefinition lodef) throws IfsException
lodef
- object definition that will be used to create the objectIfsException
- if operation fails.protected void postCreate(LibraryObjectDefinition lodef) throws IfsException
This assumes that a transaction context has already been established.
postCreate
in class LibraryObject
lodef
- object definition that was used to create the objectIfsException
- if operation fails.protected void postUpdate(LibraryObjectDefinition lodef) throws IfsException
Create any categories that are specified in the definition.
postUpdate
in class LibraryObject
lodef
- object definition used to define how the
target object was updatedIfsException
- if operation fails.public void free(LibraryObjectDefinition def) throws IfsException
If a null definition is specified, a default definition is used.
free
in class LibraryObject
def
- Context for the free operation.IfsException
- if operation fails.public boolean hasNameAttribute() throws IfsException
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public boolean hasPropertyBundleAttribute() throws IfsException
hasPropertyBundleAttribute
in class LibraryObject
IfsException
- if the operation failspublic void setActive(boolean active) throws IfsException
Inactive SchemaObjects are excluded from the contents of the Collections
returned by the LibrarySession.getcollectionCollection
methods. This allows an application to remove a no-longer used SchemaObject
from picklists without the referential integrity consequences of removing
it using free
.
active
- whether the SchemaObject is activeIfsException
- if the operation failspublic boolean isActive() throws IfsException
Inactive SchemaObjects are excluded from the contents of the Collections
returned by the LibrarySession.getcollectionCollection
methods. This allows an application to remove a no-longer used SchemaObject
from picklists without the referential integrity consequences of removing
it using free
.
IfsException
- if the operation failspublic void setPolicyLists(PolicyList[] policyLists) throws IfsException
policyLists
- the PolicyList objects to applyIfsException
- if the operation failspublic PolicyList[] getPolicyLists() throws IfsException
IfsException
- if the operation failspublic void setPolicyBundle(PolicyPropertyBundle bundle) throws IfsException
bundle
- the policy bundleIfsException
- if the operation failspublic PolicyPropertyBundle getPolicyBundle() throws IfsException
IfsException
- if the operation failspublic void putPolicy(Policy policy) throws IfsException
If this SchemaObject doesn't have a policy bundle, this method will create one with a Published ACL and default name and description.
policy
- the Policy to addIfsException
- if the operation failspublic void removePolicy(String opname) throws IfsException
opname
- the operation name of the Policy to removeIfsException
- if the operation failspublic void removePolicy(Policy policy) throws IfsException
policy
- the Policy to removeIfsException
- if the operation failspublic void removeAllPolicies() throws IfsException
IfsException
- if the operation failspublic SchemaCategory addCategory(SchemaCategoryDefinition catdef) throws IfsException
catdef
- the SchemaCategoryDefinition that describes the new Category
that will be associated with this SchemaObject.IfsException
- if operation fails.public SchemaCategory[] getCategories(SortSpecification sort) throws IfsException
sort
- the specification of how the returned SchemaCategory
objects will be sorted.IfsException
- if operation fails.public SchemaCategory[] getCategories(ClassObject classobj) throws IfsException
classobj
- the class of SchemaCategoryIfsException
- if operation fails.public SchemaCategory[] getCategories(ClassObject classobj, SortSpecification sort) throws IfsException
classobj
- the class of SchemaCategorysort
- the specification of how the returned SchemaCategory
objects will be sorted.IfsException
- if operation fails.public SchemaCategory[] getCategories() throws IfsException
IfsException
- if operation fails.protected static Vector constructSchemaObjectVector(LibrarySession sess, Vector vector) throws IfsException
For internal use only. Do not use this method.
sess
- the sessionvector
- the S_LibraryObjectData vectorIfsException
- if the operation failsprotected static SchemaObject constructSchemaObject(LibrarySession sess, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
sess
- the sessiondata
- the dataIfsException
- if the operation failsCopyright © 2023. All rights reserved.