Package com.documentum.registry
Class DfClientRegistry
java.lang.Object
com.documentum.registry.DfClientRegistryBase
com.documentum.registry.DfClientRegistryBaseInternal
com.documentum.registry.DfClientRegistry
- All Implemented Interfaces:
IDfClientRegistry,IDfClientRegistryInternal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected DfRegistryprotected IDfRegistry -
Constructor Summary
ConstructorsConstructorDescriptionThis constructor determines the correct type of registry to use.DfClientRegistry(IDfRegistry registry) Constructs an instance of the client registry with the given registry object -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppSupportDocument(IDfAppSupportDocumentInternal appSupportDoc) Writes the information contained in IDfAppSupportDocumentInternal object to the registryaddCheckedOutObject(IDfSysObject sysObject, String filePath, boolean keepLocalFile, String folderPath) Constructs a DfCheckedOutObject and writes it to the registryvoidAdds the information contained in the checked out object to the registry.voidaddFileToBeDeleted(String filePath) Adds a file to the "to be deleted" list in the registryvoidaddInlineDescendant(IDfInlineDescendantInternal inlineObj) Writes the information contained in IDfInlineDescendantInternal object to the registryaddLocalObject(IDfSysObject sysObject, String filePath, boolean keepLocalFile, String folderPath) Constructs a DfLocalObject and writes it to the registryvoidaddLocalObject(IDfLocalObject regObj) Adds the information contained in the local object to the registry.addViewedObject(IDfSysObject sysObject, String filePath, String folderPath) Constructs a DfViewedObject and writes it to the registryvoidaddViewedObject(IDfViewedObject viewedObj) Adds the information contained in the viewed out object to the registry.voidapplyModifiedAttrs(IDfSysObject sysObject) updates a checked-out object's attributes with those from a sysobjectcreateAppSupportDocument(String docbase, String docbaseUser, String appName, IDfId objectId) Creates a IDfAppSupportDocumentInternal representation of the application support document.createCheckedOutObject(IDfId objId) Creates a IDfCheckedOutObject representation of the checked out object.createInlineDescendantObject(IDfId objectId, IDfId rootId) Creates an IDfInlineDescendantInternal object representation of the inline descendant information contained in the registry.createLocalObject(IDfId objId) Creates a IDfLocalObject representation of the local object.createViewedObject(IDfId objId) Creates a IDfViewedObject representation of the viewed object.Returns a list of IDfApplicationSupportDocument objects.getAppSupportDocument(String docbase, String docbaseUser, String appName, IDfId objectId) Get IDfAppSupportDocumentInternal object representation of the application support document information in the registry.getCheckedOutObjectById(IDfId objectId) Finds a checked-out file registry object based on object IDgetCheckedOutObjectByPath(String filePath) Finds a checked-out file registry object based on file pathGets all the checked out objectsgetCheckedOutObjectsByMasterId(String masterId) Gets the list of files to be deletedReturns the IDfHouseKeepingObject representation of the house keeping information contained in the registry.getInlineDescendant(IDfId objId) Get IDfInlineDescendantInternal object representation of the inline descendant corresponding to the object id.getLocalObjectById(IDfId objectId) Finds a local file registry object based on object IDgetLocalObjectByPath(String filePath) Finds a local file registry object based on object IDGets all the checked out objectsReturns the underlying internal registry object.getRegistry(long whichRoot) Returns IDfRegistry corresponding to the root.getViewedObjectById(IDfId objectId) Finds a viewed file registry object based on object IDgetViewedObjectByPath(String filePath) Finds a viewed file registry object based on file pathGets all the viewed objectsbooleanReturns true if the local item processing is required.voidLoads the information contained in the underlying registry storage in memory.voidmoveToCheckedOutFiles(IDfLocalObject localObj) Removes a local file and places it in the list of checked-out files.voidmoveToLocalFiles(IDfCheckedOutObject checkedOutObj, IDfSession session) Removes a checked out file and places it in the list of local files.voidremoveAppSupportDocument(String docbase, String userName, String applicationName, IDfId objectId) Removes the application support document information from the registry.voidremoveCheckedOutObject(IDfCheckedOutObject itemToRemove) Removes a checked-out file object from the registryvoidremoveFileToBeDeleted(String filePath) Removes a file from the list of files to be deletedvoidremoveInlineDescendant(IDfId objId) Removes the inline descendant information corresponding to the object id from the registry.voidremoveLocalObject(IDfLocalObject itemToRemove) Removes a local object from the registryvoidremoveViewedObject(IDfViewedObject itemToRemove) Removes a viewed object from the registryvoidSaves the information contained in the memory to the underlying registry.voidsetCheckoutDirectory(String checkoutDir) Sets in the registry the directory where checked out files will be placedvoidsetExportDirectory(String exportDir) Sets in the registry the directory exported files will be written tovoidsetProgramDirectory(String progDir) voidsetUserDirectory(String userDir) Sets in the registry the user's directory
-
Field Details
-
DEFAULT_INI_FILE_DIR
- See Also:
-
DEFAULT_INI_FILE
- See Also:
-
m_registry
-
m_currentUserRegistry
-
-
Constructor Details
-
DfClientRegistry
This constructor determines the correct type of registry to use. This constructor is protected since the default instance of the client registry is singleton.- Throws:
DfException- if the construction of the registry object failed
-
DfClientRegistry
Constructs an instance of the client registry with the given registry object- Parameters:
registry- the registry object to be used by the client registry
-
-
Method Details
-
getRegistry
Description copied from interface:IDfClientRegistryReturns the underlying internal registry object. There are separate registry objects for accessing the low level storage models of the Windows system registry or a .ini file. Note: This method is intended for internal use only.- Returns:
- the underlying registry object
-
getRegistry
Description copied from interface:IDfClientRegistryInternalReturns IDfRegistry corresponding to the root. This method is useful if the underlying registry is windows registry. In windows, there are two different types of hives HKLM, HKCU. Currently, we store all the information in HKCU. However, there is some information like check out directory location, user directory location, program directory etc. that is present under HKLM. Hence, if you want to use HKLM hiive, the call method getRegistry() in the base interface. If, you want to use HKCU then use this method by passing IDfRegistry.USER_ROOT.- Returns:
- IDfRegistry representation of registry.
-
addCheckedOutObject
public IDfCheckedOutObject addCheckedOutObject(IDfSysObject sysObject, String filePath, boolean keepLocalFile, String folderPath) throws DfException Description copied from interface:IDfClientRegistryConstructs a DfCheckedOutObject and writes it to the registry- Parameters:
sysObject- the DfSysObject representing the file to be addedfilePath- the location of the checked-out filekeepLocalFile- __REVISIT__folderPath- the folder path to the object in the repository- Returns:
- the constructed DfCheckedOutObject
- Throws:
DfException
-
addCheckedOutObject
Description copied from interface:IDfClientRegistryInternalAdds the information contained in the checked out object to the registry.- Parameters:
cObj- IDfCheckedOutObject object representation of the checked out object.- Throws:
DfException
-
getCheckedOutObjects
Description copied from interface:IDfClientRegistryGets all the checked out objects- Returns:
- an enumerated list of DfCheckedOutObjects
- Throws:
DfException
-
getCheckedOutObjectById
Description copied from interface:IDfClientRegistryFinds a checked-out file registry object based on object ID- Parameters:
objectId- DfId object with the id of the object to be found- Returns:
- the DfCheckedOutObject with the given ID, or null if the ID does not exist
- Throws:
DfException
-
getCheckedOutObjectByPath
Description copied from interface:IDfClientRegistryFinds a checked-out file registry object based on file path- Parameters:
filePath- file path of the object to be found- Returns:
- the DfCheckedOutObject with the file path
- Throws:
DfException
-
removeCheckedOutObject
Description copied from interface:IDfClientRegistryRemoves a checked-out file object from the registry- Parameters:
itemToRemove- DfCheckedOutObject to remove- Throws:
DfException
-
getCheckedOutObjectsByMasterId
-
addViewedObject
public IDfViewedObject addViewedObject(IDfSysObject sysObject, String filePath, String folderPath) throws DfException Description copied from interface:IDfClientRegistryConstructs a DfViewedObject and writes it to the registry- Parameters:
sysObject- the DfSysObject representing the file to be addedfilePath- the location of the checked-out filefolderPath- the folder path to the object in the repository- Returns:
- the constructed DfViewedObject
- Throws:
DfException
-
addViewedObject
Description copied from interface:IDfClientRegistryInternalAdds the information contained in the viewed out object to the registry.- Parameters:
viewedObj- IDfViewedObject object representation of the viewed object.- Throws:
DfException
-
getViewedObjects
Description copied from interface:IDfClientRegistryGets all the viewed objects- Returns:
- an enumerated list of DfCheckedOutObjects
- Throws:
DfException
-
getViewedObjectById
Description copied from interface:IDfClientRegistryFinds a viewed file registry object based on object ID- Parameters:
objectId- DfId object with the ID of the object to be found- Returns:
- the DfViewedObject with the given ID, or null if the ID does not exist
- Throws:
DfException
-
getViewedObjectByPath
Description copied from interface:IDfClientRegistryFinds a viewed file registry object based on file path- Parameters:
filePath- DfId object with the ID of the object to be found- Returns:
- the DfViewedObject with the given ID, or null if the ID does not exist
- Throws:
DfException
-
removeViewedObject
Description copied from interface:IDfClientRegistryRemoves a viewed object from the registry- Parameters:
itemToRemove- the viewed object to be removed from the registry- Throws:
DfException
-
addLocalObject
public IDfLocalObject addLocalObject(IDfSysObject sysObject, String filePath, boolean keepLocalFile, String folderPath) throws DfException Description copied from interface:IDfClientRegistryConstructs a DfLocalObject and writes it to the registry- Returns:
- the constructed DfLocalObject
- Throws:
DfException
-
addLocalObject
Description copied from interface:IDfClientRegistryInternalAdds the information contained in the local object to the registry.- Parameters:
regObj- IDfLocalObject object representation of the local object.- Throws:
DfException
-
getLocalObjects
Description copied from interface:IDfClientRegistryGets all the checked out objects- Returns:
- an enumerated list of DfLocalObjects
- Throws:
DfException
-
getLocalObjectById
Description copied from interface:IDfClientRegistryFinds a local file registry object based on object ID- Returns:
- the DfLocalObject with the given ID, or null if the ID does not exist
- Throws:
DfException
-
getLocalObjectByPath
Description copied from interface:IDfClientRegistryFinds a local file registry object based on object ID- Returns:
- the DfLocalObject with the given ID, or null if the ID does not exist
- Throws:
DfException
-
removeLocalObject
Description copied from interface:IDfClientRegistryRemoves a local object from the registry- Parameters:
itemToRemove- the viewed object to be removed from the registry- Throws:
DfException
-
getHouseKeepingObject
Description copied from interface:IDfClientRegistryInternalReturns the IDfHouseKeepingObject representation of the house keeping information contained in the registry.- Returns:
- IDfHouseKeeping object
-
setProgramDirectory
- Throws:
DfException
-
getProgramDirectory
- Returns:
- program directory
- Throws:
DfException
-
setUserDirectory
Description copied from interface:IDfClientRegistrySets in the registry the user's directory- Throws:
DfException
-
getUserDirectory
- Returns:
- user directory
- Throws:
DfException
-
setCheckoutDirectory
Description copied from interface:IDfClientRegistrySets in the registry the directory where checked out files will be placed- Parameters:
checkoutDir- the checkout directory path- Throws:
DfException
-
getCheckoutDirectory
- Returns:
- the directory path checked out files will be written to
- Throws:
DfException
-
setExportDirectory
Description copied from interface:IDfClientRegistrySets in the registry the directory exported files will be written to- Parameters:
exportDir- the directory to place exported files in- Throws:
DfException
-
getExportDirectory
- Returns:
- the directory path exported files will be written to
- Throws:
DfException
-
addFileToBeDeleted
Description copied from interface:IDfClientRegistryAdds a file to the "to be deleted" list in the registry- Parameters:
filePath- path of file to be deleted- Throws:
DfException
-
getFilesToBeDeleted
Description copied from interface:IDfClientRegistryGets the list of files to be deleted- Returns:
- a DfList with the file paths of the files to be deleted
- Throws:
DfException
-
removeFileToBeDeleted
Description copied from interface:IDfClientRegistryRemoves a file from the list of files to be deleted- Parameters:
filePath- path of file to be removed from list- Throws:
DfException
-
moveToLocalFiles
public void moveToLocalFiles(IDfCheckedOutObject checkedOutObj, IDfSession session) throws DfException Description copied from interface:IDfClientRegistryRemoves a checked out file and places it in the list of local files. Warning: Some fields are not shared by local files and checked-out files, so moving a checked-out file to local files and back again will NOT result in the same checked-out object as before.- Parameters:
checkedOutObj- the checked-out object to be movedsession- the current session object- Throws:
DfException
-
moveToCheckedOutFiles
Description copied from interface:IDfClientRegistryRemoves a local file and places it in the list of checked-out files. Warning: Some fields are not shared by local files and checked-out files, so moving a local file to checked-out files and back again will NOT result in the same local object as before.- Parameters:
localObj- the local object to be moved- Throws:
DfException
-
applyModifiedAttrs
Description copied from interface:IDfClientRegistryupdates a checked-out object's attributes with those from a sysobject- Parameters:
sysObject- the sysobject to update the registry object with- Throws:
DfException
-
addInlineDescendant
Description copied from interface:IDfClientRegistryInternalWrites the information contained in IDfInlineDescendantInternal object to the registry- Parameters:
inlineObj- IDfInlineDescendantInternal object that contains inline descendant information.- Throws:
DfException
-
removeInlineDescendant
Description copied from interface:IDfClientRegistryInternalRemoves the inline descendant information corresponding to the object id from the registry.- Parameters:
objId- the inline descendant correponding to this object id will be removed from the registry.- Throws:
DfException
-
getInlineDescendant
Description copied from interface:IDfClientRegistryInternalGet IDfInlineDescendantInternal object representation of the inline descendant corresponding to the object id.- Parameters:
objId- the inline descendant object id- Returns:
- IDfInlineDescendantInternal object
- Throws:
DfException
-
addAppSupportDocument
Description copied from interface:IDfClientRegistryInternalWrites the information contained in IDfAppSupportDocumentInternal object to the registry- Parameters:
appSupportDoc- IDfAppSupportDocumentInternal object that contains application support document information.- Throws:
DfException
-
removeAppSupportDocument
public void removeAppSupportDocument(String docbase, String userName, String applicationName, IDfId objectId) throws DfException Description copied from interface:IDfClientRegistryInternalRemoves the application support document information from the registry. Docbase Name, docbase user, application name and object id together uniquely define the application support document information in the registry.- Parameters:
docbase- the docbase nameuserName- the docbase user nameapplicationName- the XML application nameobjectId- the docbase object id- Throws:
DfException
-
getApplicationSupportDocuments
Description copied from interface:IDfClientRegistryInternalReturns a list of IDfApplicationSupportDocument objects.- Returns:
- IDfList of IDfApplicationSupportDocument objects.
- Throws:
DfException
-
getAppSupportDocument
public IDfAppSupportDocumentInternal getAppSupportDocument(String docbase, String docbaseUser, String appName, IDfId objectId) throws DfException Description copied from interface:IDfClientRegistryInternalGet IDfAppSupportDocumentInternal object representation of the application support document information in the registry. Docbase Name, docbase user, application name and object id together uniquely define the application support document information in the registry.- Parameters:
docbase- docbase namedocbaseUser- docbase user nameappName- application nameobjectId- docbase object id- Returns:
- IDfAppSupportDocumentInternal object representation of the application support document information in the registry
- Throws:
DfException
-
loadRegistry
Description copied from interface:IDfClientRegistryInternalLoads the information contained in the underlying registry storage in memory.- Throws:
DfException
-
saveRegistryUpdates
Description copied from interface:IDfClientRegistryInternalSaves the information contained in the memory to the underlying registry.- Throws:
DfException
-
isLocalItemProcessingRequired
public boolean isLocalItemProcessingRequired()Description copied from interface:IDfClientRegistryInternalReturns true if the local item processing is required. This is false for the ini file representation of the registry.- Returns:
- true if local item processing is required; false otherwise
-
createCheckedOutObject
Description copied from interface:IDfClientRegistryInternalCreates a IDfCheckedOutObject representation of the checked out object. Note that there is no information contained in this object when it is created. It is just an empty place holder in which the information about checked out object can be populated.- Returns:
- IDfCheckedOutObject
- Throws:
DfException
-
createViewedObject
Description copied from interface:IDfClientRegistryInternalCreates a IDfViewedObject representation of the viewed object. Note that there is no information contained in this object when it is created. It is just an empty place holder in which the information about viewed object can be populated.- Returns:
- IDfViewedObject
- Throws:
DfException
-
createLocalObject
Description copied from interface:IDfClientRegistryInternalCreates a IDfLocalObject representation of the local object. Note that there is no information contained in this object when it is created. It is just an empty place holder in which the information about local object can be populated.- Returns:
- IDfLocalObject
- Throws:
DfException
-
createAppSupportDocument
public IDfAppSupportDocumentInternal createAppSupportDocument(String docbase, String docbaseUser, String appName, IDfId objectId) throws DfException Description copied from interface:IDfClientRegistryInternalCreates a IDfAppSupportDocumentInternal representation of the application support document. Note that the only information contained in this IDfApplicationSupportDocument after creation is what is passed as parameter values i.e. docbase name, docbase user, application name and object id. Other related information for this application support document should be populated.- Parameters:
docbase- docbase namedocbaseUser- docbase userappName- application nameobjectId- docbase object id- Returns:
- IDfApplicationSupportDocument
- Throws:
DfException
-
createInlineDescendantObject
public IDfInlineDescendantInternal createInlineDescendantObject(IDfId objectId, IDfId rootId) throws DfException Description copied from interface:IDfClientRegistryInternalCreates an IDfInlineDescendantInternal object representation of the inline descendant information contained in the registry.- Parameters:
objectId- docbase object id that corresponds to the inline descendantrootId- docbase object id that contains this inline descendant (directly or indeirectly)- Returns:
- IDfInlineDescendantInternal object
- Throws:
DfException
-