Package com.arbortext.epic.cms
Interface CMSSession
- All Known Implementing Classes:
CMSSessionImpl
public interface CMSSession
The
CMSSession interface represents a content management
system (CMS) session.- Since:
- Epic 5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCreate part reference linksstatic final intBurst on element boundaries.static final intThis element is configured to burst as a file entity.static final intEnable full text indexing on the top most object.static final intImport file entities.static final intImport graphic files.static final intThis element is not configured to be burst.static final intDo not create part reference linksstatic final intIgnore element boundaries.static final intDo not import file entities.static final intDo not import graphic files.static final intDo not use the file name for the topmost object name.static final intDo not lock the topmost object.static final intThe adapter does not support bursting.static final intThe adapter performs bursting during document check-in.static final intUse the file name for the topmost object name.static final intLock the topmost object for editing.static final intFollow location rules for child objects even if useroverride=on.static final intThis element is configured to burst as a virtual document.static final intThis element is configured to burst as an xinclude.static final intThe object is initially locked.static final intThe object will be a virtual document container.static final shortOperation is allowed in the current state.static final shortOperation is not allowed in the current state.static final shortOperation is not supported by the adapter.static final shortOperation is not recognized by the adapter. -
Method Summary
Modifier and TypeMethodDescriptionvoidburstDocument(Document doc) Method overload which omits the last 4 parameters.voidburstDocument(Document doc, String name) Method overload which omits the last 3 parameters.voidburstDocument(Document doc, String name, String folderLogicalId) Method overload which omits the last 2 parameters.voidburstDocument(Document doc, String name, String folderLogicalId, int flags) Method overload which omits the last parameter.voidburstDocument(Document doc, String name, String folderLogicalId, int flags, String logFile) Bursts the specified file system document using this session.voidThis is a special method for administrators to use while they are developing the burst configuration files.createEvent(String eventType) Creates aCMSSessionevent.createFolder(String name, String folderLogicalId) Method overload which omits the last parameter.createFolder(String name, String folderLogicalId, String objType) Creates a new CMS folder objectcreateNewObject(String name, String folderLogicalId, Document doc) Method overload which omits the last 2 parameters.createNewObject(String name, String folderLogicalId, Document doc, int flags) Method overload which omits the last parameter.createNewObject(String name, String folderLogicalId, Document doc, int flags, String objType) Creates an empty CMS object of the same type as the specified document.createObjectFromSubtree(String name, String folderLogicalId, Node start, Node end) Method overload which omits the last 2 parameters.createObjectFromSubtree(String name, String folderLogicalId, Node start, Node end, int flags) Method overload which omits the last parameter.createObjectFromSubtree(String name, String folderLogicalId, Node start, Node end, int flags, String objType) Creates a new CMS object, assigning content from an in-memory document.voidCloses the CMS session.intgetAclId()Represent the session ID associated with theCMSSessionobject.Specifies theCMSAdapterobject associated with this session.getAttribute(String attribute) Reads the value of a session attribute.intgetBurstBoundaryType(Node node) For the givennode, determines the burst boundary type according to the bursting rules associated with this session.intRepresents the burst policy of the adapter.booleanSet totrueif this session has the user override set to on for bursting-related options such as object names.booleanSet totrueif the session is still connected.Specifies the current CMS user name.Returns the default object creation information that is not specific to any particular document type.Specifies the Logical ID of the current user's default folder.Method overload which omits the last parameter.Downloads an object from the CMS to a local file and returns the local path name.getFileMappingEntry(String pathname) Checks whether a resolved path name already exists in the CMS.booleanIndicates whether to index new documents for full-text searching.getGraphicCreateInfo(Node graphicNode) Returns the default creation information for a new graphic object.booleanIndicates whether the session supports object reuse during bursting by maintaining a Logical ID and filename cache.getRangeCreateInfo(Node start, Node end, boolean isTop) Returns the default creation information for a new object, according to the givenstartandendNodes.Specifies an adapter-specific session identifier that can be used to make calls directly into the CMS vendor API.getUserData(String key) Retrieves application data from the session.invokeExtension(int opcode, PropertyMap map) Invokes an adapter-specific extension function.logicalIdToPoid(String logicalId) Translates a Logical ID to a Persistent Object Identifier (POID).booleanobjectExists(String logicalId) Indicates whether an object exists in the CMS.poidToLogicalId(String poid) Method overload which omits the last parameter.poidToLogicalId(String poid, String label) Translates a Persistent Object Identifier (POID) and version to a Logical ID.Method overload which omits the last parameter.putFile(String filename, String objectName, String folderLogicalId, String notation, String objType) Stores a file in the CMS.voidTo improve performance, the internal implementation keeps track of the lock and read-only status of all constructed objects.Searches the CMS for objects that match the specified search criteria.voidsetAttribute(String attribute, String value) Sets the value of a session attribute.voidsetDefaultFolder(String defaultFolder) Specifies the Logical ID of the current user's default folder.voidsetFileMappingEntry(String pathname, String logicalId) Instructs the adapter to persistently store a path name to a Logical ID association.voidsetFullTextSearch(boolean fullTextSearch) Indicates whether to index new documents for full-text searching.voidsetOldUserData(String data) Can be used to allow some methods and properties in this interface to work with older adapters ("Oracle iFS Adapter" or "Documentum Adapter").voidsetUserData(String key, String data) Stores some application data on the session.shortverifyOperationEnabledInCurrentState(String operation) Indicates whether an operation is allowed in the current state.
-
Field Details
-
CMS_BURST_POLICY_NEVER
static final int CMS_BURST_POLICY_NEVERThe adapter does not support bursting.- See Also:
-
CMS_BURST_POLICY_ON_CHECKIN
static final int CMS_BURST_POLICY_ON_CHECKINThe adapter performs bursting during document check-in.- See Also:
-
CMS_BURST_NO_BOUNDARY
static final int CMS_BURST_NO_BOUNDARYThis element is not configured to be burst.- See Also:
-
CMS_BURST_FILE_ENTITY
static final int CMS_BURST_FILE_ENTITYThis element is configured to burst as a file entity.- See Also:
-
CMS_BURST_VIRTUAL_DOC
static final int CMS_BURST_VIRTUAL_DOCThis element is configured to burst as a virtual document.- See Also:
-
CMS_BURST_XINCLUDE
static final int CMS_BURST_XINCLUDEThis element is configured to burst as an xinclude.- See Also:
-
CMS_BURST_FULLTEXT
static final int CMS_BURST_FULLTEXTEnable full text indexing on the top most object.- See Also:
-
CMS_BURST_IMPORT_FILEENTS
static final int CMS_BURST_IMPORT_FILEENTSImport file entities.- See Also:
-
CMS_BURST_NO_IMPORT_FILEENTS
static final int CMS_BURST_NO_IMPORT_FILEENTSDo not import file entities.- See Also:
-
CMS_BURST_IMPORT_GRAPHICS
static final int CMS_BURST_IMPORT_GRAPHICSImport graphic files.- See Also:
-
CMS_BURST_NO_IMPORT_GRAPHICS
static final int CMS_BURST_NO_IMPORT_GRAPHICSDo not import graphic files.- See Also:
-
CMS_BURST_ELEMENTS
static final int CMS_BURST_ELEMENTSBurst on element boundaries.- See Also:
-
CMS_BURST_NO_ELEMENTS
static final int CMS_BURST_NO_ELEMENTSIgnore element boundaries.- See Also:
-
CMS_BURST_TOP_FILENAME
static final int CMS_BURST_TOP_FILENAMEUse the file name for the topmost object name.- See Also:
-
CMS_BURST_NO_TOP_FILENAME
static final int CMS_BURST_NO_TOP_FILENAMEDo not use the file name for the topmost object name.- See Also:
-
CMS_BURST_TOP_LOCK
static final int CMS_BURST_TOP_LOCKLock the topmost object for editing.- See Also:
-
CMS_BURST_NO_TOP_LOCK
static final int CMS_BURST_NO_TOP_LOCKDo not lock the topmost object.- See Also:
-
CMS_BURST_USE_LOCATION_RULES
static final int CMS_BURST_USE_LOCATION_RULESFollow location rules for child objects even if useroverride=on.- See Also:
-
CMS_BURST_CREATE_PARTREF_LINKS
static final int CMS_BURST_CREATE_PARTREF_LINKSCreate part reference links- See Also:
-
CMS_BURST_NO_CREATE_PARTREF_LINKS
static final int CMS_BURST_NO_CREATE_PARTREF_LINKSDo not create part reference links- See Also:
-
CMS_CREATE_LOCKED
static final int CMS_CREATE_LOCKEDThe object is initially locked.- See Also:
-
CMS_CREATE_VIRTUAL_CONTAINER
static final int CMS_CREATE_VIRTUAL_CONTAINERThe object will be a virtual document container. Objects which will reference child objects via File Entity or XInclude need not specify this flag.- See Also:
-
CMS_OPERATION_ENABLED
static final short CMS_OPERATION_ENABLEDOperation is allowed in the current state.- See Also:
-
CMS_OPERATION_NOT_ENABLED
static final short CMS_OPERATION_NOT_ENABLEDOperation is not allowed in the current state. If any methods in the category are called, they will raise aCMSExceptionwith error codeCMSException.OPERATION_NOT_ENABLED_ERR.- See Also:
-
CMS_OPERATION_NOT_SUPPORTED
static final short CMS_OPERATION_NOT_SUPPORTEDOperation is not supported by the adapter. If any methods in the category are called, they will raise aCMSExceptionwith error codeCMSException.UNIMP_ERR.- See Also:
-
CMS_OPERATION_UNKNOWN
static final short CMS_OPERATION_UNKNOWNOperation is not recognized by the adapter. This may be returned if a new category was added to PTC Arbortext Editor but the adapter has not been updated. The caller can assume that methods in the category are enabled (they will throwCMSException.UNIMP_ERRif not implemented).- See Also:
-
-
Method Details
-
getBurstPolicy
Represents the burst policy of the adapter. The value is one of theCMSBurstPolicyenumerated constants.- Throws:
CMSException- Raised for any error.
-
getBurstUserOverride
Set totrueif this session has the user override set to on for bursting-related options such as object names. This setting allows the user to override certain options that would otherwise be completely dictated by the bursting rules. Set tofalseif it is not. This setting prevents the user from overriding the bursting options.- Throws:
CMSException- Raised for any error.
-
getConnected
boolean getConnected()Set totrueif the session is still connected. Set tofalseif it is not. -
getCurrentUser
Specifies the current CMS user name. This will normally match theloginIdparameter to theCMSAdapter.connect()method which established this session.- Throws:
CMSException- Raised for any error.
-
getDefaultFolder
Specifies the Logical ID of the current user's default folder.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setDefaultFolder
Specifies the Logical ID of the current user's default folder.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getFullTextSearch
Indicates whether to index new documents for full-text searching. Not all adapters will implement full text searching.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
setFullTextSearch
Indicates whether to index new documents for full-text searching. Not all adapters will implement full text searching.- Throws:
CMSException- Raised for any error.CMSException- Raised for any error.
-
getObjectReuse
Indicates whether the session supports object reuse during bursting by maintaining a Logical ID and filename cache. See thesetFileMappingEntryfor more details.- Throws:
CMSException- Raised for any error.
-
getAclId
int getAclId()Represent the session ID associated with theCMSSessionobject. You can use this ID with the PTC Arbortext Command Language (ACL) programming language. If the session is no longer valid, theaclldvalue is an invalid session ID (-1). -
getSessionToken
Specifies an adapter-specific session identifier that can be used to make calls directly into the CMS vendor API.
This attribute might not be supported by all adapters.- Throws:
CMSException- Raised for any error.
-
getAdapter
Specifies theCMSAdapterobject associated with this session.- Throws:
CMSException- Raised for any error accessing this attribute.
-
disconnect
Closes the CMS session. Only theconnectedattribute can be safely accessed after this method is called.- Throws:
CMSException- Raised for any error.
-
getAttribute
Reads the value of a session attribute. Attributes are identified by name. The attribute names supported by this method will vary with each adapter.- Parameters:
attribute- Specifies the attribute name.- Returns:
- The attribute value.
- Throws:
CMSException- Raised for any error.
-
setAttribute
Sets the value of a session attribute. The attribute names supported by this method will vary with each adapter.- Parameters:
attribute- Specifies the attribute name.value- Specifies the attribute value.- Throws:
CMSException- Raised for any error.
-
objectExists
Indicates whether an object exists in the CMS. The object is identified by a Logical ID. It is sufficient for this method to ensure that the Logical ID or Persistent Object Identifier (POID) format is correct. To verify the object's actual existence in the CMS, and its accessibility,Application.constructObjectmust be used.- Parameters:
logicalId- Specifies a Logical ID.- Returns:
- Returns
trueif the object exists. Returnsfalseif it does not. - Throws:
CMSException- If an error occurs.
-
logicalIdToPoid
Translates a Logical ID to a Persistent Object Identifier (POID). POIDs are used internally by PTC Arbortext Editor and PTC Arbortext Publishing Engine and are not normally used by an application developer.- Parameters:
logicalId- Specifies the Logical ID to translate.- Returns:
- A POID.
- Throws:
CMSException- If an error occurs.
-
poidToLogicalId
Translates a Persistent Object Identifier (POID) and version to a Logical ID. POIDs are used internally by PTC Arbortext Editor and PTC Arbortext Publishing Engine and are not normally used by an Application Developer.- Parameters:
poid- Specifies the POID to translate.label- Specifies the optional version label. The syntax is adapter-specific.- Returns:
- A Logical ID.
- Throws:
CMSException- If an error occurs.
-
poidToLogicalId
Method overload which omits the last parameter.- Throws:
CMSException
-
getFileMappingEntry
Checks whether a resolved path name already exists in the CMS. You use this method to avoid creating multiple CMS objects from a single source file -- for example, by loading multiple entity references to one file. Before calling this method, use theobjectReuseattribute to determine if this session is managing file mapping entries or not.- Parameters:
pathname- Specifies the resolved entity path name. This should be a normalized form of a local resource path. For example on Windows-based systems, the following paths all represent the same local resource:-
c:\graphics\engine.jpg -
c:\Graphics\Engine.JPG -
c:\graphics\..\graphics\engine.jpg
-
- Returns:
- Returns the associated Logical ID, if it is in the CMS.
Returns
nullif it is not. - Throws:
CMSException- If an error occurs.
-
setFileMappingEntry
Instructs the adapter to persistently store a path name to a Logical ID association. If a mapping already exists for the path name, it will be replaced with the new Logical ID. Use this method in conjunction with thegetFileMappingEntrymethod to prevent creating multiple CMS objects based on a single file.
ThegetFileMappingEntryandsetFileMappingEntrycalls are not atomic. During bursting, a new CMS object is created between thegetFileMappingEntryandsetFileMappingEntrycalls. If multiple processes are performing burst operations, the result might be multiple CMS objects for the same source file. For example, assume process A and process B both call thegetFileMappingEntrymethod at the same time and find that an association does not currently exist. Both processes then create new CMS objects and call thesetFileMappingEntrymethod to create the association. The lastsetFileMappingEntrycall takes precedence, and its CMS object will be reused by subsequent burst operations. The other CMS object continues to exist and be referenced by its XML document.
There is no standard way to tell the adapter to remove a path name to Logical ID mapping.- Parameters:
pathname- Specifies the resolved entity path name. See thepathnameparameter to thegetFileMappingEntrymethod for information about normalization of this path name.logicalId- Specifies the associated Logical ID in the CMS.- Throws:
CMSException- If an error occurs.
-
getFile
Downloads an object from the CMS to a local file and returns the local path name. This method is typically used to retrieve graphic objects.- Parameters:
logicalId- Specifies the Logical ID.notation- Specifies the graphic file format, if applicable.- Returns:
- A local file name. It can be assumed that the adapter is tracking the files it returns and it will manage them appropriately. The application developer must not delete this file.
- Throws:
CMSException- If an error occurs.
-
getFile
Method overload which omits the last parameter.- Throws:
CMSException
-
putFile
String putFile(String filename, String objectName, String folderLogicalId, String notation, String objType) throws CMSException Stores a file in the CMS. If the adapter is tracking imported files (see theobjectReuseattribute), an entry is created in the persistent lookup table associating the filename with the new Logical ID. See thegetFileMappingEntrymethod for more details.- Parameters:
filename- Specifies the path name to store. Because the adapter may create a file mapping entry, this path should be normalized. See thegetFileMappingEntryfor more details.objectName- Specifies the name of the CMS object to create. This is the suggested name. The adapter is allowed to use a variant of this name if, for example, the CMS disallows two objects with the same name in the same folder. The actual name used can be obtained by calling theApplication.constructObjectmethod with the returned Logical ID and accessing that object'snameattribute.folderLogicalId- Specifies the location of the new object in the CMS. This may be the Logical ID of a folder or it may be in an adapter-specific path format.notation- Specifies the graphic file format. This is optional.objType- Specifies the CMS object type for new object. If not supplied, the bursting rules are consulted to determine the object type.- Returns:
- The Logical ID of the new object.
- Throws:
CMSException- If an error occurs.
-
putFile
String putFile(String filename, String objectName, String folderLogicalId, String notation) throws CMSException Method overload which omits the last parameter.- Throws:
CMSException
-
burstDocument
void burstDocument(Document doc, String name, String folderLogicalId, int flags, String logFile) throws CMSException Bursts the specified file system document using this session. If the specified document contains more than one top-level element, it will not be burst.- Parameters:
doc- Specifies the document to burst. The document must be a file system object.name- Specifies the name to use for the topmost object. If the value of this parameter isnullor empty, then the bursting rules are consulted.The adapter is allowed to use a variant of this name if, for example, the CMS disallows two objects with the same name in the same folder. The actual name used can be obtained by accessing theCMSObjectattribute on theADocumentafter a successful burst and then accessing that object'snameattribute.folderLogicalId- Specifies the destination folder for all objects created. If the value of this parameter isnullor empty, then the bursting rules are consulted. This may be the Logical ID of a folder or it may be in an adapter-specific path format.If your system-wide bursting configuration specification has theuseroverridesetting set toon, then thefolderparameter provides a user-specified destination folder for all objects created. If the value of this parameter isnullor empty, then the bursting rules determine in which folders the new objects are created.If your system-wide bursting configuration specification has theuseroverridesetting set tooff, then thefolderparameter is not used and the bursting rules determine in which folders the new objects are created.See theburstUserOverrideattribute for more details.flags- Specifies the flags which control the bursting behavior. The value is a bit-wise OR of theCMSSessBurstFlagsconstants. The negative flag settings override session defaults.logFile- Specifies the full path of a local log file to which this method will append diagnostic information related to bursting this document.The given document is now associated with a new top-level object in the CMS. TheCMSObjectattribute of theADocumentinterface can be used to access information about the new top-level object.- Throws:
CMSException- Raised for any error bursting the document.
-
burstDocument
void burstDocument(Document doc, String name, String folderLogicalId, int flags) throws CMSException Method overload which omits the last parameter.- Throws:
CMSException
-
burstDocument
Method overload which omits the last 2 parameters.- Throws:
CMSException
-
burstDocument
Method overload which omits the last 3 parameters.- Throws:
CMSException
-
burstDocument
Method overload which omits the last 4 parameters.- Throws:
CMSException
-
clearBurstConfig
This is a special method for administrators to use while they are developing the burst configuration files. It clears out all of the burst configuration settings you have loaded and reloads the system-wide settings. The document type-specific configurations are loaded as they are needed -- for example, when a document of that document type is burst. This enables new settings to be tested without having to exit PTC Arbortext Editor. This method does not change the folder that PTC Arbortext Editor uses to load burst configuration files.- Throws:
CMSException- Raised for any error.
-
createObjectFromSubtree
CMSObject createObjectFromSubtree(String name, String folderLogicalId, Node start, Node end, int flags, String objType) throws CMSException Creates a new CMS object, assigning content from an in-memory document. If the new object is a folder or an empty document, usenullvalues for thestartandendparameters. If bursting rules are setup, you may use them to supply or override some of the parameter values.
After successful completion, the given DOM Nodes will be associated with the new CMS object. However, this does not replace the Nodes with a file entity or XInclude reference and so the association will be lost when the containing document is closed unless some additional action is performed.- Parameters:
name- Specifies the name of the new CMS object. The adapter is allowed to use a variant of this name if, for example, the CMS disallows two objects with the same name in the same folder. The actual name used can be obtained by accessing thenameattribute of the returnedCMSObject.folderLogicalId- Specifies the folder to put the object in. This may be the Logical ID of a folder or it may be in an adapter-specific path format.start- Specifies the DOMNoderepresenting the first node to be included in the new object.end- Specifies the DOMNoderepresenting the last node to be included in the new object. This node should be the same as the start node or a subsequent sibling of it.flags- Specifies the creation options. The value is determined by a bit-wise OR of theCMSCreateFlagsconstants.objType- Specifies the CMS object type for the new object.- Returns:
- A new object handle.
- Throws:
CMSException- If an error occurs.
-
createObjectFromSubtree
CMSObject createObjectFromSubtree(String name, String folderLogicalId, Node start, Node end, int flags) throws CMSException Method overload which omits the last parameter.- Throws:
CMSException
-
createObjectFromSubtree
CMSObject createObjectFromSubtree(String name, String folderLogicalId, Node start, Node end) throws CMSException Method overload which omits the last 2 parameters.- Throws:
CMSException
-
createNewObject
CMSObject createNewObject(String name, String folderLogicalId, Document doc, int flags, String objType) throws CMSException Creates an empty CMS object of the same type as the specified document. If bursting rules are set up, you may use them to supply or override some of the parameter values.- Parameters:
name- Specifies the name of the new CMS object. The adapter is allowed to use a variant of this name if, for example, the CMS disallows two objects with the same name in the same folder. The actual name used can be obtained by accessing thenameattribute of the returnedCMSObject.folderLogicalId- Specifies the folder to put the object in. This may be the Logical ID of a folder or it may be in an adapter-specific path format.doc- Provides context information for the creation of the object.flags- Specifies the creation options. The value is determined by a bit-wise OR of theCMSCreateFlagsconstants.objType- Specifies the CMS object type for the new object.- Returns:
- A new object handle.
- Throws:
CMSException- If an error occurs.
-
createNewObject
CMSObject createNewObject(String name, String folderLogicalId, Document doc, int flags) throws CMSException Method overload which omits the last parameter.- Throws:
CMSException
-
createNewObject
Method overload which omits the last 2 parameters.- Throws:
CMSException
-
createFolder
Creates a new CMS folder object- Parameters:
name- Specifies the name of the new CMS folder object. The adapter is allowed to use a variant of this name if, for example, the CMS disallows two objects with the same name in the same folder. The actual name used can be obtained by accessing thenameattribute of the returnedCMSObject.folderLogicalId- Specifies the folder to put the object in. This may be the Logical ID of a folder or it may be in an adapter-specific path format.objType- Specifies the CMS object type for the new folder object.- Returns:
- A new object handle.
- Throws:
CMSException- If an error occurs.
-
createFolder
Method overload which omits the last parameter.- Throws:
CMSException
-
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.
-
search
Searches the CMS for objects that match the specified search criteria. Thecriteriastring is created by the search dialog. Its format is adapter-specific.- Parameters:
criteria- Specifies the adapter-specific string containing search criteria.- Returns:
- An iterator over search results. The iterator returns
CMSBrowseItemobjects. - Throws:
CMSException- If an error occurs.
-
getUserData
Retrieves application data from the session. 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:
- Returns the data associated with the given key. Returns
nullif there is none. - Throws:
CMSException- Raised for any error.
-
setUserData
Stores some application data on the session. 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 session, which it can retrieve later by calling thegetUserDatamethod. User data only exists in memory, and is not stored between sessions.
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- Raised for any error.
-
setOldUserData
Can be used to allow some methods and properties 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...-
disconnect() -
getFile() -
putFile() -
createObjectFromSubtree() -
createNewObject() -
search()
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 effect 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.
-
-
getBurstBoundaryType
For the givennode, determines the burst boundary type according to the bursting rules associated with this session.- Parameters:
node- Specifies the DOM Node to look up in the burst rules.- Returns:
- Returns one of the
CMSBurstBoundaryTypeenumerated types describing the bursting rule for the given node. - Throws:
CMSException- If an error occurs.
-
getDefaultCreateInfo
Returns the default object creation information that is not specific to any particular document type. This information is defined in theatidefaultsconfiguration file.
The information is returned in aPropertyMap. The following table shows the supported key string values:Key Value Type Value Description IO_CRE_FILE_REFERENCEString Determines whether Insert and Share Object will create an entity or an XInclude. Allowed values are xincludeorentity.IO_CRE_FULL_TEXT_SEARCHNumber Determines whether the object is flagged for full text searching. Allowed values are 0and1.IO_CRE_LATEST_IDString Specifies the default version label that indicates an object is the "official" current version. IO_CRE_LOGICAL_IDString Specifies the default version label that tells the adapter to load the working copy of an object. If no working copy exists, the adapter loads the "official" current copy. IO_CRE_MAX_LENNumber Specifies the default maximum name length for CMS objects. IO_CRE_ROOT_TYPEString Specifies the root object type for PTC Arbortext Editor and PTC Arbortext Publishing Engine objects. IO_CRE_TEMP_IDString Specifies the default version label that indicates an object is a working copy. IO_CRE_TOP_LOCKEDNumber Determines whether the topmost CMS object is locked for editing after bursting. Allowed values are 0and1.- Returns:
- A
PropertyMapcontaining the requested information. - Throws:
CMSException- If an error occurs.
-
getGraphicCreateInfo
Returns the default creation information for a new graphic object. This information is defined in theatidefaultsconfiguration file.
The information is returned in aPropertyMap. The following table shows the supported key string values:Key Value Type Value Description IO_CRE_LOCATIONString Specifies the default location for new graphics. This may be the Logical ID of a folder or it may be in an adapter-specific path format. IO_CRE_OBJECT_TYPEString Specifies the default object type for graphics. IO_CRE_LABELString Specifies the default version label for graphics. - Parameters:
graphicNode- Represents a graphic tag. Elements are designated as graphic tags by a document type's DCF (document configuration file) file or by the document's current Styler stylesheet. The stylesheet overrides the DCF file.- Returns:
- A
PropertyMapcontaining the requested information. - Throws:
CMSException- If an error occurs.
-
getRangeCreateInfo
Returns the default creation information for a new object, according to the givenstartandendNodes. This information can be defined in a configuration file that is specific to the document type associated with the given Nodes. As a fallback, PTC Arbortext Editor and PTC Arbortext Publishing Engine will use theatidefaultsconfiguration file.
The information is returned in aPropertyMap. The following table shows the supported key string values:Key Value Type Value Description IO_CRE_NAMEString Specifies the default name for the new object, according to the default naming rules. IO_CRE_LOCATIONString Specifies the default location for the new object. This may be the Logical ID of a folder or it may be in an adapter-specific path format. IO_CRE_OBJECT_TYPEString Specifies the default object type for the new object. IO_CRE_LABELString Specifies the default version label for the new object. - Parameters:
start- Specifies the first node in the range to consider.end- Specifies the last node in the range to consider. This node should be the same as the start node or a subsequent sibling of it.isTop- Indicates whether the "topmost is filename" naming rule is being used.Iftrueand the associated burst configuration file has<namerule rule="topmost-is-filename"/>as the very firstdefaultnamecriteriathen the returnedIO_CRE_NAMEvalue will be derived from the name (if any) of the document containing the start and end Nodes.Otherwise, the naming rules in the associated burst configuration file are used to generate the name.- Returns:
- A
PropertyMapcontaining the requested information. - Throws:
CMSException- If an error occurs.
-
refreshObjectStatus
void refreshObjectStatus()To improve performance, the internal implementation keeps track of the lock and read-only status of all constructed objects. This method will cause all constructed objects to refresh this information from the adapter. All appropriate views will be updated (if needed) to reflect any change in an object's status. -
createEvent
Creates aCMSSessionevent.- Parameters:
eventType- Specifies the type ofEventinterface to be created. The only event module supported by this method is"CMSSessionEvents". 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 aCMSSessionConstructEventwould callcreateEventwith the parameter "CMSSESSIONCONSTRUCTEVENTS". TheinitCMSSessionEventmethod could then be called on the newly createdCMSSessionConstructEventto set the specific type ofCMSSessionConstructEventto 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
-
verifyOperationEnabledInCurrentState
Indicates whether an operation is allowed in the current state. Some adapters support more than one mode, and different operations may be allowed in each mode. PTC Arbortext Editor does not define what modes or states are possible. Instead, it asks the adapter which operations are enabled in the current state.- Parameters:
operation- Specifies the type of operation. The following table lists the valid strings for theoperationparameter, along with the corresponding AOM methods.operation Methods createObjectMethods CMSSession.createNewObject,CMSSession.createObjectFromSubtreecreateFolderMethods CMSSession.createFolderburstMethods CMSObject.burst,CMSSession.burstDocumentcheckinoutMethods CMSObject.checkin,CMSObject.checkout,CMSObject.cancelCheckoutattributeMethods CMSObject.getAttribute,CMSObject.getAttributes,CMSObject.setAttribute,CMSObject.setAttributesfileContentMethods CMSSession.getFile,CMSSession.putFilefileMappingMethods CMSSession.getFileMappingEntry,CMSSession.putFileMapping EntrydeleteObjectMethods CMSObject.deleteObjectmoveObjectMethods CMSObject.moveObjectsearchMethods CMSObject.searchchildTraversalMethods CMSObject.getChildrenparentTraversalMethods CMSObject.getParentsversionTraversalMethods CMSObject.getVersionsburstConfigMethods CMSSession.getBurstUseroverride,CMSSession.getDefaultCreateInfo,CMSSession.getGraphicCreateInfo,CMSSession.getObjectReuse,CMSSession.getRangeCreateInfo- Returns:
- One of the
CMSSession.OPERATION_constants which indicates whether the operation is enabled in the current state. - Throws:
CMSException- UNIMP_ERR: Raised if the adapter does not implement this method. In that case, the caller may assume that the operation is enabled.- Since:
- Arbortext 5.4
-