Package com.emc.documentum.rest.dfc
Interface FolderLinksManager
public interface FolderLinksManager
The folder links manager to link, unlink and move objects across folders.
-
Method Summary
Modifier and TypeMethodDescriptiongetChildLinks
(String folderId, boolean includeAllVersions, String filterQualification, List<SortOrder> sorts, int page, int itemsPerPage, boolean includeTotal) Retrieve a paginated list of child links for a given foldergetParentLinks
(String objectId, int page, int itemsPerPage) Retrieve a paginated list of parent links for a given objectvoid
Link an object ot a foldervoid
Move the object from one folder to the other foldervoid
Remove a folder link between an object and its folder
-
Method Details
-
getParentLinks
Page<FolderLink> getParentLinks(String objectId, int page, int itemsPerPage) throws com.documentum.fc.common.DfException Retrieve a paginated list of parent links for a given object- Parameters:
objectId
- the object IDpage
- the page numberitemsPerPage
- the page size- Returns:
- a list of folder links
- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
getChildLinks
Page<FolderLink> getChildLinks(String folderId, boolean includeAllVersions, String filterQualification, List<SortOrder> sorts, int page, int itemsPerPage, boolean includeTotal) throws com.documentum.fc.common.DfException Retrieve a paginated list of child links for a given folder- Parameters:
folderId
- the folder IDincludeAllVersions
- indicate whether to include folder links for all versions of the child objectsfilterQualification
- filter qualification to specify a specified list of childrensorts
- sort orders of the folder linkspage
- the page numberitemsPerPage
- the page sizeincludeTotal
- indicate whether to include the total folder links count in the page result- Returns:
- a list of folder links
- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
link
Link an object ot a folder- Parameters:
objectId
- the object IDfolderId
- the target folder ID- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
unlink
Remove a folder link between an object and its folder- Parameters:
objectId
- the object IDfolderId
- the folder ID- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-
move
void move(String objectId, boolean includeAllVersion, String sourceFolderId, String destinationFolderId) throws com.documentum.fc.common.DfException Move the object from one folder to the other folder- Parameters:
objectId
- the object IDincludeAllVersion
- indicate whether to include all versions when movingsourceFolderId
- the source folder ID from which the link is removeddestinationFolderId
- the target folder ID to which the link added- Throws:
com.documentum.fc.common.DfException
- the exception during the operation
-