|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FolderService
Defines foldering related business operations.
All CabinetBased objects have a path made by constructing the path for
their parent Folder with their name. All paths begin with the root character
('/') followed by a Cabinet name, followed by folder separator character
('/'), followed by the name of the Foldered object.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
Shortcut |
addShortcut(Folder folder,
CabinetBased target)
Add a shortcut to a Foldered object to the specified
Folder. |
FolderEntry |
changeFolder(FolderEntry entry,
Folder new_folder)
Move a FolderEntry from one folder to another. |
WTSet |
changeFolder(WTValuedMap targets_to_destinations)
Move a set of FolderEntry objects to new folders as designated by their mappings in the WTValuedMap parameter. |
Cabinet |
createPersonalCabinet(WTPrincipal principal)
Create a cabinet in the User administrative domain for the specified Principal. |
Cabinet |
createPersonalCabinet(WTPrincipal principal,
AdminDomainRef domain_ref)
Create a cabinet in the specified domain for the specified Principal. |
SubFolder |
createSubFolder(String path)
Create a SubFolder with the supplied path. |
SubFolder |
createSubFolder(String path,
AdminDomainRef domainRef)
Deprecated. Replaced by createSubFolder(String,AdminDomainRef,WTContainerRef) |
SubFolder |
createSubFolder(String path,
AdminDomainRef domain_ref,
WTContainerRef container_ref)
Create a SubFolder in the container specified by container_ref, with the supplied path, and administered in the domain specified by domain_ref. |
QueryResult |
findCabinets(AccessPermission permission,
boolean shared_cabinets_only)
Deprecated. Replaced by #getContainerToCabinetsMap(WTCollection) |
QueryResult |
findFolderContents(Folder folder)
Returns all instances of FolderEntry in the given Folder. |
QueryResult |
findFolderContents(Folder folder,
Class entry_class)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findShortcuts(CabinetBased target)
Return all the Shortcuts to the specified object. |
QueryResult |
findSubFolders(Folder folder)
finds all the SubFolders of the specified folder
Supported API: true |
QueryResult |
findSubFolders(Folder folder,
AccessPermission permission)
Deprecated. Replaced by getParentToSubFoldersMap(WTCollection) |
QueryResult |
findSubFolders(String folder,
AccessPermission permission)
Deprecated. replaced by getParentToSubFoldersMap(WTCollection) |
Cabinet |
getCabinet(String name)
Deprecated. Replaced by #getCabinetsByName(WTCollection containers) |
Vector |
getCabinetNames()
Deprecated. Replaced by #getContainerToCabinetNamesMap(WTCollection) |
Folder |
getFolder(Foldered member)
Deprecated. Replaced by getCabinetBasedToFolderMap(WTCollection) |
Folder |
getFolder(FolderEntry member)
gets the Folder that the specified member
belongs to
Supported API: true |
Folder |
getFolder(String path)
Deprecated. Replaced by getFoldersByPath(WTList, List) |
Folder |
getFolder(String path,
WTContainerRef container)
Supported API: true |
FolderEntry |
getFolderEntry(String path)
Return a FolderEntry object for the given path. |
Object[] |
getFolderPaths(CabinetBased[] objects)
Deprecated. Replaced by getCabinetBasedToPathMap(WTCollection) |
HashMap |
getFolders(List cabinetBasedObjects)
Deprecated. Replaced by getCabinetBasedToFolderMap(WTCollection) |
HashMap |
getFoldersByPath(List folderPaths)
Deprecated. Replaced by getFoldersByPath(WTList, List) |
Object[] |
getLocations(CabinetBased[] objects)
Deprecated. Replaced by getCabinetBasedToLocationMap(WTCollection) |
WTSet |
getObjsInPersonalCabinets(WTCollection objsToCheck)
Given an input WTCollection of CabinetBased objects, this routine returns the subset which reside in personal cabinets. |
Cabinet |
getPersonalCabinet(WTPrincipal principal)
Return the personal cabinet for the specified Principal. |
| Method Detail |
|---|
Shortcut addShortcut(Folder folder,
CabinetBased target)
throws WTException
Foldered object to the specified
Folder.
folder - target -
WTException
FolderEntry changeFolder(FolderEntry entry,
Folder new_folder)
throws WTException
inheritedDomain=true, then the
user must have create permission in the domain of the destination
folder.
Additionally, for Iterated objects, only the latest iteration can
be moved from one folder to another. If the destination folder is
in a different Cabinet, has a different AdministrativeDomain, or has
different Ownership than the source folder, then all historical iterations
of the Iterated object being moved will have their cabinet, domain
and ownership updated accordingly to match the destination folder.
entry - new_folder -
WTExceptionchangeFolder(WTValuedMap)
Cabinet createPersonalCabinet(WTPrincipal principal)
throws WTException
principal -
WTException
SubFolder createSubFolder(String path)
throws WTException
path -
WTExceptionSubFolder
Vector getCabinetNames()
throws WTException
#getContainerToCabinetNamesMap(WTCollection)
Cabinets in the system to which
the current user has read access
Vector of Cabinet names
(Strings)
WTException - if a low level error occurs
QueryResult findFolderContents(Folder folder)
throws WTException
FolderEntry in the given Folder.
folder -
WTExceptiongetFolderToContentsMap(wt.fc.collections.WTSet, java.lang.Class, boolean)
QueryResult findFolderContents(Folder folder,
Class entry_class)
throws WTException
#getFolderToContentsMap(WTSet,Class)
entry_class in the given Folder.
folder - entry_class -
WTExceptionfindFolderContents(Folder[],Class)
QueryResult findShortcuts(CabinetBased target)
throws WTException
Shortcuts to the specified object.
target -
WTExceptionShortcut
QueryResult findSubFolders(Folder folder)
throws WTException
SubFolders of the specified folder
folder - a Folder object
WTException - if a low level error occursSubFolder,
getParentToSubFoldersMap(wt.fc.collections.WTCollection)
Cabinet getCabinet(String name)
throws WTException,
FolderNotFoundException
#getCabinetsByName(WTCollection containers)
Cabinet that has the specified name
name - the name of a Cabinet
FolderNotFoundException - if there is no Cabinet
with the specified name
WTException - if a low level error occurs
Folder getFolder(FolderEntry member)
throws WTException
Folder that the specified member
belongs to
member -
null if the member has not been
assigned to a Folder yet
WTException - if a low level error occursgetCabinetBasedToFolderMap(wt.fc.collections.WTCollection)
Folder getFolder(String path)
throws WTException,
FolderNotFoundException
getFoldersByPath(WTList, List)
Folder object that has the specified path
path - a Folder path, e.g. "/Design/Gagets"
FolderNotFoundException - if there is no Folder
with the specified path
WTException - if a low level error occurs
Folder getFolder(String path,
WTContainerRef container)
throws WTException
path - container -
WTExceptiongetFoldersByPath(java.util.List)
FolderEntry getFolderEntry(String path)
throws WTException
path -
WTException
Cabinet getPersonalCabinet(WTPrincipal principal)
throws WTException,
FolderNotFoundException
principal -
WTException
FolderNotFoundException#getUserToCabinetsMap
Folder getFolder(Foldered member)
throws WTException
getCabinetBasedToFolderMap(WTCollection)
member -
WTException
SubFolder createSubFolder(String path,
AdminDomainRef domainRef)
throws WTException
createSubFolder(String,AdminDomainRef,WTContainerRef)
Supported API: true
path - domainRef -
WTExceptionSubFolder
SubFolder createSubFolder(String path,
AdminDomainRef domain_ref,
WTContainerRef container_ref)
throws WTException
path - domain_ref - container_ref -
WTException
Cabinet createPersonalCabinet(WTPrincipal principal,
AdminDomainRef domain_ref)
throws WTException
principal - domain_ref -
WTException
QueryResult findSubFolders(Folder folder,
AccessPermission permission)
throws WTException
getParentToSubFoldersMap(WTCollection)
SubFolders of the specified folder
that the current user has the specified permission to
access
folder - a Folder objectpermission - one of the permission constants defined in wt.access.AccessPermission
WTException - if a low level error occursSubFolder,
AccessPermission
QueryResult findSubFolders(String folder,
AccessPermission permission)
throws WTException,
FolderNotFoundException
getParentToSubFoldersMap(WTCollection)
SubFolders of the folder,
specified as a path, that the current user has the specified permission
to access
folder - a Folder path, e.g. "/Design/Gagets"permission - one of the permission constants defined in wt.access.AccessPermission
FolderNotFoundException - if the specified folder
doesn't exist
WTException - if a low level error occursSubFolder,
AccessPermission
QueryResult findCabinets(AccessPermission permission,
boolean shared_cabinets_only)
throws WTException
#getContainerToCabinetsMap(WTCollection)
Cabinets that the current user has the specified
permission to access. Optionally can return only shared
Cabinets, excluding personal Cabinets.
permission - one of the permission constants defined in wt.access.AccessPermissionshared_cabinets_only - if true only shared cabinets are returned, else if false all cabinets are returned
WTException - if a low level error occursCabinet,
AccessPermission
Object[] getFolderPaths(CabinetBased[] objects)
throws WTException
getCabinetBasedToPathMap(WTCollection)
objects -
WTException
Object[] getLocations(CabinetBased[] objects)
throws WTException
getCabinetBasedToLocationMap(WTCollection)
objects -
WTException
HashMap getFoldersByPath(List folderPaths)
throws WTException
getFoldersByPath(WTList, List)
folderPaths -
WTException
HashMap getFolders(List cabinetBasedObjects)
throws WTException
getCabinetBasedToFolderMap(WTCollection)
cabinetBasedObjects -
WTException
WTSet getObjsInPersonalCabinets(WTCollection objsToCheck)
throws WTException
This is a multi-object form of FolderHelper.inPersonalCabinet().
Supported API: true
objsToCheck - objects to determine which reside in a personal cabinet
WTException
WTSet changeFolder(WTValuedMap targets_to_destinations)
throws WTException
inheritedDomain=true,
then the user must have create permission in the domain of the destination
folder.
Additionally, for Iterated objects, only the latest iteration can
be moved from one folder to another. If the destination folder is
in a different Cabinet, has a different AdministrativeDomain, or has
different Ownership than the source folder, then all historical iterations
of the Iterated object being moved will have their cabinet, domain
and ownership updated accordingly to match the destination folder.
targets_to_destinations -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||