public class ValueDefault extends TieSchemaObject
Use a ValueDefault if NULL is not a valid value for an Attribute.
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 ValueDefault.
|
static String |
UNIQUENAME_ATTRIBUTE
A system-set attribute used to ensure each ValueDefault has a unique Name.
|
static String |
VALUEDEFAULTPROPERTYBUNDLE_ATTRIBUTE
The PropertyBundle that defines the values for this object.
|
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 |
ValueDefault(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Constructs a ValueDefault.
|
Modifier and Type | Method and Description |
---|---|
protected static ValueDefault |
constructValueDefault(LibrarySession session,
S_LibraryObjectData data)
Internal use only: Constructs a ValueDefault for the specified data.
|
static ValueDefault[] |
findAll(LibrarySession session)
Returns the set of defined ValueDefaults.
|
static ValueDefault |
findByName(LibrarySession session,
String name)
Returns the a ValueDefault matching the
specified name.
|
String |
getDescription()
Gets the description of this ValueDefault.
|
static LibraryObjectLookupCache |
getLibraryObjectLookupCache(LibrarySessionInterface session)
Returns the LibraryObjectLookupCache used by find
ValueDefault instances by name.
|
AttributeValue |
getPropertyValue()
Gets the value of the ValueDefaultPropertyBundle of this ValueDefault.
|
ValueDefaultPropertyBundle |
getValueDefaultPropertyBundle()
Gets the ValueDefaultPropertyBundle of this ValueDefault.
|
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 ValueDefault.
|
void |
setValueDefaultPropertyBundle(ValueDefaultPropertyBundle bundle)
Sets the ValueDefaultPropertyBundle of this ValueDefault.
|
void |
updatePropertyValue(AttributeValue value)
Sets the value of the ValueDefaultPropertyBundle of this ValueDefault.
|
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 VALUEDEFAULTPROPERTYBUNDLE_ATTRIBUTE
public static final String UNIQUENAME_ATTRIBUTE
protected ValueDefault(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- the sessionid
- the idclassId
- the class iddata
- the dataIfsException
- if the operation fails.public final void setDescription(String description) throws IfsException
description
- the descriptionIfsException
- if the operation fails.public final String getDescription() throws IfsException
IfsException
- if the operation fails.public final void setValueDefaultPropertyBundle(ValueDefaultPropertyBundle bundle) throws IfsException
bundle
- the ValueDefaultPropertyBundleIfsException
- if the operation fails.public final ValueDefaultPropertyBundle getValueDefaultPropertyBundle() throws IfsException
IfsException
- if the operation fails.public final AttributeValue getPropertyValue() throws IfsException
This returns an AttributeValue the represents the value set for this ValueDefault.
IfsException
- if the operation fails.public void updatePropertyValue(AttributeValue value) throws IfsException
value
- the valueIfsException
- if the operation fails.protected static ValueDefault constructValueDefault(LibrarySession session, S_LibraryObjectData data) throws IfsException
For internal use only. Do not use this method.
session
- the sessiondata
- the dataIfsException
- if the operation fails.public static LibraryObjectLookupCache getLibraryObjectLookupCache(LibrarySessionInterface session) throws IfsException
session
- the session contextIfsException
- if the operation fails.public static ValueDefault[] findAll(LibrarySession session) throws IfsException
The instances will be sorted by name.
session
- the session contextIfsException
- if the operation fails.public static ValueDefault findByName(LibrarySession session, String name) throws IfsException
session
- the session contextname
- the ValueDefault nameIfsException
- if the operation fails.protected 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.