Package com.documentum.fc.client
Interface IDfVirtualDocument
public interface IDfVirtualDocument
This class contains the functionality to manage virtual documents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Added child.static final int
Assembly modified.static final int
Associated assembly with assembly document.static final int
Copy behavior modified.static final int
Flag value that can be passed to resync to change its default behavior.static final int
Follow assembly modified.static final int
Removed assembly.static final int
Removed child.static final int
Flag value for resync call to change its default behavior.static final int
Flag value that can be passed to resync to change its default behavior.static final int
Flag value for resync call when a session is about to disconnect.static final int
Flag value that can be passed to resync to change its default behavior.static final int
Flag value that can be passed to resync to change its default behavior.static final int
Use Node Ver Label modified.static final int
Version label modified. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeDescription
(int code, IDfId objectId, String contextTag, String description) Records a change made to a node.addNode
(IDfVirtualDocumentNode parentNode, IDfVirtualDocumentNode insertAfterNode, IDfId objectChronId, String binding, boolean followAssembly, boolean overrideLateBindingValue) Adds a new node to the virtual document.addNodeToNode
(IDfVirtualDocumentNode parentNode, IDfVirtualDocumentNode insertAfterNode, IDfVirtualDocumentNode nodeToAdd) Adds a node to another node in the display.find
(IDfVirtualDocumentNode startNode, String searchString, String attributeList, int flags) Returns the node corresponding to a specified search string.getChangeDescription
(int index) Returns the change description at a given index position.int
Returns a count of the changes made in all open VDM windows.getId()
Returns a unique identifier for the current VDM window.boolean
Indicates whether nodes with broken bindings are included in the display.getNodeFromNodeId
(IDfId nodeId) Returns the IDfVirtualDocumentNode interface for the node corresponding to a given node ID.Returns the numbering scheme for the virtual document.Returns an interface to the DfProperties object owned by this virtual document.Returns the node that is the root of the virtual document.getUniqueObjectId
(int index) Returns the object ID of the object at the specified index.int
Returns the count of the unique object IDs in the current virtual document.void
removeAllChangeDescriptions
(String contextTag) Removes all the changes made in a particular VDM window.void
removeChangeDescription
(IDfId objectId) Removes the change or changes made to a node.void
Removes a node from the virtual document.void
Clears temporary object selections and resets all node object selections based on their defined bindings.void
resync
(IDfSession session, IDfId objectId, int flags) Flushes all node information and synchronizes cached object attributes with the repository.void
setIncludeBrokenBindings
(boolean shouldIncludeBroken) Specifies whether to display nodes with broken bindings using the CURRENT label.void
Defines the numbering scheme for the virtual document display.
-
Field Details
-
ADDED_CHILD
static final int ADDED_CHILDAdded child. The child is added in an assembly if its parent is in an assembly.- See Also:
-
REMOVED_CHILD
static final int REMOVED_CHILDRemoved child. The child is removed from an an assembly if its parent is in an assembly.- See Also:
-
COPY_BEHAVIOR_MODIFIED
static final int COPY_BEHAVIOR_MODIFIEDCopy behavior modified.- See Also:
-
USE_NODE_VER_LABEL_MODIFIED
static final int USE_NODE_VER_LABEL_MODIFIEDUse Node Ver Label modified.- See Also:
-
FOLLOW_ASSEMBLY_MODIFIED
static final int FOLLOW_ASSEMBLY_MODIFIEDFollow assembly modified.- See Also:
-
VERSION_LABEL_MODIFIED
static final int VERSION_LABEL_MODIFIEDVersion label modified.- See Also:
-
REMOVED_ASSEMBLY
static final int REMOVED_ASSEMBLYRemoved assembly.- See Also:
-
ASSOCIATED_ASSEMBLY
static final int ASSOCIATED_ASSEMBLYAssociated assembly with assembly document.- See Also:
-
ASSEMBLY_MODIFIED
static final int ASSEMBLY_MODIFIEDAssembly modified.- See Also:
-
RESYNC_FLAG_ON_DISCONNECT
static final int RESYNC_FLAG_ON_DISCONNECTFlag value for resync call when a session is about to disconnect. When this flag is passed, the cache is cleared.- See Also:
-
RESYNC_ALL
static final int RESYNC_ALLFlag value for resync call to change its default behavior. When this flag is passed, all the cache associated cache, that has not changed, is cleared.- See Also:
-
RESYNC_FLAG_ON_REFRESH
static final int RESYNC_FLAG_ON_REFRESHFlag value that can be passed to resync to change its default behavior. When this flag is passed, any assembly and containment cache, that has not changed, is cleared.- See Also:
-
REVERT_ON_RESYNC
static final int REVERT_ON_RESYNCFlag value that can be passed to resync to change its default behavior. If the object is checked out, this forces the object to revert to its prior state.- See Also:
-
DONT_REVERT_ASSEMBLIES
static final int DONT_REVERT_ASSEMBLIESFlag value that can be passed to resync to change its default behavior. When this flag is passed to resync, any assembly cache associated with the object is not cleared from the VDM cache. (The version label and containment caches are still cleared, however.)- See Also:
-
RESYNC_ATTRIBUTES_ONLY
static final int RESYNC_ATTRIBUTES_ONLYFlag value that can be passed to resync to change its default behavior. When this flag is passed to resync, the attribute cache(in VDM) associated with the object is cleared. The containment and assembly cache are not cleared.- See Also:
-
-
Method Details
-
addNode
IDfVirtualDocumentNode addNode(IDfVirtualDocumentNode parentNode, IDfVirtualDocumentNode insertAfterNode, IDfId objectChronId, String binding, boolean followAssembly, boolean overrideLateBindingValue) throws DfException Adds a new node to the virtual document. Each node represents a component in the virtual document. This method adds a new component to the virtual document. To use this method, the node identified in theparentNode
parameter must be checked out. ThefollowAssembly
andoverrideLateBindingValue
parameters are only useful if the new component is a virtual document. ThefollowAssembly
parameter sets the follow_assembly attribute of the component's associated containment object. TheoverrideLateBindingValue
parameter sets the use_node_ver_label attribute. If the new component is not a virtual document, set these parameters tofalse
. For more information about the follow_assembly and use_node_ver_label attributes, refer to Server Fundamentals. This manual also contains information about early and late binding for components.- Parameters:
parentNode
- An IDfVirtualDocumentNode object that is the virtual document to which you are adding the component.insertAfterNode
- An IDfVirtualDocumentNode object that is the sibling that will immediately precede the new node in the virtual document's hierarchy. If this parameter isnull
, the new node is placed as the first child ofparentNode
.objectChronId
- An IDfId object that contains the chronicle ID of the component being added.binding
- To early bind the component, specify the version label of the version you want to bind to the virtual document. To late bind the component to the virtual document, specifynull
.followAssembly
- Set this totrue
if you want to set the follow_assembly attribute to true for the component. Otherwise, set this parameter tofalse
.overrideLateBindingValue
- Set this totrue
to use the version label identified inbinding
to resolve late-bound descendents of this component.- Returns:
- An IDfVirtualDocumentNode object for the newly created node
- Throws:
DfException
- if the server returns an error
-
removeNode
Removes a node from the virtual document. Each node represents a component in the virtual document. This method removes the component from the virtual document. The underlying selected object isn't removed from the repository. To use this method, the virtual document that is the direct parent of the node must be checked out.- Parameters:
node
- An IDfVirtualDocumentNode object for the node to be removed- Throws:
DfException
- if the server returns an error
-
getRootNode
Returns the node that is the root of the virtual document. The root node is the virtual document at the top of a virtual document tree displayed by the Virtual Document Manager.- Returns:
- An IDfVirtualDocumentNode object for the root node
- Throws:
DfException
- if the server returns an error
-
getNodeFromNodeId
Returns the IDfVirtualDocumentNode interface for the node corresponding to a given node ID. Each node in a virtual document tree displayed in a VDM window has a node ID. The ID is unique across all open VDM windows.- Parameters:
nodeId
- An IDfId object that contains the node ID- Returns:
- An IDfVirtualDocumentNode object for the node matching the specified node ID.
- Throws:
DfException
- if a node matching the specified ID cannot be found- See Also:
-
setIncludeBrokenBindings
Specifies whether to display nodes with broken bindings using the CURRENT label. Broken bindings occur when some user action asks the VDM to display a version of the node that doesn't exist. VDM can display such nodes using the CURRENT version of the node. To require this behavior, execute this method and passshouldIncludeBroken
astrue
.If the
setIncludeBrokenBindings
flag is set tofalse
, nodes with broken bindings are not displayed.- Parameters:
shouldIncludeBroken
- Set this totrue
if you want the server to attempt to resolve broken bindings using the CURRENT label. Set this tofalse
to omit nodes with broken bindings.- Throws:
DfException
- if the server returns an error
-
getIncludeBrokenBindings
Indicates whether nodes with broken bindings are included in the display. Broken bindings occur when some user action asks the VDM to display a version of the node that doesn't exist. If thesetIncludeBrokenBindings(boolean)
flag is set totrue
, VDM displays nodes with broken bindings using the CURRENT version of the node.- Returns:
true
if nodes with broken bindings are being resolved using the CURRENT label;false
if broken nodes are being omitted- Throws:
DfException
- if the server returns an error
-
resetSelectedVersionsFromBinding
Clears temporary object selections and resets all node object selections based on their defined bindings. Use this method to clear any node changes made throughIDfVirtualDocumentNode.setSelectedVersion(java.lang.String)
. The temporary node selections are cleared and the nodes are reset based on their defined bindings.- Throws:
DfException
- if the server returns an error
-
resync
Flushes all node information and synchronizes cached object attributes with the repository.Calling
resync
for a node throws away all children of the node. After aresync
, node IDs issued for the node and its children prior to the call are no longer valid. You must re-executeIDfVirtualDocumentNode.getId()
to obtain new node IDs for the children.- Parameters:
session
- An IDfSession object for the current sessionobjectId
- An IdfId object containing the object ID of the node you want to resynchronize.flags
- Optional flags that can be passed to change the default behavior of resync. You should pass0
to get the default behavior. By default, if the object is checked out, calling resync does not clear the VDM cache. This behavior can be altered by passing eitherREVERT_ON_RESYNC
orDONT_REVERT_ASSEMBLIES
as the flag value.- Throws:
DfException
- if the server returns an error- See Also:
-
getId
IDfId getId()Returns a unique identifier for the current VDM window. Each open VDM window is assigned a unique identifier.- Returns:
- An IDfId object that contains the identifier for the current window.
-
getUniqueObjectIdCount
Returns the count of the unique object IDs in the current virtual document. Each node in a virtual document represents a repository object. However, any given repository object can appear in more than one node. This method returns a count of the number of different objects represented by the nodes in the virtual document. Repository objects represented by more than one node are only counted once by this method.- Returns:
- A count of the unique object IDs in the current virtual document
- Throws:
DfException
- if the server returns an error
-
getUniqueObjectId
Returns the object ID of the object at the specified index. When you executegetUniqueObjectIdCount()
, the method returns the number of unique object IDs in the virtual document. It also stores the object IDs in an internal structure. By providing the index into that structure as a parameter ingetUniqueObjectId
, you can obtain the object ID for that object. Index values begin at 0. For example:int count=virtualDocument.getUniqueObjectIdCount(); for(int index=0; index < count; i++) { IDfId id = virtualDocument.getUniqueObjectId(index); // use ID... }
- Parameters:
index
- The index value that identifies the object whose ID you want to obtain- Returns:
- An IDfId object that contains the object ID
- Throws:
DfException
- if the server returns an error
-
addChangeDescription
void addChangeDescription(int code, IDfId objectId, String contextTag, String description) throws DfException Records a change made to a node. Certain key changes to the virtual document tree, such as adding or removing a node or changing a node's binding, are recorded in IDfChangeDescription objects. Each IDfChangeDescription object represents one change.- Parameters:
code
- Set this to the change description code corresponding to the change description string.objectId
- An IDfId object that contains the object ID of the object affected by the change. (Each node represents a repository object that is a component of the virtual document.)contextTag
- Set this to the virtual document tree identifierdescription
- The text description of the change- Throws:
DfException
- if the server returns an error
-
removeChangeDescription
Removes the change or changes made to a node. This method removes all the change description records that affect a given node, or object, in the virtual document tree.- Parameters:
objectId
- An IDfId object for the object whose changes you want to remove- Throws:
DfException
- if the server returns an error
-
removeAllChangeDescriptions
Removes all the changes made in a particular VDM window. If thecontextTag
parameter is specified as an empty string, the method removes all the changes made for all open VDM windows.- Parameters:
contextTag
- Identifies the VDM window. If this is an empty string, all the changes are removed for all open VDM windows.- Throws:
DfException
- if the server returns an error
-
getChangeDescriptionCount
Returns a count of the changes made in all open VDM windows.- Returns:
- The count of the changes
- Throws:
DfException
- if the server returns an error
-
getChangeDescription
Returns the change description at a given index position. The value for theindex
parameter for this method is derived from the count returned bygetChangeDescriptionCount()
. Index positions begin at 0 and increment by 1 up to the total count returned bygetChangeDescriptionCount
.- Parameters:
index
- Identifies the index position of the change description- Returns:
- An IDfChangeDescription object that contains the change description
- Throws:
DfException
- if the server returns an error
-
setNumberingScheme
Defines the numbering scheme for the virtual document display.- Parameters:
scheme
- An IDfVDMNumberingScheme object for the desired numbering scheme- Throws:
DfException
- if the server returns an error
-
find
IDfVirtualDocumentNode find(IDfVirtualDocumentNode startNode, String searchString, String attributeList, int flags) throws DfException Returns the node corresponding to a specified search string. This method searches the values in a specified list of attributes for the specified search string. The search begins at the node identified instartNode
. The attributes to be searched are specified inattributeList
. The search string is defined insearchString
.- Parameters:
startNode
- An IDfVirtualDocument object representing the node at which the search is startedsearchString
- Identifies the string for which you are searchingattributeList
- Set this to a comma-separated list of attributes on which to conduct the searchflags
- Defines the settings for find. Pass 0 to obtain the default settings. The default settings are that the search is case insensitive and is performed on the attributes in the order in which they are listed inattributeList
. To obtain non-default settings, you must customize the implementation of this method.- Returns:
- An IDfVirtualDocumentNode object corresponding to the search string
- Throws:
DfException
- if the server returns an error
-
getNumberingScheme
Returns the numbering scheme for the virtual document.- Returns:
- An IDfVDMNumberingScheme object corresponding to the numbering scheme
- Throws:
DfException
- if the server returns an error
-
addNodeToNode
IDfVirtualDocumentNode addNodeToNode(IDfVirtualDocumentNode parentNode, IDfVirtualDocumentNode insertAfterNode, IDfVirtualDocumentNode nodeToAdd) throws DfException Adds a node to another node in the display. This method is only valid if the node being added and the target node are virtual documents.- Parameters:
parentNode
- An IDfVirtualDocumentNode object identifying the node to which you are adding the new nodeinsertAfterNode
- An IDfVirtualDocumentNode object identifying the node that will immediately precede the new node in the displaynodeToAdd
- An IDfVirtualDocumentNode object identifying the node you are adding- Returns:
- An IDfVirtualDocumentNode object for the new node
- Throws:
DfException
- if the server returns an error
-
getProperties
IDfProperties getProperties()Returns an interface to the DfProperties object owned by this virtual document. This may be used to set and get application-specific properties on this object.- Returns:
- An IDfProperties object associated with this virtual document.
-