public class SystemObjectDefinition extends LibraryObjectDefinition
LibraryObjectDefinition.EnumToIntegerCode, LibraryObjectDefinition.LookupByName
m_Attributes, m_ClassObjectName, m_ClassObjectValue, m_ContentSpecifications, m_DefinitionLists, m_Definitions, m_EnclosedDefinition, m_Id, m_Options, m_ReadOnly, m_ReferenceAttributes, m_Session, m_SystemOptions
Constructor and Description |
---|
SystemObjectDefinition(LibrarySessionInterface session)
Construct a definition explicitly capturing the
session.
|
SystemObjectDefinition(LibrarySessionInterface session,
String className)
Construct a definition, explicitly capturing the
session and setting the initial classobject.
|
Modifier and Type | Method and Description |
---|---|
void |
addCategoryDefinition(SystemCategoryDefinition def)
Adds a new SystemCategory Definition to the new SystemObject.
|
void |
addCategoryDefinitionForUpdate(AttributeValue av,
SystemCategoryDefinition def)
Adds a new SystemCategory Definition and a Category as an av
to this systemobject definition.
|
void |
addCategoryDefinitions(SystemCategoryDefinition[] defs)
Adds a set of new System Category Definition to the new SystemObject.
|
void |
addCategoryForDelete(AttributeValue av)
Add a Category that should be removed from the list of
Categories for this SystemObject.
|
void |
applySettings(AttributeValueTable avt)
Applies settings from the specified table.
|
AttributeValue[] |
getCategoriesForDelete()
Get any categories that have been added to this definition
for the purpose of being removed/deleted from this SystemObject.
|
SystemCategoryDefinition[] |
getCategoryDefinitions()
returns all the System CategoryDefinitions for this Definition
Return null if no System Category definitions exist
|
Hashtable |
getCategoryDefinitionsForUpdate()
Get the Hashtable that encapsulates all updates to Categories
on this SystemObject.
|
boolean |
getCreateCategoriesServerSideOption()
Return true if the CreateCategoriesServerSideOption
has been set.
|
void |
removeCategoriesForDelete()
Remove any Categories that have been added to this definition
for the purpose of being removed/deleted from this SystemObject.
|
void |
removeCategoryDefinitions()
Removes all System CategoryDefinition specifications from this instance.
|
void |
removeCategoryDefinitionsForUpdate()
Removes any SystemCategory Definitions from the SystemObject.
|
void |
setCategoryDefinitions(SystemCategoryDefinition[] defs)
Defines a set of new System Category Definition to the new SystemObject.
|
void |
setCreateCategoriesServerSideOption(boolean option)
Set or clear the option that indicates that categories
should be created from within S_SystemObject.
|
static SystemObjectDefinition |
toSystemObjectDefinition(LibraryObjectDefinition lodef)
Cast specified LibraryObjectDefinition to a SystemObjectDefinition.
|
static SystemObjectDefinition |
toSystemObjectDefinition(LibraryObjectDefinition lodef,
boolean enforceCompat)
Cast specified LibraryObjectDefinition to a SystemObjectDefinition.
|
addDefinition, addDefinitions, addProperty, addPropertyDefinition, addPropertyDefinition, addPropertyDefinitions, addPropertyDefinitions, addSimplePropertyDefinition, addSimplePropertyDefinition, addSimplePropertyDefinitions, addSimplePropertyDefinitions, applyEnumSetting, applyEnumSetting, applyMapSetting, applyMapSetting, applyObjectArraySetting, applyObjectArraySetting, applyObjectSetting, applyObjectSetting, applySetting, applySetting, captureSession, captureSession, captureSession, clone, constructInstance, constructInstance, constructInstance, copyInto, deriveObjectArraySetting, deriveObjectSetting, getAttribute, getAttribute, getAttributes, getAttributes, getAttributesSorted, getClassId, getClassObject, getClassObjectValue, getContentSpecification, getContentSpecificationKeys, getCopiedObjectValue, getDefinition, getDefinitionClassName, getDefinitionKeys, getDefinitionListKeys, getDefinitions, getId, getLibrarySession, getName, getOption, getOptionAsAttributeValue, getOptionKeys, getPolicyMode, getPropertyDefinitions, getReferenceAttribute, getReferenceAttributes, getServerDefinition, getSession, getSimplePropertyDefinitions, getSLibrarySession, getStringAttribute, getSystemOption, getSystemOptionAsAttributeValue, getSystemOptionAsBoolean, getSystemOptionKeys, getWriteableInstance, isReadOnly, prepareForDefinitionObject, processSimplePropertiesForCreate, processSimplePropertiesForUpdate, removeAttribute, removeContentSpecification, removeDefinition, removeDefinitions, removeOption, removePropertyDefinitions, removeReferenceAttribute, removeSimplePropertyDefinitions, removeSystemOption, reset, resolve, setAttribute, setAttribute, setAttribute, setAttributeByUpperCaseName, setAttributeByUpperCaseName, setAttributePolicyMode, setAttributes, setClassId, setClassname, setClassObject, setClassObjectValue, setContentSpecification, setCopiedObjectValue, setDefinition, setDefinitions, setId, setName, setOption, setReadOnly, setReferenceAttribute, setReferenceAttribute, setSession, setSimplePropertyDefinitions, setSystemOption, unresolve, verifySession
public SystemObjectDefinition(LibrarySessionInterface session) throws IfsException
session
- the current sessionIfsException
- if the operation failspublic SystemObjectDefinition(LibrarySessionInterface session, String className) throws IfsException
session
- the current sessionclassName
- the initial class nameIfsException
- if the operation failspublic void applySettings(AttributeValueTable avt) throws IfsException
applySettings
in class LibraryObjectDefinition
avt
- the table containing the settingsIfsException
- if the operation failspublic void addCategoryDefinition(SystemCategoryDefinition def) throws IfsException
def
- the SystemCategory definition for the new CategoryIfsException
- if the operation failspublic void addCategoryDefinitions(SystemCategoryDefinition[] defs) throws IfsException
defs
- the System Category definitions to be added
for this instanceIfsException
- if the operation failspublic void setCategoryDefinitions(SystemCategoryDefinition[] defs) throws IfsException
defs
- the System Category definitions for the new CategoryIfsException
- if the operation failspublic void removeCategoryDefinitions() throws IfsException
IfsException
- if the operation failspublic SystemCategoryDefinition[] getCategoryDefinitions() throws IfsException
IfsException
- if the operation failspublic void addCategoryDefinitionForUpdate(AttributeValue av, SystemCategoryDefinition def) throws IfsException
av
- the attributevalue that represents the Category
to be updateddef
- the SystemCategory definition for updating
the Category.IfsException
- if the operation failspublic void removeCategoryDefinitionsForUpdate() throws IfsException
IfsException
- if the operation failspublic Hashtable getCategoryDefinitionsForUpdate() throws IfsException
The keys in the Hashtable are the Categorys to be updated The values are the corresponding definitions.
IfsException
- if the operation failspublic void addCategoryForDelete(AttributeValue av) throws IfsException
av
- AttributeValue representing the Category to be freedIfsException
- if the operation failspublic void removeCategoriesForDelete() throws IfsException
IfsException
- if the operation failspublic AttributeValue[] getCategoriesForDelete() throws IfsException
IfsException
- if the operation failspublic void setCreateCategoriesServerSideOption(boolean option) throws IfsException
option
- true if the option is selectedIfsException
- if the operation failspublic boolean getCreateCategoriesServerSideOption() throws IfsException
IfsException
- if the operation failspublic static SystemObjectDefinition toSystemObjectDefinition(LibraryObjectDefinition lodef) throws IfsException
Return null if the specified definition is not a SystemObjectDefinition, or if the specified definition is null.
lodef
- the definition to be castedIfsException
- is not currently thrownpublic static SystemObjectDefinition toSystemObjectDefinition(LibraryObjectDefinition lodef, boolean enforceCompat) throws IfsException
Return null if the specified definition is null. If non-null and unable to cast, return null if enforceCompat is false but throw an IfsException if the specified definition is not a SystemObjectDefinition.
lodef
- the definition to be castedenforceCompat
- whether to throw an exception if
a non-null definition cannot be castIfsException
- (IFS-10822) if operation failsCopyright © 2023. All rights reserved.