public class PublicObjectDefinition extends LibraryObjectDefinition
LibraryObjectDefinition.EnumToIntegerCode, LibraryObjectDefinition.LookupByNamem_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 | 
|---|
PublicObjectDefinition(LibrarySessionInterface session)
Construct a definition explicitly capturing the
 session. 
 | 
PublicObjectDefinition(LibrarySessionInterface session,
                      String className)
Construct a definition, explicitly capturing the
 session and setting the initial classobject. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addCategoryDefinition(AttributeValueTable catTable)
Adds a new Category deifnition for a category specified in a table. 
 | 
void | 
addCategoryDefinition(CategoryDefinition def)
Adds a new Category Definition to the new PublicObject. 
 | 
void | 
addCategoryDefinitions(CategoryDefinition[] defs)
Adds a set of new Category Definition to the new PublicObject. 
 | 
void | 
addCategoryDefinitions(List<AttributeValueTable> catList)
Adds a set of new Category Definitions via a table list. 
 | 
void | 
applySettings(AttributeValueTable avt)
Applies settings from the specified table. 
 | 
AttributeValue | 
getAddToFolderOption()
Deprecated. 
 
CM SDK 10gR2: use getAddToFolderValue() 
 | 
AttributeValue | 
getAddToFolderValue()
returns the Add To Folder Option for the new PublicObject. 
 | 
AutoFolderingActionSpecification | 
getAutoFolderingActionSpecification()
Gets the option indicating the auto-foldering action specification, 
 used in document creation operations. 
 | 
boolean | 
getCascadeCopyRelationshipsOption()
Return the value of the CascadeCopyRelationships option. 
 | 
AttributeValue | 
getCascadeCopyRelationshipsOptionValue()
Return the value of the CascadeCopyRelationships option. 
 | 
Boolean | 
getCategoryCopyOption()
Return the CopyCategories copy Option. 
 | 
CategoryDefinition[] | 
getCategoryDefinitions()
returns all the CategoryDefinitions for this PO Definition
 Return an empty array if no Category definitions exist 
 | 
AttributeValue | 
getContentQuotaCopyOption()
returns the ContentQuota copy Option. 
 | 
boolean | 
getCreateCategoriesServerSideOption()
Return true if the CreateCategoriesServerSideOption
 has been set. 
 | 
boolean | 
getExplicitCreateAndModifyAttributesOption()
Return true if the ExplicitCreateAndModifyAttributesOption
 has been set. 
 | 
Date | 
getExplicitCreateDate()
returns any explicitly specified CreateDate, if specified
 via the setExplicitCreateDateOption() method. 
 | 
Date | 
getExplicitLastModifyDate()
returns any explicitly specified LastModifydate, if specified
 via the setExplicitLastModifyDate() method. 
 | 
boolean | 
getFreeIfLastFolderReferenceOption()
return true if the FreeIfLastFolderReferenceOption
 has been set. 
 | 
boolean | 
getKeepLastModifierOption()
return the indication as to whether the last modifier
 should remain unchanged as part of an update operation. 
 | 
boolean | 
getKeepLastModifyDateOption()
return the indication as to whether the last modification date
 should remain unchanged as part of an update operation. 
 | 
LockEntryDefinition | 
getLockEntryDefinition()
Gets the LockEntry definition describing the 
 type of lock to be created after the PublicObject is created,
 set previously via  
setLockEntryDefinition | 
LockObject | 
getLockObject()
Deprecated. 
 
CM SDK 10gR2: use getLockObjectValue() 
 | 
LockObjectDefinition | 
getLockObjectDefinition()
get the LockObject Definition set on this PO 
 | 
AttributeValue | 
getLockObjectValue()
get the LockObject to be set on this PO 
 | 
PublicObject | 
getSecuringPublicObject()
Deprecated. 
 
CM SDK 10gR2: use getSecuringPublicObjectValue() 
 | 
AttributeValue | 
getSecuringPublicObjectValue()
returns the object responsible for providing security
 settings for the target object. 
 | 
LockObjectDefinition | 
getUpdatedLockObjectDefinition()
get the LockObject Definition to be set on this PO to update
 its lockobject directly. 
 | 
void | 
removeCategoryDefinitions()
Removes all CategoryDefinition specifications from this instance. 
 | 
void | 
removeLockEntryDefinition()
Removes the lockEntryDefinition specification from this instance. 
 | 
void | 
resolveAutoFolderingSettings()
Resolves the AutoFoldering settings, if set. 
 | 
void | 
setAddToFolderOption(Folder folder)
set the Add To Folder Option for the new PublicObject. 
 | 
void | 
setAddToFolderValue(AttributeValue av)
set the Add To Folder Option for the new PublicObject. 
 | 
void | 
setAutoFolderingActionSpecification(AutoFolderingActionSpecification value)
Sets the option indicating the auto-foldering action specification, 
 used in document creation operations. 
 | 
void | 
setAutoFolderingActionSpecification(String specName)
Sets the option indicating the auto-foldering action specification, 
 used in document creation operations, where the specification name is 
 specified. 
 | 
void | 
setCascadeCopyRelationshipsOption(boolean option)
Set or clear the option that indicates that relationships
 should be copied. 
 | 
void | 
setCategoryCopyOption(boolean shouldCopy)
set the CopyCategories copy Option. 
 | 
void | 
setCategoryDefinitions(CategoryDefinition[] defs)
Defines a set of new Category Definition to the new PublicObject. 
 | 
void | 
setContentQuotaCopyOption(AttributeValue quota)
set the ContentQuota copy Option. 
 | 
void | 
setCreateCategoriesServerSideOption(boolean option)
Set or clear the option that indicates that categories
 should be created from within S_PublicObject. 
 | 
void | 
setExplicitCreateAndModifyAttributesOption(boolean option)
Set or clear the option that indicates that create and modify
 attributes are set explicitly in the definition. 
 | 
void | 
setExplicitCreateDate(Date createDate)
sets an explicit CreateDate. 
 | 
void | 
setExplicitLastModifyDate(Date modDate)
sets an explicit LastModifydate. 
 | 
void | 
setFreeIfLastFolderReferenceOption(boolean option)
set or clear the option to free an object if
 it has no Folder references after it is explicitly
 removed from the last Folder. 
 | 
void | 
setKeepLastModifierOption(boolean option)
set or clear the indication to keep the last modifier unchanged
 as part of an update operation. 
 | 
void | 
setKeepLastModifyDateOption(boolean option)
set or clear the indication to keep the last modification unchanged
 as part of an update operation. 
 | 
void | 
setLockEntryDefinition(LockEntryDefinition def)
Sets the LockEntry definition describing the 
 type of lock to be created after the PublicObject is created. 
 | 
void | 
setLockObject(LockObject lobj)
set the LockObject directly on the PO to an existing lockobject
 this allows for sharing of lockobject's 
 | 
void | 
setLockObjectDefinition(LockObjectDefinition ldef)
set the LockObject Definition to be used for the PO
 setting this will always construct a new lockobject
 for the PO. 
 | 
void | 
setLockObjectValue(AttributeValue lobj)
set the LockObject directly on the PO to an existing lockobject
 this allows for sharing of lockobject's 
 | 
void | 
setNullSecurity()
Set a null ACL and the SYSTEM user as the owner. 
 | 
void | 
setPrivateSecurity()
Sets private security and the SYSTEM user as the owner. 
 | 
void | 
setPublishedSecurity()
Sets published security and the SYSTEM user as the owner. 
 | 
void | 
setSecuringPublicObject(PublicObject obj)
set the object responsible for providing security
 settings for the target object. 
 | 
void | 
setSecuringPublicObjectValue(AttributeValue av)
set the object responsible for providing security
 settings for the target object. 
 | 
void | 
setUpdatedLockObjectDefinition(LockObjectDefinition ldef)
set the LockObject Definition to be used for 
 updating the lockobject of this PO. 
 | 
static PublicObjectDefinition | 
toPublicObjectDefinition(LibraryObjectDefinition lodef)
Cast specified LibraryObjectDefinition to a PublicObjectDefinition. 
 | 
static PublicObjectDefinition | 
toPublicObjectDefinition(LibraryObjectDefinition lodef,
                        boolean enforceCompat)
Cast specified LibraryObjectDefinition to a PublicObjectDefinition. 
 | 
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, verifySessionpublic PublicObjectDefinition(LibrarySessionInterface session) throws IfsException
session - the current sessionIfsException - if the operation failspublic PublicObjectDefinition(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 LibraryObjectDefinitionavt - the table having the definition settingsIfsException - if the operation failspublic void addCategoryDefinition(AttributeValueTable catTable) throws IfsException
catTable - the Category tableIfsException - if the operation failspublic void addCategoryDefinitions(List<AttributeValueTable> catList) throws IfsException
catList - the Category table listIfsException - if the operation failspublic void addCategoryDefinition(CategoryDefinition def) throws IfsException
def - the Category definition for the new Category.IfsExceptionpublic void addCategoryDefinitions(CategoryDefinition[] defs) throws IfsException
defs - the Category definitions to be added for this instanceIfsExceptionpublic void setCategoryDefinitions(CategoryDefinition[] defs) throws IfsException
defs - the Category definitions for the new Category.IfsExceptionpublic void removeCategoryDefinitions()
                               throws IfsException
IfsExceptionpublic CategoryDefinition[] getCategoryDefinitions() throws IfsException
IfsException - if the operation failspublic void setExplicitCreateAndModifyAttributesOption(boolean option)
                                                throws IfsException
option - true if the option is selected.IfsException - if operation fails.public boolean getExplicitCreateAndModifyAttributesOption()
                                                   throws IfsException
IfsException - if operation fails.public void setKeepLastModifyDateOption(boolean option)
                                 throws IfsException
option - true if the LastModifydate is to remain unchanged
 after the update is applied.IfsException - if operation fails.public boolean getKeepLastModifyDateOption()
                                    throws IfsException
IfsException - if operation fails.public void setKeepLastModifierOption(boolean option)
                               throws IfsException
option - true if the LastModifier is to remain unchanged
 after the update is applied.IfsException - if operation fails.public boolean getKeepLastModifierOption()
                                  throws IfsException
IfsException - if operation fails.public void setExplicitCreateDate(Date createDate) throws IfsException
createDate - the Create Date.IfsException - if operation fails.public Date getExplicitCreateDate() throws IfsException
IfsException - if operation fails.public void setExplicitLastModifyDate(Date modDate) throws IfsException
modDate - the Last Modification Date.IfsException - if operation fails.public Date getExplicitLastModifyDate() throws IfsException
IfsException - if operation fails.public void setFreeIfLastFolderReferenceOption(boolean option)
                                        throws IfsException
option - true if the option is selected.IfsException - if operation fails.public boolean getFreeIfLastFolderReferenceOption()
                                           throws IfsException
IfsException - if operation fails.public void setCreateCategoriesServerSideOption(boolean option)
                                         throws IfsException
option - true if the option is selected.IfsException - if operation fails.public boolean getCreateCategoriesServerSideOption()
                                            throws IfsException
IfsException - if operation fails.public void setCascadeCopyRelationshipsOption(boolean option)
                                       throws IfsException
option - true if the option is selected.IfsException - if operation fails.public boolean getCascadeCopyRelationshipsOption()
                                          throws IfsException
If the option has not been set, return true (the historical default).
IfsException - if operation fails.public AttributeValue getCascadeCopyRelationshipsOptionValue() throws IfsException
Return null if the option has not been set.
IfsException - if operation fails.public void setLockObjectDefinition(LockObjectDefinition ldef) throws IfsException
ldef - The LockObjectDefinition for the new lockIfsException - if the operation failspublic LockObjectDefinition getLockObjectDefinition() throws IfsException
IfsExceptionpublic void setUpdatedLockObjectDefinition(LockObjectDefinition ldef) throws IfsException
ldef - The LockObjectDefinition with the attributes to be updatedIfsException - if the operation failspublic LockObjectDefinition getUpdatedLockObjectDefinition() throws IfsException
IfsExceptionpublic void setLockObject(LockObject lobj) throws IfsException
lobj - The LockObject to be sharedIfsException - if the operation failspublic void setLockObjectValue(AttributeValue lobj) throws IfsException
lobj - The LockObject value to be sharedIfsException - if the operation fails@Deprecated public LockObject getLockObject() throws IfsException
IfsException - if the operation failspublic AttributeValue getLockObjectValue() throws IfsException
IfsException - if the operation failspublic void setSecuringPublicObject(PublicObject obj) throws IfsException
obj - the object responsible for providing security
 settings for the target object.IfsException - if operation fails.public void setSecuringPublicObjectValue(AttributeValue av) throws IfsException
av - the object responsible for providing security
          settings for the target object.IfsException - if operation fails.@Deprecated public PublicObject getSecuringPublicObject() throws IfsException
IfsException - if operation fails.public AttributeValue getSecuringPublicObjectValue() throws IfsException
IfsException - if operation fails.public void setNullSecurity()
                     throws IfsException
IfsException - if operation fails.public void setPrivateSecurity()
                        throws IfsException
IfsException - if operation fails.public void setPublishedSecurity()
                          throws IfsException
IfsException - if operation fails.public void setAddToFolderOption(Folder folder) throws IfsException
folder - the Folder in which to add the new object.IfsException - if operation fails.public void setAddToFolderValue(AttributeValue av) throws IfsException
av - the value representing the Folder in which to 
              add the new object.IfsException - if operation fails.@Deprecated public AttributeValue getAddToFolderOption() throws IfsException
IfsException - if operation fails.public AttributeValue getAddToFolderValue() throws IfsException
IfsException - if operation fails.public void setAutoFolderingActionSpecification(AutoFolderingActionSpecification value) throws IfsException
If a null value is specified, the option is removed from the specified definition.
value - the value of the optionIfsException - if the operation failspublic void setAutoFolderingActionSpecification(String specName) throws IfsException
If there is no AutoFolderingActionSpecification with the specified name, an IfsException is thrown.
If a null value is specified, the option is removed from the specified definition.
specName - the name of the AutoFolderingActionSpecificationIfsException - if the operation failspublic AutoFolderingActionSpecification getAutoFolderingActionSpecification() throws IfsException
Returns null if the option is not set.
IfsException - if the operation failspublic void resolveAutoFolderingSettings()
                                  throws IfsException
IfsException - if the operation failspublic void setCategoryCopyOption(boolean shouldCopy)
                           throws IfsException
shouldCopy - true if Category object should be copied as part
            of copying a PublicObject (the default); false 
            otherwiseIfsException - if operation fails.public void setContentQuotaCopyOption(AttributeValue quota) throws IfsException
quota - the AttributeValue containing the ContentQuota that should be used
          for all new Documents created as result
          of a cascaded copy operation.IfsException - if operation fails.public AttributeValue getContentQuotaCopyOption() throws IfsException
IfsException - if operation fails.public Boolean getCategoryCopyOption() throws IfsException
IfsException - if operation fails.public void setLockEntryDefinition(LockEntryDefinition def) throws IfsException
def - definition of the LockEntryIfsException - other: if the operation failspublic LockEntryDefinition getLockEntryDefinition() throws IfsException
setLockEntryDefinitionIfsException - other: if the operation failspublic void removeLockEntryDefinition()
                               throws IfsException
IfsException - other: if the operation failspublic static PublicObjectDefinition toPublicObjectDefinition(LibraryObjectDefinition lodef) throws IfsException
Return null if the specified definition is not a PublicObjectDefinition, or if the specified definition is null.
lodef - the definition to be castedIfsException - is not currently thrown.public static PublicObjectDefinition toPublicObjectDefinition(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 PublicObjectDefinition.
lodef - the definition to be castedenforceCompat - whether to throw an exception if
                         a non-null definition cannot be castIfsException - (IFS-10822) if operation fails.Copyright © 2025. All rights reserved.