public class ClassDomain extends TieSchemaObject
A ClassDomain can only be applied to an object-type Attribute.
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
Class name for this class.
|
static int |
CLASSDOMAINTYPE_ENUMERATED
The ClassDomain consists of the ClassObjects specified with
setClasses . |
static int |
CLASSDOMAINTYPE_ENUMERATED_AND_SUBCLASSES
The ClassDomain consists of the ClassObjects specified with
setClasses , and their subclasses. |
static String |
CLASSES_ATTRIBUTE
The ClassObjects in this ClassDomain.
|
static String |
DESCRIPTION_ATTRIBUTE
A textual description of this ClassDomain.
|
static String |
DOMAINTYPE_ATTRIBUTE
An indicator whether the specific class or the class and
its subclasses should be applied as the domain.
|
static String |
UNIQUENAME_ATTRIBUTE
A system-set attribute used to ensure each ClassDomain has an unique name.
|
ACTIVE_ATTRIBUTE, NAME_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
ClassDomain(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a ClassDomain.
|
Modifier and Type | Method and Description |
---|---|
static String |
classDomainTypeResourceBundleKey(int domainType)
Gets resource bundle key for the specified ClassDomain type.
|
protected static ClassDomain |
constructClassDomain(LibrarySession session,
S_LibraryObjectData data)
Internal use only: Constructs a ClassDomain for the specified data.
|
static ClassDomain[] |
findAll(LibrarySession session)
Returns the set of defined ClassDomains.
|
static ClassDomain |
findByName(LibrarySession session,
String name)
Returns the a ClassDomain matching the
specified name.
|
ClassObject[] |
getClasses()
Gets the classes in this ClassDomain.
|
ClassObject |
getClasses(int index)
Gets the specified class in this ClassDomain.
|
String |
getDescription()
Gets the description of this ClassDomain.
|
int |
getDomainType()
Gets the domain type of this ClassDomain.
|
String |
getDomainTypeLabel()
Gets the localized String label for the DomainType set for
this instance.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySessionInterface session)
Returns the LibraryObjectLookupCache used by find
ClassDomain instances by name.
|
boolean |
inClassDomain(ClassObject co)
Determines whether the specified ClassObject is within
this ClassDomain.
|
void |
setClasses(ClassObject[] cos)
Sets the classes in this ClassDomain.
|
void |
setDescription(String description)
Sets the description of this ClassDomain.
|
void |
setDomainType(int domainType)
Sets the domain type of this ClassDomain.
|
static String |
toDomainTypeLabel(int domainType)
Converts the specified DomainType constant to a
localized label.
|
static String |
toDomainTypeLabel(int domainType,
LibrarySession session)
Converts the specified DomainType constant to a
localized label, using the Localizer from the specified
LibrarySession.
|
static String |
toDomainTypeLabel(int domainType,
Localizer localizer)
Converts the specified DomainType constant to a
localized label, using the specified Localizer.
|
addCategory, constructSchemaObject, constructSchemaObjectVector, free, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasNameAttribute, 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, 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 DESCRIPTION_ATTRIBUTE
public static final String DOMAINTYPE_ATTRIBUTE
public static final String CLASSES_ATTRIBUTE
public static final String UNIQUENAME_ATTRIBUTE
public static final int CLASSDOMAINTYPE_ENUMERATED
setClasses
.public static final int CLASSDOMAINTYPE_ENUMERATED_AND_SUBCLASSES
setClasses
, and their subclasses.protected ClassDomain(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the dataIfsException
- if an error occurspublic final void setDescription(String description) throws IfsException
description
- the descriptionIfsException
- if the operation failspublic final String getDescription() throws IfsException
IfsException
- if the operation failspublic final void setDomainType(int domainType) throws IfsException
domainType
- the domain type; must be either
CLASSDOMAINTYPE_ENUMERATED
or
CLASSDOMAINTYPE_ENUMERATED_AND_SUBCLASSES
IfsException
- if the operation failspublic final int getDomainType() throws IfsException
IfsException
- if the operation failspublic final void setClasses(ClassObject[] cos) throws IfsException
cos
- the classesIfsException
- if the operation failspublic final ClassObject[] getClasses() throws IfsException
IfsException
- if the operation failspublic final ClassObject getClasses(int index) throws IfsException
index
- the zero-based indexIfsException
- if the operation failspublic boolean inClassDomain(ClassObject co) throws IfsException
co
- the ClassObjectIfsException
- if the operation failspublic static final String classDomainTypeResourceBundleKey(int domainType) throws IfsException
Call LibrarySession.getResourceString
with the returned
value to get a localized name for the specified ClassDomain type.
domainType
- the ClassDomain typeIfsException
- (IFS-31200) if domainType is invalidpublic String getDomainTypeLabel() throws IfsException
IfsException
- if operation fails.public static String toDomainTypeLabel(int domainType) throws IfsException
domainType
- the DomainType constant.IfsException
- if operation fails.public static String toDomainTypeLabel(int domainType, LibrarySession session) throws IfsException
domainType
- the DomainType constantsession
- the LibrarySession, whose current
Localizer will be used for the conversionIfsException
- if operation fails.public static String toDomainTypeLabel(int domainType, Localizer localizer) throws IfsException
domainType
- the DomainType constant.localizer
- the Localizer that performs the conversionIfsException
- if operation fails.public static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySessionInterface session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static ClassDomain[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ClassDomain findByName(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the ClassDomain nameIfsException
- if the operation fails.protected static ClassDomain constructClassDomain(LibrarySession session, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessiondata
- the dataIfsException
- if an error occursCopyright © 2023. All rights reserved.