Package com.documentum.operations
Interface IDfCopyOperation
- All Superinterfaces:
- IDfOperation
IDfCopyOperation performs a copy of one or more nodes.
 This includes creating new repository objects,setting new object names,
 linking the new objects to appropriate destination folder, and fixing
 relationships. 
 
 IDfSysObject, IDfFolder, and IDfVirtualDocument objects can be added to a
 copy operation. Folder and virtual document objects are copied deep
(that is, their contents are copied recursively). When copying a folder,
 sub-folder structure is retained in the new copy.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intCreate new copies of referenced children when virtual document is copied.static final intDocumentum internal usestatic final intDocumentum internal usestatic final intDocumentum internal usestatic final intReference existing children when virtual document is copied.static final intDocumentum internal useFields inherited from interface com.documentum.operations.IDfOperationGENERATE_RESOURCE_FORK, IGNORE_RESOURCE_FORK, REQUIRE_RESOURCE_FORK, RESOURCE_FORK_UNDEFINED, USE_RESOURCE_FORK_IF_AVAILABLE
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the current copy option settings.intReturns an integer representing the copy option settings for the operation.booleanWhen working with folders, copy the folder and all of its descendants.Returns the repository object ID of the destination folder for the copy operation.Returns the list of unique new objects created as a result of this operation.Returns the list of unique objects in this operation.voidsetCopyPreference(int copyPreference) Sets an integer representing the copy option settings for the operation.voidsetDeepFolders(boolean deepFolders) When working with folders, copy the folder and all of its descendants.voidsetDestinationFolderId(IDfId folderId) Sets the repository object ID for the destination folder for the copy operation.voidsetRetainStorageAreas(boolean retainStorageAreas) Determine if the storage area of the primary content and renditions for the new object should be the same as the original objects rather than the default storage area set for the primary content of the new object.booleanDetermine if the storage area of the primary content and renditions of the new object should be the same as the original objects rather than the default storage area set for the primary content of the new object; that is, if the original object has rendition A in storage A and rendition B in storage B, then the new object's renditions must also be in similar storage.Methods inherited from interface com.documentum.operations.IDfOperationabort, add, areDisabledRegistryUpdates, canUndo, disableRegistryUpdates, enablePopulateWithReferences, execute, getContext, getDescription, getErrors, getName, getNodes, getOperationMonitor, getOperationType, getProperties, getRootNodes, getSession, getSteps, isAborted, isEnabledPopulateWithReferences, logError, removeNode, reportError, resetErrors, setOperationMonitor, setSession, succeeded
- 
Field Details- 
COPY_UNSPECIFIEDstatic final int COPY_UNSPECIFIEDDocumentum internal use- See Also:
 
- 
COPY_REFERENCEstatic final int COPY_REFERENCEReference existing children when virtual document is copied.- See Also:
 
- 
COPY_COPYstatic final int COPY_COPYCreate new copies of referenced children when virtual document is copied.- See Also:
 
- 
COPY_OPTION_PERFORM_MOVEstatic final int COPY_OPTION_PERFORM_MOVEDocumentum internal use- See Also:
 
- 
COPY_OPTION_DONT_MARK_SYMBOLIC_LABELSstatic final int COPY_OPTION_DONT_MARK_SYMBOLIC_LABELSDocumentum internal use- See Also:
 
- 
COPY_OPTIONS_PERFORM_MOVE_AND_DONT_MARK_SYMOLIC_LABELSstatic final int COPY_OPTIONS_PERFORM_MOVE_AND_DONT_MARK_SYMOLIC_LABELSDocumentum internal use- See Also:
 
 
- 
- 
Method Details- 
getCopyPreferenceReturns an integer representing the copy option settings for the operation. Possible values are:1 COPY_REFERENCE - Reference existing children when parent is copied. 2 COPY_COPY - Create new copies of referenced children when parent is copied.- Returns:
- an int representing the copy option settings for the operation.
- Throws:
- DfException
 
- 
getCopyOptionsFlagReturns the current copy option settings. These are intended for internal use. Currently there are three choices:1 COPY_OPTION_PERFORM_MOVE to indicate that the copy is performed on behalf of move. 2 COPY_OPTION_DONT_MARK_SYMBOLIC_LABELS to specify that when the copy of object is done, don't copy the symbolic labels of the original object. 3 COPY_OPTIONS_PERFORM_MOVE_AND_DONT_MARK_SYMOLIC_LABELS to specify both,perform move and dont mark symbolic labels on the copy object - Returns:
- an int representing the present copy operation options.
- Throws:
- DfException
 
- 
getDestinationFolderIdReturns the repository object ID of the destination folder for the copy operation. This is the folder where, by default, new objects will be created. The folder location may be overridden for individual nodes using setDestinationFolderId() of DfOperationNode.- Returns:
- repository ID of the default destination folder for the operation.
- Throws:
- DfException
- See Also:
 
- 
setDestinationFolderIdSets the repository object ID for the destination folder for the copy operation. This is the folder where, by default, new objects will be created. The folder location may be overridden for individual nodes using setDestinationFolderId() of DfOperationNode.- Parameters:
- folderId- - IDfId destination repository folder / cabinet Id.
- Throws:
- DfException
- See Also:
 
- 
getDeepFoldersWhen working with folders, copy the folder and all of its descendants. Boolean value. False indicates just copy the root folder. True indicates copy folder and its descendants. Default is true.- Returns:
- trueif deep copy of folder needs to be performed,- falseotherwise.
- Throws:
- DfException
 
- 
setDeepFoldersWhen working with folders, copy the folder and all of its descendants. Boolean value. False indicates just copy the root folder. True indicates copy folder and its descendants. Default is true.- Parameters:
- deepFolders-- trueif deep copy of folder needs to be performed,- falseotherwise.
- Throws:
- DfException
 
- 
getObjectsReturns the list of unique objects in this operation. Each entry in the list is an IDfSysobject.- Returns:
- returns the list of unique objects in this operation
- Throws:
- DfException
- See Also:
 
- 
getNewObjectsReturns the list of unique new objects created as a result of this operation. Each entry in the list is an IDfSysObject.- Returns:
- returns the list of unique new objects created as a result of this operation.
- Throws:
- DfException
- See Also:
 
- 
setCopyPreferencevoid setCopyPreference(int copyPreference) Sets an integer representing the copy option settings for the operation. Possible values are:1 COPY_REFERENCE - Reference existing children when parent is copied. 2 COPY_COPY - Create new copies of referenced children when parent is copied.Default is COPY_COPY- Parameters:
- copyPreference- int representing the copy preference settings for the operation.
 
- 
setRetainStorageAreasvoid setRetainStorageAreas(boolean retainStorageAreas) Determine if the storage area of the primary content and renditions for the new object should be the same as the original objects rather than the default storage area set for the primary content of the new object. i.e. if the original object has rendition A in storage A and rendition B in storage B, then the new object's renditions must be in similar storage. True indicates that storage area of the renditions and primary content of the new object should be the same as the original object. Default is false.- Parameters:
- retainStorageAreas-- trueif the storage area of the renditions and primary content of the new object should be the same as the original object,- falseotherwise.
 
- 
shouldRetainStorageAreasboolean shouldRetainStorageAreas()Determine if the storage area of the primary content and renditions of the new object should be the same as the original objects rather than the default storage area set for the primary content of the new object; that is, if the original object has rendition A in storage A and rendition B in storage B, then the new object's renditions must also be in similar storage.- Returns:
- trueif the storage area of the renditions and primary content of the new object is set to be same as the original object,- falseotherwise.
 
 
-