public class SimplePropertyTable extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
NAME_ATTRIBUTE
The name of the Attribute representing
The name of the SimplePropertyTable.
|
static String |
PROPERTIES_ATTRIBUTE
The name of the Attribute representing
the SimpleProperty instances comprising this table.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, PROPERTYBUNDLE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
SimplePropertyTable(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a SimplePropertyTable object.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
AttributeValue value)
Adds a property (SimpleProperty) for this object.
|
static SimplePropertyTable |
create(LibrarySession session,
String name)
Creates an empty instance.
|
LibraryObject |
createInstance(AttributeValueTable avt)
Create a new LibraryObject from the specified AttributeValueTable.
|
static SimplePropertyTable |
createInstance(LibrarySession session,
AttributeValueTable avt)
Create a new SimplePropertyTable from the specified AttributeValueTable.
|
SimpleProperty[] |
getProperties()
Gets the properties (SimpleProperty objects) for this object.
|
AttributeValueTable |
getPropertiesAsTable()
Gets the properties (SimpleProperty objects) for this object
as an AttributeValueTable.
|
String |
getPropertiesAttributeName()
Gets the name of the Attribute that holds the properties for this object.
|
SimpleProperty |
getProperty(String propName)
Gets the property (SimpleProperty object) for the property name specified.
|
AttributeValue |
getPropertyAsValue(String propName)
Gets the property value for the property name specified.
|
static SimplePropertyTable |
getSimplePropertyTable(AttributeValue av,
LibrarySession session)
Gets a SimplePropertyTable for the specified AttributeValue.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
protected void |
postCreate(LibraryObjectDefinition lodef)
Extensibility point to perform actions after the
creation of a object.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
protected void |
preUpdate(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the update of a object.
|
void |
removeAllProperties()
Removes all simple properties.
|
void |
removeProperty(String key)
Removes a property (SimpleProperty) from this object.
|
free, handleCreate, isValidEventType
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, 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, hasPropertyBundleAttribute, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, postUpdate, preCreate, prePostAuditEvent, putProperty, putProperty, removeAllSimpleProperties, removeAllSimpleProperties, removed, 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 PROPERTIES_ATTRIBUTE
protected SimplePropertyTable(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic static SimplePropertyTable create(LibrarySession session, String name) throws IfsException
session
- session contextname
- instance name (optional)IfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public String getPropertiesAttributeName() throws IfsException
Can be overridden by subclasses who wish to keep the properties in an Attribute defined in the subclass, to avoid overloading the default attribute.
IfsException
- if the operation failspublic SimpleProperty[] getProperties() throws IfsException
IfsException
- if the operation failspublic SimpleProperty getProperty(String propName) throws IfsException
propName
- the property nameIfsException
- if the operation failspublic AttributeValue getPropertyAsValue(String propName) throws IfsException
propName
- the property nameIfsException
- if the operation failspublic AttributeValueTable getPropertiesAsTable() throws IfsException
IfsException
- if the operation failspublic static SimplePropertyTable getSimplePropertyTable(AttributeValue av, LibrarySession session) throws IfsException
av
- the AttributeValuesession
- the session contextIfsException
- if the operation failspublic void addProperty(String key, AttributeValue value) throws IfsException
key
- the property's keyvalue
- the property's valueIfsException
- if the operation failspublic void removeProperty(String key) throws IfsException
removeProperty
in class LibraryObject
key
- the property's keyIfsException
- if the operation failspublic void removeAllProperties() throws IfsException
removeAllProperties
in class LibraryObject
IfsException
- if operation failspublic LibraryObject createInstance(AttributeValueTable avt) throws IfsException
createInstance
in class LibraryObject
avt
- the object definition, as a AttributeValueTableIfsException
- if operation fails.public static SimplePropertyTable createInstance(LibrarySession session, AttributeValueTable avt) throws IfsException
session
- the session contextavt
- the object definition, as a AttributeValueTableIfsException
- if operation fails.protected void postCreate(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform operations after an object is created.
Subclasses are expected to invoke super.postCreate
.
postCreate
in class LibraryObject
lodef
- object definition that was used to create the objectIfsException
- if operation fails.protected void preUpdate(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being updated, in order to modify objects related
to the target object.
Subclasses are expected to invoke super.preUpdate
.
preUpdate
in class LibraryObject
lodef
- object definition used to define how the target object
will be updatedIfsException
- if operation fails.protected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.Copyright © 2023. All rights reserved.