public class VersionDescriptionDefinition extends PublicObjectDefinition
VersionDescriptionsDefinitions are used for almost (if not all) versioning operations, for example, Branching.
VersionSeriesDefinition
,
FamilyDefinition
,
Serialized FormLibraryObjectDefinition.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 |
---|
VersionDescriptionDefinition(LibrarySessionInterface session)
Constructs a Definition explicitly capturing the
session.
|
VersionDescriptionDefinition(LibrarySessionInterface session,
String className)
Constructs a Definition, explicitly capturing the
session and setting the initial classobject.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getNewVersionBasedOn()
Returns the value of the NewVersionBasedOn flag.
|
boolean |
getOwnerBasedOnPublicObjectOption()
This returns true if the Owner of this VersionDescription will be same
as owner of PublicObject that is associated with it.
|
PublicObject |
getPublicObject()
Deprecated.
CM SDK 10gR2: use getPublicObjectValue()
|
PublicObjectDefinition |
getPublicObjectDefinition()
Get the PublicObject definition for the new VersionDescription.
|
AttributeValue |
getPublicObjectValue()
Returns the previously specified PublicObject, or null
if no value was specified.
|
VersionSeriesDefinition |
getVersionSeriesDefinition()
Returns the VersionSeries definition, or null if none specified.
|
void |
setNewVersionBasedOn(boolean basedOn)
This option specifies whether new Versions are based on
the old Versions (true), or does this definition completely
describe the new Version (false).
|
void |
setOwnerBasedOnPublicObjectOption(boolean value)
This option specifies whether the new VersionDescription should have the same
owner as the PublicObject it is refering to.
|
void |
setPublicObject(PublicObject po)
Deprecated.
CM SDK 10gR2: use setPublicObjectValue()
|
void |
setPublicObjectDefinition(PublicObjectDefinition def)
Set the Public Object definition for the new Version.
|
void |
setPublicObjectValue(AttributeValue value)
Set the Version Description definition to reference an
exiting PublicObject.
|
void |
setVersionSeriesDefinition(VersionSeriesDefinition def)
Set the Version Series definition for the new PublicObject.
|
addCategoryDefinition, addCategoryDefinition, addCategoryDefinitions, addCategoryDefinitions, applySettings, getAddToFolderOption, getAddToFolderValue, getAutoFolderingActionSpecification, getCascadeCopyRelationshipsOption, getCascadeCopyRelationshipsOptionValue, getCategoryCopyOption, getCategoryDefinitions, getContentQuotaCopyOption, getCreateCategoriesServerSideOption, getExplicitCreateAndModifyAttributesOption, getExplicitCreateDate, getExplicitLastModifyDate, getFreeIfLastFolderReferenceOption, getKeepLastModifierOption, getKeepLastModifyDateOption, getLockEntryDefinition, getLockObject, getLockObjectDefinition, getLockObjectValue, getSecuringPublicObject, getSecuringPublicObjectValue, getUpdatedLockObjectDefinition, removeCategoryDefinitions, removeLockEntryDefinition, resolveAutoFolderingSettings, setAddToFolderOption, setAddToFolderValue, setAutoFolderingActionSpecification, setAutoFolderingActionSpecification, setCascadeCopyRelationshipsOption, setCategoryCopyOption, setCategoryDefinitions, setContentQuotaCopyOption, setCreateCategoriesServerSideOption, setExplicitCreateAndModifyAttributesOption, setExplicitCreateDate, setExplicitLastModifyDate, setFreeIfLastFolderReferenceOption, setKeepLastModifierOption, setKeepLastModifyDateOption, setLockEntryDefinition, setLockObject, setLockObjectDefinition, setLockObjectValue, setNullSecurity, setPrivateSecurity, setPublishedSecurity, setSecuringPublicObject, setSecuringPublicObjectValue, setUpdatedLockObjectDefinition, toPublicObjectDefinition, toPublicObjectDefinition
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 VersionDescriptionDefinition(LibrarySessionInterface session) throws IfsException
session
- the current sessionIfsException
- if the operation failspublic VersionDescriptionDefinition(LibrarySessionInterface session, String className) throws IfsException
session
- the current sessionclassName
- the initial class nameIfsException
- if the operation failspublic void setNewVersionBasedOn(boolean basedOn) throws IfsException
basedOn
- true if new version should be based on previous version, false otherwise.IfsException
- if operation fails.public boolean getNewVersionBasedOn() throws IfsException
IfsException
- if the operation failspublic void setOwnerBasedOnPublicObjectOption(boolean value) throws IfsException
value
- if true, owner is based on PublicObject.IfsException
- if the operation failspublic boolean getOwnerBasedOnPublicObjectOption() throws IfsException
IfsException
- if the operation failspublic void setVersionSeriesDefinition(VersionSeriesDefinition def) throws IfsException
def
- the Version Series definition for the new object.IfsException
- if operation fails.public VersionSeriesDefinition getVersionSeriesDefinition() throws IfsException
IfsException
- if the operation failspublic void setPublicObjectDefinition(PublicObjectDefinition def) throws IfsException
def
- the PublicObject definition for the new versioned object.IfsException
- if operation fails.public PublicObjectDefinition getPublicObjectDefinition() throws IfsException
IfsException
- if the operation failspublic void setPublicObject(PublicObject po) throws IfsException
po
- the existing PublicObject which this new version description will reference.IfsException
- if operation fails.public void setPublicObjectValue(AttributeValue value) throws IfsException
value
- the existing PublicObject which this new version description will reference.IfsException
- if operation fails.public PublicObject getPublicObject() throws IfsException
IfsException
- if the operation failspublic AttributeValue getPublicObjectValue() throws IfsException
IfsException
- if the operation failsCopyright © 2023. All rights reserved.