public class SimplePropertyTableList extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DETAILLISTS_ATTRIBUTE
The name of the Attribute representing
the SimplePropertyTableLists representing the sublists under this TableList.
|
static String |
NAME_ATTRIBUTE
The name of the Attribute representing
the name of the SimplePropertyTableList.
|
static String |
OBJECTPROPERTYTABLE_ATTRIBUTE
The name of the Attribute representing
the SimplePropertyTable representing this object's metadata.
|
static String |
PROPERTYTABLES_ATTRIBUTE
The name of the Attribute representing
the SimplePropertyTable instances comprising this TableList.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, PROPERTYBUNDLE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
SimplePropertyTableList(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a SimplePropertyTableList object.
|
Modifier and Type | Method and Description |
---|---|
void |
addObjectProperty(String key,
AttributeValue value)
Adds an obejct property for this object.
|
void |
addPropertyTable(SimplePropertyTable spt)
Add a PropertyTable to the list of property tables held by this list.
|
SimplePropertyTable |
addPropertyTable(String tableName)
Add a SimplePropertyTable to the list of property tables held by this list.
|
SimplePropertyTable |
addPropertyTable(String tableName,
List<AttributeValueTable> propsList)
Add a SimplePropertyTable to the list of property tables held by this list.
|
static SimplePropertyTableList |
create(LibrarySession session,
String name,
List<AttributeValueTable> propTablesList,
boolean createObjectTable)
Creates an empty instance.
|
LibraryObject |
createInstance(AttributeValueTable avt)
Create a new LibraryObject from the specified AttributeValueTable.
|
static SimplePropertyTableList |
createInstance(LibrarySession session,
AttributeValueTable avt)
Create a new SimplePropertyTableList from the specified AttributeValueTable.
|
SimplePropertyTableList[] |
getDetailLists()
Gets the SimplePropertyTableLists representing the sublists under
this TableList.
|
AttributeValueTable |
getObjectPropertiesAsTable()
Gets the object properties (SimpleProperty objects) for this object
as an AttributeValueTable.
|
AttributeValue |
getObjectPropertyAsValue(String propName)
Gets the object property value for the property name specified.
|
SimplePropertyTable |
getObjectPropertyTable()
Gets the SimplePropertyTable representing this object's metadata.
|
SimplePropertyTable |
getOrCreateObjectPropertyTable()
Gets or creates the SimplePropertyTable representing this object's metadata.
|
SimplePropertyTable |
getPropertyTable(String tableName)
Gets the SimplePropertyTable for the specified name.
|
SimplePropertyTable[] |
getPropertyTables()
Gets the SimplePropertyTable instances comprising this TableList.
|
List<AttributeValueTable> |
getPropertyTablesAsList()
Gets the SimplePropertyTable instances comprising this TableList,
as a list of AttributeValueTable.
|
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 |
removeAllObjectProperties()
Removes all object properties.
|
void |
removeAllPropertyTables(boolean freeTables)
Removes all property tables.
|
void |
removeObjectProperty(String key)
Removes an object property from this object.
|
void |
removePropertyTable(String tableName)
Add a PropertyTable to the list of property tables held by this list.
|
void |
removePropertyTable(String tableName,
boolean freeTable)
Add a PropertyTable to the list of property tables held by this list,
and optionally frees the SimplePropertyTable object that was removed.
|
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, 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 OBJECTPROPERTYTABLE_ATTRIBUTE
public static final String DETAILLISTS_ATTRIBUTE
public static final String PROPERTYTABLES_ATTRIBUTE
protected SimplePropertyTableList(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 SimplePropertyTableList create(LibrarySession session, String name, List<AttributeValueTable> propTablesList, boolean createObjectTable) throws IfsException
session
- session contextname
- instance name (optional)propTablesList
- list of property tables (optional)createObjectTable
- whether to create the Object TableIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public SimplePropertyTable getObjectPropertyTable() throws IfsException
IfsException
- if the operation failspublic SimplePropertyTable getOrCreateObjectPropertyTable() throws IfsException
IfsException
- if the operation failspublic SimplePropertyTableList[] getDetailLists() throws IfsException
IfsException
- if the operation failspublic SimplePropertyTable[] getPropertyTables() throws IfsException
IfsException
- if the operation failspublic SimplePropertyTable getPropertyTable(String tableName) throws IfsException
tableName
- the name for the new SimplePropertyTableIfsException
- if the operation failspublic AttributeValueTable getObjectPropertiesAsTable() throws IfsException
IfsException
- if the operation failspublic AttributeValue getObjectPropertyAsValue(String propName) throws IfsException
propName
- the property nameIfsException
- if the operation failspublic void addObjectProperty(String key, AttributeValue value) throws IfsException
key
- the property's keyvalue
- the property's valueIfsException
- if the operation failspublic void removeObjectProperty(String key) throws IfsException
key
- the property's keyIfsException
- if the operation failspublic void removeAllObjectProperties() throws IfsException
IfsException
- if operation failspublic List<AttributeValueTable> getPropertyTablesAsList() throws IfsException
IfsException
- if the operation failspublic void addPropertyTable(SimplePropertyTable spt) throws IfsException
spt
- the PropertyTable to addIfsException
- if the operation fails.public SimplePropertyTable addPropertyTable(String tableName) throws IfsException
The new SimplePropertyTable will initally have no properties defined.
tableName
- the name for the new SimplePropertyTableIfsException
- if the operation fails.public SimplePropertyTable addPropertyTable(String tableName, List<AttributeValueTable> propsList) throws IfsException
The property list has an individual property defined in each AttributeValueTable.
tableName
- the name for the new SimplePropertyTablepropsList
- the propertiesIfsException
- if the operation fails.public void removePropertyTable(String tableName) throws IfsException
Also frees the SimplePropertyTable object that was removed.
tableName
- the name of the PropertyTable to removeIfsException
- if the operation fails.public void removePropertyTable(String tableName, boolean freeTable) throws IfsException
tableName
- the name of the PropertyTable to removefreeTable
- whether to free the SimplePropertyTable object
that was removedIfsException
- if the operation fails.public void removeAllPropertyTables(boolean freeTables) throws IfsException
freeTables
- whether to free the SimplePropertyTable objects
that are removedIfsException
- if the operation failspublic LibraryObject createInstance(AttributeValueTable avt) throws IfsException
createInstance
in class LibraryObject
avt
- the object definition, as a AttributeValueTableIfsException
- if operation fails.public static SimplePropertyTableList 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.