Package com.arbortext.epic.cms
Interface CMSObject
- All Known Implementing Classes:
CMSObjectImpl
public interface CMSObject
The
CMSObject interface represents a reference to a content
management system (CMS) object. If a document references the same child
object twice then there will be two different references to that same
child CMS object. Each reference will have its own distinct
CMSObject object that can have different properties from
the other. For example, the start and end
properties would be different for each.- Since:
- Epic 5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that, in addition to possibly creating new child objects via bursting, metadata on the object should be set according to the rules in the applicable burst configuration file.static final intBreak existing locks (if supported).static final intIndicates to save the attributes.static final intIndicates to save the object's children (recursively) when the object is saved.static final intIndicates to save the object's content into the CMS.static final intIndicates to save the XML/SGML declarations.static final intDo not save processing instructions (PIs).static final intIndicates to always update internal references, even if they have not changed.static final intThe class type is a virtual document object with children.static final intThe class type is an expanded file entity.static final intThe class type is fallback markup for an XInclude that could not be expanded.static final intThe class type is a file entity open for editing in a separate window.static final intThe class type is an included object (via XInclude).static final intThe class type is a virtual document object with no children.static final intThe class type is an unexpanded file entity.static final intThe class type is unknown.static final intIndicates that this object is locked or checked out by the current user.static final intIndicates that this object is locked or checked out by another user.static final intIndicates that this object is not locked or checked out by any user. -
Method Summary
Modifier and TypeMethodDescriptionburst()Method overload which omits the last parameter.burst(int flags) Bursts the checked out object.Unlocks the object in the CMS without updating it.checkin()Checks the object in to the CMS.checkout()Method overload which omits the last parameter.checkout(int flags) Locks the CMS object for modification.createEvent(String eventType) Creates an event of typeCMSObjectEvent.voidDeletes the object from the CMS.intgetAclId()Specifies thedobjID equivalent to thisCMSObjectobject.Returns a collection of all active object references to the same associated CMS object version.getAttribute(String attribute) Method overload which omits the last parameter.getAttribute(String attribute, int index) Reads the value of an attribute.Method overload which omits the last parameter.getAttributes(StringList attributes) Gets the values for a list of attributes.Retrieves the contents of a folder or the children of a document object.Specifies the name of the CMS object type.Specifies the path name of object in the CMS.Specifies the check in or check out comment for the object.Specifies the type of the object's content.Specifies the object's creation date in an adapter-specific human-readable form.Specifies the object reference that encloses this particular CMS object reference.Specifies the character encoding of the object's content.getEnd()Specifies the last DOM Node associated with the object reference.booleanIndicates whether the document is marked for full text indexing.booleanSpecifies whether non-folder objects have any child object references.Specifies the object's instance document type name.booleanIndicates whether the object is a folder or folder subtype.booleanIndicates whether this version is the most recent version of the object on a particular CMS branch.booleanIndicates whether the object contains references to child objects which are virtual document objects.booleanIndicates whether the current user can attempt to lock the object.Specifies the CMS user name that currently holds the lock.intSpecifies the lock status of this CMS object.Specifies a human-readable string describing the lock status.Specifies the Logical ID of the object used for external binding.Specifies the object's last modification date in an adapter-specific human-readable form.booleanWill betrueif the object's content has been modified in memory and has not yet been saved.getName()Specifies the name of object.intSpecifies the class of the CMS object.Returns an iterator over the set of documents that reference this object.Specifies the permissions associated with the object in a human-readable string.getPoid()Specifies the Persistent Object Identifier (POID) associated with the object.Specifies the Public ID of the object's DTD or Schema.booleanIndicates whether the object's content is read-only.Specifies theCMSSessionobject associated with this object.intgetSize()Specifies the size of the object content in bytes.getStart()Specifies the first DOM Node associated with the object reference.Specifies the System ID of the object's DTD or Schema.Specifies the tag name for the top-level element in the object.getUserData(String key) Retrieves application data from the object.booleangetValid()Indicates whether this still represents a valid object reference.Specifies the CMS version ID of the object in an adapter-specific format.Returns an iterator over all versions of the object.invokeExtension(int opcode, PropertyMap map) Invokes an adapter-specific extension function.voidMoves the object to a new folder in the CMS.voidReleases this reference to the underlying repository object.voidsave(int flags) Saves a CMS object without checking it in (interim save).voidsetAttribute(String attribute, String value) Method overload which omits the last parameter.voidsetAttribute(String attribute, String value, int index) Sets the value of an attribute.voidsetAttributes(PropertyMap attributeValues) Sets the values for a list of attributes.voidsetContentType(String contentType) Specifies the type of the object's content.voidsetEncoding(String encoding) Specifies the character encoding of the object's content.voidsetFullTextIndexed(boolean fullTextIndexed) Indicates whether the document is marked for full text indexing.voidsetHasChildRefs(boolean hasChildRefs) Specifies whether non-folder objects have any child object references.voidsetInstanceDoctypeName(String instanceDoctypeName) Specifies the object's instance document type name.voidsetIsVirtualDocContainer(boolean isVirtualDocContainer) Indicates whether the object contains references to child objects which are virtual document objects.voidSpecifies the name of object.voidsetOldUserData(String data) This method can be used to allow some properties and methods in this interface to work with older adapters ("Oracle iFS Adapter" or "Documentum Adapter").voidsetPublicId(String publicId) Specifies the Public ID of the object's DTD or Schema.voidsetSystemId(String systemId) Specifies the System ID of the object's DTD or Schema.voidsetTagName(String tagName) Specifies the tag name for the top-level element in the object.voidsetUserData(String key, String data) Stores some application data on the object.
-
Field Details
-
CMS_SAVE_OBJECT_ATTR
static final int CMS_SAVE_OBJECT_ATTRIndicates to save the attributes.
Will force the adapter to commit any pending attribute changes for this object into the CMS.- See Also:
-
CMS_SAVE_OBJECT_CONTENT
static final int CMS_SAVE_OBJECT_CONTENTIndicates to save the object's content into the CMS.- See Also:
-
CMS_SAVE_OBJECT_DECLS
static final int CMS_SAVE_OBJECT_DECLSIndicates to save the XML/SGML declarations.
For adapters which do not support the separate saving of declarations, just include this along with theCMS_SAVE_OBJECT_CONTENTbit since the declarations will be saved with the content.- See Also:
-
CMS_SAVE_OBJECT_NO_PI
static final int CMS_SAVE_OBJECT_NO_PIDo not save processing instructions (PIs).- See Also:
-
CMS_SAVE_OBJECT_UPDATE_ENT_LINKS
static final int CMS_SAVE_OBJECT_UPDATE_ENT_LINKSIndicates to always update internal references, even if they have not changed.
If set, PTC Arbortext Editor and PTC Arbortext Publishing Engine will call the adapter'sIOObject.modifyChildRefsmethod even if the child links have not changed.- See Also:
-
CMS_SAVE_OBJECT_CHILDREN
static final int CMS_SAVE_OBJECT_CHILDRENIndicates to save the object's children (recursively) when the object is saved.- See Also:
-
CMS_LOCK_FORCE
static final int CMS_LOCK_FORCEBreak existing locks (if supported).- See Also:
-
CMSOBJECT_CLASS_UNKNOWN
static final int CMSOBJECT_CLASS_UNKNOWNThe class type is unknown.- See Also:
-
CMSOBJECT_CLASS_CONTAINER
static final int CMSOBJECT_CLASS_CONTAINERThe class type is a virtual document object with children.- See Also:
-
CMSOBJECT_CLASS_LEAF
static final int CMSOBJECT_CLASS_LEAFThe class type is a virtual document object with no children.- See Also:
-
CMSOBJECT_CLASS_EXPANDED_FILE_ENTITY
static final int CMSOBJECT_CLASS_EXPANDED_FILE_ENTITYThe class type is an expanded file entity.- See Also:
-
CMSOBJECT_CLASS_UNEXPANDED_FILE_ENTITY
static final int CMSOBJECT_CLASS_UNEXPANDED_FILE_ENTITYThe class type is an unexpanded file entity.- See Also:
-
CMSOBJECT_CLASS_FILE_ENTITY_WINDOW
static final int CMSOBJECT_CLASS_FILE_ENTITY_WINDOWThe class type is a file entity open for editing in a separate window.- See Also:
-
CMSOBJECT_CLASS_INCLUDE
static final int CMSOBJECT_CLASS_INCLUDEThe class type is an included object (via XInclude).- See Also:
-
CMSOBJECT_CLASS_FALLBACK
static final int CMSOBJECT_CLASS_FALLBACKThe class type is fallback markup for an XInclude that could not be expanded.- See Also:
-
CMSOBJECT_STATUS_UNLOCKED
static final int CMSOBJECT_STATUS_UNLOCKEDIndicates that this object is not locked or checked out by any user.- See Also:
-
CMSOBJECT_STATUS_LOCKED_BY_ME
static final int CMSOBJECT_STATUS_LOCKED_BY_MEIndicates that this object is locked or checked out by the current user.- See Also:
-
CMSOBJECT_STATUS_LOCKED_BY_OTHER
static final int CMSOBJECT_STATUS_LOCKED_BY_OTHERIndicates that this object is locked or checked out by another user.- See Also:
-
CMS_BURST_SET_METADATA
static final int CMS_BURST_SET_METADATAIndicates that, in addition to possibly creating new child objects via bursting, metadata on the object should be set according to the rules in the applicable burst configuration file.- See Also:
-
-
Method Details
-
getObjectClass
Specifies the class of the CMS object. The value is one of theCMSObjectClassTypeenumerated constants.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getStart
Specifies the first DOM Node associated with the object reference. You can reference a given CMS object in multiple places in either a single document or multiple documents. See theallReferencesattribute for more details.
This may benullif this object reference is not currently associated with any DOM Nodes. For example, this could represent a folder object or an object whose content has not yet been loaded into a document.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getEnd
Specifies the last DOM Node associated with the object reference. You can reference a given CMS object in multiple places in either a single document or multiple documents. SeeallReferencesfor more details.
This may benullif this object reference is not currently associated with any DOM Nodes. For example, this could represent a folder object or an object whose content has not yet been loaded into a document.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getModified
Will betrueif the object's content has been modified in memory and has not yet been saved.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getReadOnly
Indicates whether the object's content is read-only. Note that this is independent of whether the current user has this object checked out because some adapter's may allow for such a combination.- Throws:
CMSException- Raised for any error.
-
getLockStatus
Specifies the lock status of this CMS object. The value is one of theCMSObjectLockStatusTypeenumerated constants.- Throws:
CMSException- Raised for any error.
-
getLockable
Indicates whether the current user can attempt to lock the object. For example, if another user has the object checked out, this attribute should befalse.
Atruevalue is not a guarantee that acheckoutwill succeed since, for example, another user could have checked this out in the mean time.- Throws:
CMSException- Raised for any error.
-
getLockOwner
Specifies the CMS user name that currently holds the lock. Returns an empty string if the object is not locked.- Throws:
CMSException- Raised for any error.
-
getLockStatusDisplay
Specifies a human-readable string describing the lock status. For example, the value of this attribute could be "locked", "unlocked", and so forth. The returned string can be displayed in the user interface and should be localized.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getSession
Specifies theCMSSessionobject associated with this object.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getName
Specifies the name of object. This is normally a human-readable name and is used primarily for display purposes.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setName
Specifies the name of object. This is normally a human-readable name and is used primarily for display purposes.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getPermission
Specifies the permissions associated with the object in a human-readable string. The format of the string is adapter-specific and is for display purposes only.- Throws:
CMSException- Raised for any error.
-
getCreationDate
Specifies the object's creation date in an adapter-specific human-readable form.- Throws:
CMSException- Raised for any error.
-
getModificationDate
Specifies the object's last modification date in an adapter-specific human-readable form.- Throws:
CMSException- Raised for any error.
-
getVersion
Specifies the CMS version ID of the object in an adapter-specific format. This is for display purposes only.- Throws:
CMSException- Raised for any error.
-
getInstanceDoctypeName
Specifies the object's instance document type name. If the object's content contains a document type declaration such as...
<!DOCTYPE book PUBLIC "-//Arbortext//DTD DocBook XML V4.0//EN" "axdocbook.dtd">
then this attribute would represent the stringbook. Note that this value has nothing to do with the DTD or Schema associated with this object.
Some XML instances do not contain a document type declaration and so this value would be an empty string.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setInstanceDoctypeName
Specifies the object's instance document type name. If the object's content contains a document type declaration such as...
<!DOCTYPE book PUBLIC "-//Arbortext//DTD DocBook XML V4.0//EN" "axdocbook.dtd">
then this attribute would represent the stringbook. Note that this value has nothing to do with the DTD or Schema associated with this object.
Some XML instances do not contain a document type declaration and so this value would be an empty string.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getPublicId
Specifies the Public ID of the object's DTD or Schema.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setPublicId
Specifies the Public ID of the object's DTD or Schema.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getSystemId
Specifies the System ID of the object's DTD or Schema.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setSystemId
Specifies the System ID of the object's DTD or Schema.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getEncoding
Specifies the character encoding of the object's content.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setEncoding
Specifies the character encoding of the object's content.
For most adapters, this attribute would only be available if the object was currently loaded.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getContentType
Specifies the type of the object's content.
For non-graphics, this may be one of the following values:-
xml -
sgml -
html -
text -
ascii
For graphics and non-markup documents, this will be a file extension ("bmp", "gif", "jpg", "svg", "doc", etc.).- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
-
setContentType
Specifies the type of the object's content.
For non-graphics, this may be one of the following values:-
xml -
sgml -
html -
text -
ascii
For graphics and non-markup documents, this will be a file extension ("bmp", "gif", "jpg", "svg", "doc", etc.).- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
-
getTagName
Specifies the tag name for the top-level element in the object. The value is blank for objects with unstructured content.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setTagName
Specifies the tag name for the top-level element in the object. The value is blank for objects with unstructured content.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getIsVirtualDocContainer
Indicates whether the object contains references to child objects which are virtual document objects. Objects that reference all of their children using file entities, XIncludes, and graphic tags are not virtual document containers.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setIsVirtualDocContainer
Indicates whether the object contains references to child objects which are virtual document objects. Objects that reference all of their children using file entities, XIncludes, and graphic tags are not virtual document containers.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getHasChildRefs
Specifies whether non-folder objects have any child object references.
Atruevalue suggests that thegetChildrenmethod can safely be called to enumerate the children.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setHasChildRefs
Specifies whether non-folder objects have any child object references.
Atruevalue suggests that thegetChildrenmethod can safely be called to enumerate the children.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getIsLatestVersion
Indicates whether this version is the most recent version of the object on a particular CMS branch.- Throws:
CMSException- Raised for any error.
-
getSize
Specifies the size of the object content in bytes. This is optional and some adapters may choose to not implement it.- Throws:
CMSException- Raised for any error.
-
getFullTextIndexed
Indicates whether the document is marked for full text indexing.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setFullTextIndexed
Indicates whether the document is marked for full text indexing.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getPoid
Specifies the Persistent Object Identifier (POID) associated with the object. This is different from a Logical ID, which can represent different versions of an object over time. For example, the Logical ID could represent the "LATEST" version of the object. The POID always references the same version of the object. An application programmer seldom needs to use a POID. Instead, they should mainly use thelogicalIdattribute.- Throws:
CMSException- Raised for any error accessing this attribute.
-
getLogicalId
Specifies the Logical ID of the object used for external binding. A Logical ID identifies a class of objects, any one of which may be selected at any given time. For example, a Logical ID can identify a specific version of a specific CMS object (fixed reference) or the current version (floating reference). Logical IDs are valid across sessions, and are stored inside structured documents. At any time, you can translate a Logical ID into a POID that identifies a specific version of a specific object.- Throws:
CMSException- Raised for any error.
-
getCmsObjectType
Specifies the name of the CMS object type.- Throws:
CMSException- Raised for any error.
-
getComment
Specifies the check in or check out comment for the object.
There is currently no standard way of setting the comment for an object. This must be handled in an adapter-specific way.- Throws:
CMSException- Raised for any error.
-
getCmsPathName
Specifies the path name of object in the CMS. If the object exists in multiple folders, any one of the folder paths could be returned.- Throws:
CMSException- Raised for any error.
-
getIsFolder
Indicates whether the object is a folder or folder subtype.- Throws:
CMSException- Raised for any error.
-
getAclId
int getAclId()Specifies thedobjID equivalent to thisCMSObjectobject. You can use this ID with the Arbortext Command Language (ACL) programming language. If this object is no longer valid, the attribute value will be0(an invaliddobjID).
Each access returns a newdobjID. The caller is responsible for calling the ACLdobj_close()function on each returned valid ID. Callingdobj_close()does not affect the originalCMSObjector the IDs returned previously. -
getEnclosingObject
Specifies the object reference that encloses this particular CMS object reference. If this is a top level object, the value isnull.
For example, if the user inserts reference to a "chapter" object into a checked out "book" object (via File Entity or XInclude) then theenclosingObjectfor the "chapter" object reference would be the containing "book" object.- Throws:
CMSException- Raised for any error.
-
getAllReferences
Returns a collection of all active object references to the same associated CMS object version.
EachCMSObjectrepresents a specific reference (or usage) of a CMS object. If a CMS object references (through File Entity or XInclude) the same child object twice in different parts of the document content, then each reference would have its ownCMSObjectobject. Use theallReferencesattribute to write application code that iterates over all open references to this CMS object. Note that theclassattribute of each reference may be different.
This attribute can return object references from multiple distinct documents.- Throws:
CMSException- Raised for any error.
-
getValid
Indicates whether this still represents a valid object reference. For example, if the associated session has been disconnected then this object reference is considered invalid.- Throws:
CMSException- Raised for any error.
-
burst
Bursts the checked out object. The bursting process follows the established defaults and specific rules for the associated document type. If the object contains sibling (that is, more than one) top-level elements, it is not burst.- Parameters:
flags- Specifies how to burst the object. The value is determined through a bit-wise OR of theCMSBurstFlagsconstants.- Returns:
- This object or, possibly, a new
CMSObjectwhich has been burst. - Throws:
CMSException- If an error occurs.
-
burst
Method overload which omits the last parameter.- Throws:
CMSException
-
save
Saves a CMS object without checking it in (interim save). The object remains checked out.
Some adapters may support the saving of attributes for objects which are not checked out. See theCMS_SAVE_OBJECT_ATTRenumerated constant.- Parameters:
flags- Specifies how to save the object. The value is determined through a bit-wise OR of theCMSSaveFlagsconstants.- Throws:
CMSException- If an error occurs.
-
getAttribute
Reads the value of an attribute. Attributes are identified by name. If the attribute has more than one value, an index is used to identify which value to return.
To get the values of multiple attributes, use thegetAttributesmethod.- Parameters:
attribute- Specifies the attribute name.index- Specifies the repeating attribute index (zero-based).- Returns:
- The attribute value.
- Throws:
CMSException- Raised for any error.
-
getAttribute
Method overload which omits the last parameter.- Throws:
CMSException
-
setAttribute
Sets the value of an attribute. Attributes are identified by name.
To set the values of multiple attributes, use thesetAttributesmethod.- Parameters:
attribute- Specifies the attribute name.value- Specifies the attribute value.index- Specifies the repeating attribute index (zero-based).- Throws:
CMSException- Raised for any error.
-
setAttribute
Method overload which omits the last parameter.- Throws:
CMSException
-
getAttributes
Gets the values for a list of attributes. Attributes with a single value are stored asStringentries in the returnedPropertyMap. Attributes with multiple values are stored asStringListentries.- Parameters:
attributes- Specifies the array of attributes to retrieve. If the value isnull, all attributes are retrieved.If an adapter does not support anullvalue, it will throw aCMSExceptionwith acodevalue ofUNIMP_ERR.- Returns:
- A
PropertyMapcontaining the requested attribute names and values. - Throws:
CMSException- Raised for any error.
-
getAttributes
Method overload which omits the last parameter.- Throws:
CMSException
-
setAttributes
Sets the values for a list of attributes. The calling function passes aPropertyMapcontaining entries for each of the attributes to be set. Attributes with a single value are stored asStringentries in thePropertyMap. Attributes with multiple values are stored asStringListentries.- Parameters:
attributeValues- Specifies thePropertyMapcontaining attribute names and values.- Throws:
CMSException- Raised for any error.
-
checkout
Locks the CMS object for modification. If theCMS_LOCK_FORCEflag is set and the object is locked by another user, the object will be forcibly unlocked if the caller has that right.
The exact semantics of this method are adapter-specific. For example, if a CMS does not support versioning then this may simply "lock" the object to prevent other users from editing it.- Parameters:
flags- Specifies the optional flags controlling the checkout. The value is determined through a bit-wise OR ofCMSLockFlagsconstants.- Returns:
- This object, or possibly a new
CMSObjectrepresenting the working copy. - Throws:
CMSException- Raised for any error.
-
checkout
Method overload which omits the last parameter.- Throws:
CMSException
-
checkin
Checks the object in to the CMS. To properly update the revised object in the CMS, you must save the object before calling this method.- Returns:
- This object, or possibly a new
CMSObjectrepresenting the checked in object. - Throws:
CMSException- If an error occurs.
-
cancelCheckout
Unlocks the object in the CMS without updating it. The adapter can optionally return the previous version of the object.- Returns:
- This object, or possibly a new
CMSObjectrepresenting the previous version. - Throws:
CMSException- If an error occurs.
-
deleteObject
Deletes the object from the CMS. All versions of the object will be deleted. After calling this method, you can no longer use thisCMSObjectobject.
If the CMS supports referential integrity, this will fail if any of the deleted object versions are referenced as children of other objects.- Throws:
CMSException- If an error occurs.
-
move
Moves the object to a new folder in the CMS.- Parameters:
targetFolder- Specifies the target folder object.- Throws:
CMSException- Raised for any error.
-
getChildren
Retrieves the contents of a folder or the children of a document object.- Returns:
- The iterator over the object's children. The iterator returns
CMSBrowseItemobjects. - Throws:
CMSException- Raised for any error.
-
getParents
Returns an iterator over the set of documents that reference this object.- Returns:
- The iterator over the objects that reference the specified
object. The iterator returns
CMSBrowseItemobjects. - Throws:
CMSException- Raised for any error.
-
getVersions
Returns an iterator over all versions of the object.- Returns:
- An iterator over all versions of the object. The iterator
returns
CMSBrowseItemobjects. - Throws:
CMSException- Raised for any error.
-
getUserData
Retrieves application data from the object. This method enables user interface or application code to retrieve named data that was previously stored by calling thesetUserDatamethod.- Parameters:
key- Specifies the unique key used to identify the data.- Returns:
- The data associated with the given key, or
nullif there is none. - Throws:
CMSException- If an error occurs.
-
setUserData
Stores some application data on the object. Any existing data for the same key is replaced by the new data. This method enables user interface or application code to associate named data with the object, that it can later retrieve by calling thegetUserDatamethod. User data only exists in memory and is not stored persistently.
Some adapters may support additional arguments to certain methods by having the application callsetUserDatawith a predefined key just before calling the method. The adapter documentation will describe any such additional arguments.- Parameters:
key- Specifies the unique key used to identify the data.data- Specifies the data to associate with the given key, ornullto remove any existing data for the key.- Throws:
CMSException- If an error occurs.
-
setOldUserData
This method can be used to allow some properties and methods in this interface to work with older adapters ("Oracle iFS Adapter" or "Documentum Adapter"). Some older adapters require usage of a "user data" field with certain ACL functions (such as those starting withsess_ordobj_). This allows such functionality of older adapters to be accessed via this AOM interface.
This may be used with the following methods...-
getChildren() -
getParents() -
getVersions() -
save() -
checkout() -
checkin() -
cancelCheckout() -
deleteObject() -
move()
This stores the given data for use with the next method call which can make use of it. After that method call, the stored data will be automatically erased so it won't affect future calls.This should only be used with older adapters and will have no affect on newer adapters.The data is stored directly with this AOM object. If this object is disposed before the method call, the data will not be available for use by the method. To avoid any issues, set the data immediately before making the method call.- Parameters:
data- Specifies the value to store as the old user data.
-
-
releaseReference
void releaseReference()Releases this reference to the underlying repository object. After this call, most methods on this object will throw aCMSExceptionwith acodevalue ofINVALID_CMSOBJECT_ERR. However, thevalidattribute is always safe to access and will returnfalsein this case. -
invokeExtension
Invokes an adapter-specific extension function. Some adapters provide functionality beyond the standard CMS API.- Parameters:
opcode- Specifies the adapter-specific value which identifies the extension method to invoke.map- Specifies the collection of adapter-specific parameters to the specified extension method.- Returns:
- A
PropertyMappopulated with adapter-specific content. - Throws:
CMSException- Raised for any error calling the extension method.- Since:
- Arbortext 5.3
-
createEvent
Creates an event of typeCMSObjectEvent.- Parameters:
eventType- Specifies the type ofEventinterface to be created. The only event module supported by this method isCMSObjectEvents. If theEventis to be dispatched with thedispatchEventmethod, the appropriate eventinitmethod must be called after creation in order to initialize theEvent's values. As an example, a user wishing to synthesize aCMSObjectPreCheckinevent would callcreateEventwith the parameter "CMSObjectPreCheckin". TheinitCMSObjectEventmethod could then be called on the newly createdCMSObjectEventto set the specific type ofCMSObjectEventto be dispatched and to set its context information.- Returns:
- The newly created
Event. - Throws:
CMSException- NOT_SUPPORTED_ERR: Raised if the implementation does not support the type ofEventinterface requested.- Since:
- Arbortext 5.4
-