public class ValueDomain extends TieSchemaObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
This class name for this class.
|
static String |
DESCRIPTION_ATTRIBUTE
A textual description of this ValueDomain.
|
static String |
UNIQUENAME_ATTRIBUTE
A system-set attribute used to ensure each ValueDomain has a unique name.
|
static String |
VALUEDOMAINPROPERTYBUNDLE_ATTRIBUTE
The PropertyBundle that defines values for this object.
|
static int |
VALUEDOMAINTYPE_ENUMERATED
The acceptable values for the ValueDomain are enumerated.
|
static int |
VALUEDOMAINTYPE_EXCLUSIVE_MAXIMUM
The acceptable values for the ValueDomain are such that
value < maximum.
|
static int |
VALUEDOMAINTYPE_EXCLUSIVE_MINIMUM
The acceptable values for the ValueDomain are such that
value > minimum.
|
static int |
VALUEDOMAINTYPE_EXCLUSIVE_RANGE
The acceptable values for the ValueDomain are such that
minimum < value < maximum.
|
static int |
VALUEDOMAINTYPE_MAXIMUM
The acceptable values for the ValueDomain are such that
value <= maximum.
|
static int |
VALUEDOMAINTYPE_MINIMUM
The acceptable values for the ValueDomain are such that
value >= minimum.
|
static int |
VALUEDOMAINTYPE_RANGE
The acceptable values for the ValueDomain are such that
minimum <= value <= maximum.
|
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 |
ValueDomain(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a ValueDomain.
|
Modifier and Type | Method and Description |
---|---|
protected static ValueDomain |
constructValueDomain(LibrarySession session,
S_LibraryObjectData data)
Internal use only: Constructs a ValueDomain for the specified data.
|
static ValueDomain[] |
findAll(LibrarySession session)
Returns the set of defined ValueDomains.
|
static ValueDomain |
findByName(LibrarySession session,
String name)
Returns the a ValueDomain matching the
specified name.
|
String |
getDescription()
Gets the description of this ValueDomain.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySessionInterface session)
Returns the LibraryObjectLookupCache used by find
ValueDomain instances by name.
|
AttributeValue |
getPropertyValue()
Gets the value of the ValueDomainPropertyBundle of this ValueDomain.
|
ValueDomainPropertyBundle |
getValueDomainPropertyBundle()
Gets the ValueDomainPropertyBundle of this ValueDomain.
|
boolean |
isAttributeValueInValueDomain(AttributeValue av)
Determines whether the specified attribute value
lies within this ValueDomain.
|
protected void |
preCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
creation of a object.
|
void |
setDescription(String description)
Sets the description of this ValueDomain.
|
void |
setEnumeratedValue(AttributeValue value)
Sets the enumerated values of the ValueDomainPropertyBundle
of this ValueDomain.
|
void |
setValueDomainPropertyBundle(ValueDomainPropertyBundle bundle)
Sets the ValueDomainPropertyBundle of this ValueDomain.
|
static String |
toValueDomainTypeLabel(int valueDomainType)
Converts the specified ValueDomainType constant to a
localized label.
|
static String |
toValueDomainTypeLabel(int valueDomainType,
LibrarySession session)
Converts the specified ValueDomainType constant to a
localized label, using the Localizer from the specified
LibrarySession.
|
static String |
toValueDomainTypeLabel(int valueDomainType,
Localizer localizer)
Converts the specified ValueDomainType constant to a
localized label, using the specified Localizer.
|
static String |
valueDomainTypeResourceBundleKey(int valueDomainType)
Gets resource bundle key for the specified ValueDomain type.
|
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, 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 VALUEDOMAINPROPERTYBUNDLE_ATTRIBUTE
public static final String UNIQUENAME_ATTRIBUTE
public static final int VALUEDOMAINTYPE_ENUMERATED
A ValueDomain can have this domain type if its data type is INTEGER, LONG, STRING, DATE, SCHEMAOBJECT, SYSTEMOBJECT, PUBLICOBJECT, or DIRECTORYOBJECT.
public static final int VALUEDOMAINTYPE_RANGE
A ValueDomain can have this domain type if its data type is INTEGER, LONG, DOUBLE, or DATE.
public static final int VALUEDOMAINTYPE_MINIMUM
A ValueDomain can have this domain type if its data type is INTEGER, LONG, DOUBLE, or DATE.
public static final int VALUEDOMAINTYPE_MAXIMUM
A ValueDomain can have this domain type if its data type is INTEGER, LONG, DOUBLE, or DATE.
public static final int VALUEDOMAINTYPE_EXCLUSIVE_RANGE
A ValueDomain can have this domain type if its data type is INTEGER, LONG, DOUBLE, or DATE.
public static final int VALUEDOMAINTYPE_EXCLUSIVE_MINIMUM
A ValueDomain can have this domain type if its data type is INTEGER, LONG, DOUBLE, or DATE.
public static final int VALUEDOMAINTYPE_EXCLUSIVE_MAXIMUM
A ValueDomain can have this domain type if its data type is INTEGER, LONG, DOUBLE, or DATE.
protected ValueDomain(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the dataIfsException
- if the operation failspublic 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 setValueDomainPropertyBundle(ValueDomainPropertyBundle bundle) throws IfsException
bundle
- the ValueDomainPropertyBundleIfsException
- if the operation failspublic final ValueDomainPropertyBundle getValueDomainPropertyBundle() throws IfsException
IfsException
- if the operation failspublic final AttributeValue getPropertyValue() throws IfsException
This method returns an array-type AttributeValue the represents the values allowed for this ValueDomain.
The number of elements in the array-type AttributeValue depends on the domain type of the ValueDomainPropertyBundle:
VALUEDOMAINTYPE_ENUMERATED
:
one element for each allowed value
VALUEDOMAINTYPE_RANGE
or VALUEDOMAINTYPE_ENUMERATED_RANGE
:
two elements; [0] is the minimum and [1] is the maximum value
VALUEDOMAINTYPE_MINIMUM
or VALUEDOMAINTYPE_ENUMERATED_MINIMUM
:
one element; [0] is the minimum value
VALUEDOMAINTYPE_MAXIMUM
or VALUEDOMAINTYPE_ENUMERATED_MAXIMUM
:
one element; [0] is the maximum value
IfsException
- if the operation failspublic void setEnumeratedValue(AttributeValue value) throws IfsException
value
- the valueIfsException
- if the operation fails.public static final String valueDomainTypeResourceBundleKey(int valueDomainType) throws IfsException
Call LibrarySession.getResourceString
with the returned
value to get a localized name for the specified ValueDomain type.
valueDomainType
- the ValueDomain typeIfsException
- (IFS-31400) if valueDomainType is invalidpublic static String toValueDomainTypeLabel(int valueDomainType) throws IfsException
valueDomainType
- the ValueDomainType constant.IfsException
- if operation fails.public static String toValueDomainTypeLabel(int valueDomainType, LibrarySession session) throws IfsException
valueDomainType
- the ValueDomainType constantsession
- the LibrarySession, whose current
Localizer will be used for the conversionIfsException
- if operation fails.public static String toValueDomainTypeLabel(int valueDomainType, Localizer localizer) throws IfsException
valueDomainType
- the ValueDomainType 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 ValueDomain[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ValueDomain findByName(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the ValueDomain nameIfsException
- if the operation fails.protected static ValueDomain constructValueDomain(LibrarySession session, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessiondata
- the dataIfsException
- if the operation failspublic boolean isAttributeValueInValueDomain(AttributeValue av) throws IfsException
av
- the attribute valueIfsException
- if the operation failsprotected void preCreate(LibraryObjectDefinition lodef) throws IfsException
This method is typically overridden by subclasses that
add attribute settings to the definition prior to the object
being created, and/or create other objects that the target object
depends on. At this point, the target object does not exist in
the database, and therefore certain operations performed on the target
will fail (such as getAttribute
).
Subclasses are expected to invoke super.preCreate
.
preCreate
in class LibraryObject
lodef
- object definition that will be used to create the objectIfsException
- if operation fails.Copyright © 2023. All rights reserved.