Package com.emc.documentum.rest.dfc
Interface VirtualDocumentManager
public interface VirtualDocumentManager
The virtual document manager.
-
Method Summary
Modifier and TypeMethodDescriptioncreateSnapshotFromExistingVirtualDocument
(VirtualDocumentSnapshot vdSnapshot, String bindingLabel, boolean includeBroken, boolean frozen, AttributeView attributeView) Create a virtual document snapshot from existing virtual documentcreateSnapshotFromScratch
(VirtualDocumentSnapshot vdSnapshot, String bindingLabel, boolean includeBroken, boolean frozen, AttributeView attributeView) Create a virtual document snapshot from scratchcreateVirtualDocumentNode
(String parentId, VirtualDocumentNode vdNode) Create a direct child node of virtual document.Freeze a snapshotgetSnapshot
(String snapshotId, AttributeView attributeView) Get virtual document snapshotgetVirtualDocumentNode
(String parentId, String nodeId, String nodeObjectId, AttributeView attributeView) Get single document node and corresponding sysobject if nodeObjectId is present.getVirtualDocumentNodes
(String objectId, String vdmNumber, String nodeObjectId, String bindingLabel, boolean followAssembly, Boolean includeBroken, boolean mandatoryOnly, int depth, int page, int itemsPerPage) Get the virtual document nodes from the root or the sub nodegetVirtualDocumentNodes
(String objectId, String vdmNumber, String nodeObjectId, String bindingLabel, boolean followAssembly, Boolean includeBroken, boolean mandatoryOnly, AttributeView attributeView, int depth, int page, int itemsPerPage) Get the virtual document nodes from the root or the sub nodevoid
removeSnapshot
(String snapshotId) The object id of the snapshot to removevoid
removeVirtualDocumentNode
(String parentId, String nodeId) Remove a virtual document nodevoid
Unfreeze a snapshotupdateVirtualDocumentNode
(String containmentId, VirtualDocumentNode vdNode) Update a virtual document node.
-
Method Details
-
getVirtualDocumentNodes
Page<VirtualDocumentNode> getVirtualDocumentNodes(String objectId, String vdmNumber, String nodeObjectId, String bindingLabel, boolean followAssembly, Boolean includeBroken, boolean mandatoryOnly, int depth, int page, int itemsPerPage) throws com.documentum.fc.common.DfException Get the virtual document nodes from the root or the sub node- Parameters:
objectId
- The object id of the virtual document, or the assembly object idvdmNumber
- The vdm number of the sub-node, e.g., 1.2.3, null or empty string means from the root nodenodeObjectId
- The object id of the node relative to the vdmNumberbindingLabel
- The version label to use to resolve late bound nodesfollowAssembly
- The follow-assembly property determines whether the server selects component descendants using the containment objects or a snapshot associated with the component. Only when follow-assembly is true and there is a snapshot, then the server selects components from the snapshot.includeBroken
- Specifies whether to display nodes with broken bindings using the CURRENT label.mandatoryOnly
- whether return mandatory attributes onlydepth
- To what depth level the virtual document hierarchy will be returned. -1 means returh the whole vd tree.page
- The page numberitemsPerPage
- How many nodes will be returned per page- Returns:
- The nodes of the virtual document
- Throws:
com.documentum.fc.common.DfException
- any exceptions during get
-
getVirtualDocumentNodes
Page<VirtualDocumentNode> getVirtualDocumentNodes(String objectId, String vdmNumber, String nodeObjectId, String bindingLabel, boolean followAssembly, Boolean includeBroken, boolean mandatoryOnly, AttributeView attributeView, int depth, int page, int itemsPerPage) throws com.documentum.fc.common.DfException Get the virtual document nodes from the root or the sub node- Parameters:
objectId
- The object id of the virtual document, or the assembly object idvdmNumber
- The vdm number of the sub-node, e.g., 1.2.3, null or empty string means from the root nodenodeObjectId
- The object id of the node relative to the vdmNumberbindingLabel
- The version label to use to resolve late bound nodesfollowAssembly
- The follow-assembly property determines whether the server selects component descendants using the containment objects or a snapshot associated with the component. Only when follow-assembly is true and there is a snapshot, then the server selects components from the snapshot.includeBroken
- Specifies whether to display nodes with broken bindings using the CURRENT label.mandatoryOnly
- whether return mandatory attributes onlyattributeView
- the attribute viewdepth
- To what depth level the virtual document hierarchy will be returned. -1 means returh the whole vd tree.page
- The page numberitemsPerPage
- How many nodes will be returned per page- Returns:
- The nodes of the virtual document
- Throws:
com.documentum.fc.common.DfException
- any exceptions during get
-
createVirtualDocumentNode
VirtualDocumentNode createVirtualDocumentNode(String parentId, VirtualDocumentNode vdNode) throws com.documentum.fc.common.DfException Create a direct child node of virtual document. These attributes could be specified during creating a new virtual document node, [chronicle-id, order-number, binding, override-late-binding, copy-behavior, follow-assembly]- Parameters:
parentId
- the parent of the node (the virtual document object id)vdNode
- virtual document node- Returns:
- new created virtual document node
- Throws:
com.documentum.fc.common.DfException
- any exceptions during creation
-
getVirtualDocumentNode
VirtualDocumentNode getVirtualDocumentNode(String parentId, String nodeId, String nodeObjectId, AttributeView attributeView) throws com.documentum.fc.common.DfException Get single document node and corresponding sysobject if nodeObjectId is present. Pay attention that the node to get is not in virtual document context when nodeObjectId is not present, which means only basic attributes will show: [parent-id, chronicle-id, relationship-id, order-number, binding, override-late-binding, copy-behavior, follow-assembly] When nodeObjectId is present, it will populate the properties of the corresponding sysobject as well.- Parameters:
parentId
- the parent of the node (the virtual document object id)nodeId
- the node id used to get dmr_containment instance, to populate attributes of virtual document nodenodeObjectId
- the sysobject id for the virtual document node in the virtual document context.attributeView
- the attribute view- Returns:
- virtual document node
- Throws:
com.documentum.fc.common.DfException
- any exceptions during get virtual document node
-
updateVirtualDocumentNode
VirtualDocumentNode updateVirtualDocumentNode(String containmentId, VirtualDocumentNode vdNode) throws com.documentum.fc.common.DfException Update a virtual document node. Pay attention that the node to update is not in virtual document context. And only these attributes are updatable: [order-number, binding, override-late-binding, copy-behavior, follow-assembly]- Parameters:
containmentId
- the containment id used to specify the dmr_containment instance, which is actually updatedvdNode
- the submitted virtual document node- Returns:
- the updated virtual document node
- Throws:
com.documentum.fc.common.DfException
- any exceptions during update
-
removeVirtualDocumentNode
void removeVirtualDocumentNode(String parentId, String nodeId) throws com.documentum.fc.common.DfException Remove a virtual document node- Parameters:
parentId
- the parent of the node (the virtual document object id)nodeId
- the node id used to specify the dmr_containment instance, which is actually deleted.- Throws:
com.documentum.fc.common.DfException
- any exceptions during delete
-
createSnapshotFromScratch
VirtualDocumentSnapshot createSnapshotFromScratch(VirtualDocumentSnapshot vdSnapshot, String bindingLabel, boolean includeBroken, boolean frozen, AttributeView attributeView) throws com.documentum.fc.common.DfException Create a virtual document snapshot from scratch- Parameters:
vdSnapshot
- the virtual document snapshot to createbindingLabel
- the binding label to construct virtual documentincludeBroken
- whether to include broken virtual document nodesfrozen
- whether to freeze new created snapshotattributeView
- attribute view- Returns:
- virtual document snapshot
- Throws:
com.documentum.fc.common.DfException
- any exceptions during creation
-
createSnapshotFromExistingVirtualDocument
VirtualDocumentSnapshot createSnapshotFromExistingVirtualDocument(VirtualDocumentSnapshot vdSnapshot, String bindingLabel, boolean includeBroken, boolean frozen, AttributeView attributeView) throws com.documentum.fc.common.DfException Create a virtual document snapshot from existing virtual document- Parameters:
vdSnapshot
- the virtual document snapshot to createbindingLabel
- the binding label to construct virtual documentincludeBroken
- whether to include broken virtual document nodesfrozen
- whether to freeze new created snapshotattributeView
- attribute view- Returns:
- virtual document snapshot
- Throws:
com.documentum.fc.common.DfException
- any exceptions during creation
-
getSnapshot
VirtualDocumentSnapshot getSnapshot(String snapshotId, AttributeView attributeView) throws com.documentum.fc.common.DfException Get virtual document snapshot- Parameters:
snapshotId
- object id of virtual document snapshotattributeView
- the attribute view- Returns:
- instance of virtual document snapshot
- Throws:
com.documentum.fc.common.DfException
- any exception during get snapshot
-
removeSnapshot
The object id of the snapshot to remove- Parameters:
snapshotId
- the object id of the snapshot- Throws:
com.documentum.fc.common.DfException
- any exception during disassemble snapshot
-
freeze
Freeze a snapshot- Parameters:
snapshotId
- the object id of the snapshot- Returns:
- frozen snapshot object
- Throws:
com.documentum.fc.common.DfException
- any exception during freeze snapshot
-
unfreeze
Unfreeze a snapshot- Parameters:
snapshotId
- the object id of the snapshot- Throws:
com.documentum.fc.common.DfException
- any exception during unfreeze snapshot
-