|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.folder.FolderServiceFwd
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: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Fields inherited from interface wt.folder.FolderService |
FOLDER_ROOT, FOLDER_SEPARATOR |
Constructor Summary | |
FolderServiceFwd()
|
Method Summary | |
Shortcut |
addShortcut(Folder folder,
CabinetBased target)
Add a shortcut to a Foldered object to the specified
Folder . |
WTCollection |
assignLocation(WTCollection wtColl,
Folder folder)
Deprecated. replaced by FolderHelper.assignLocation(WTCollection,Folder) |
WTValuedMap |
assignLocations(WTValuedMap folderedItemToFolderMap)
Deprecated. Replaced by FolderHelper.assignLocations(WTValuedMap) |
Foldered |
changeFolder(Foldered member,
Folder newFolder)
Deprecated. Replaced by changeFolder(WTValuedMap) |
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 |
createCabinet(String name,
AdminDomainRef domain_ref,
String description,
WTContainerRef container_ref)
The AdministrativeDomain and WTContainer
must already exist. |
Cabinet |
createCabinet(String name,
AdminDomainRef domain_ref,
String description,
WTPrincipal owner,
boolean is_personal)
Deprecated. Use createPersonalCabinet() to create a personal cabinet, and createCabinet(String, AdminDomainRef, String, WTContainerRef) to create a shared cabinet. |
Cabinet |
createCabinet(String name,
AdministrativeDomain administrative_domain,
String description,
String owner)
Deprecated. Use createPersonalCabinet() to create a personal cabinet, and createCabinet(String, AdminDomainRef, String, WTContainerRef) to create a shared cabinet. |
Cabinet |
createCabinet(String name,
AdministrativeDomain administrative_domain,
String description,
WTPrincipal owner)
Deprecated. Use createPersonalCabinet() to create a personal cabinet, and createCabinet(String, AdminDomainRef, String, WTContainerRef) to create a shared cabinet. |
Cabinet |
createCabinet(String name,
String administrative_domain,
String description,
String owner)
Deprecated. Use createPersonalCabinet() to create a personal cabinet, and createCabinet(String, AdminDomainRef, String, WTContainerRef) to create a shared cabinet. |
Cabinet |
createCabinet(String name,
String domain_path,
String description,
String owner,
boolean is_personal)
Deprecated. Use createPersonalCabinet() to create a personal cabinet, and createCabinet(String, AdminDomainRef, String, WTContainerRef) to create a shared cabinet. |
Cabinet |
createPersonalCabinet(String name)
Deprecated. Replaced by createPersonalCabinet(WTPrincipal) |
Cabinet |
createPersonalCabinet(String name,
AdminDomainRef domain_ref,
String description)
Deprecated. Replaced by createPersonalCabinet(WTPrincipal,
AdminDomainRef) |
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)
The AdministrativeDomain and WTContainer
must already exist. |
SubFolder |
createSubFolder(String path,
WTContainerRef container_ref)
The WTContainer must already exist. |
QueryResult |
findCabinets(AccessPermission permission,
boolean shared_cabinets_only)
Deprecated. Replaced by #getContainerToCabinetsMap(WTCollection) |
QueryResult |
findCabinets(AccessPermission permission,
boolean shared_cabinets_only,
WTContainerRef container)
Deprecated. Replaced by #getContainerToCabinetsMap(WTCollection) |
QueryResult |
findCabinets(String permission)
Deprecated. Replaced by #getContainerToCabinetsMap(WTCollection) |
QueryResult |
findCabinets(String permission,
boolean shared_cabinets_only)
Deprecated. Replaced by findCabinets(AccessPermission, boolean) |
QueryResult |
findFolderContents(Folder folder)
Returns all instances of FolderEntry in the given Folder . |
QueryResult |
findFolderContents(Folder[] folders)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findFolderContents(Folder[] folders,
Class entry_class)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findFolderContents(Folder[] folders,
Class entry_class,
boolean include_shared)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findFolderContents(Folder folder,
Class entry_class)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findFolderContents(String path,
WTContainerRef[] container_refs)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findFolderContents(String path,
WTContainerRef[] container_refs,
Class entry_class)
Deprecated. Replaced by #getFolderToContentsMap(WTSet,Class) |
QueryResult |
findShortcuts(CabinetBased target)
Return all the Shortcut s to the specified object. |
QueryResult |
findSubFolders(Folder folder)
finds all the SubFolders of the specified folder
Supported API: false |
QueryResult |
findSubFolders(Folder folder,
AccessPermission permission)
Deprecated. Replaced by getParentToSubFoldersMap(WTCollection) |
QueryResult |
findSubFolders(Folder folder,
String permission)
Deprecated. Replaced by getParentToSubFoldersMap(WTCollection) |
QueryResult |
findSubFolders(String folder,
AccessPermission permission)
Deprecated. replaced by getParentToSubFoldersMap(WTCollection) |
QueryResult |
findSubFolders(String folder,
AccessPermission permission,
WTContainerRef container)
Deprecated. Replaced by getParentToSubFoldersMap(WTCollection) |
QueryResult |
findSubFolders(String folder,
String permission)
Deprecated. Replaced by getParentToSubFoldersMap(WTCollection) |
Cabinet |
getCabinet(String name)
Deprecated. Replaced by #getCabinetsByName(WTCollection containers) |
Cabinet |
getCabinet(String name,
WTContainerRef container)
Supported API: false |
WTValuedMap |
getCabinetBasedToCabinetMap(WTCollection objects)
Get the cabinets for the given set of CabinetBased objects. |
WTValuedMap |
getCabinetBasedToFolderMap(WTCollection objects)
Get the parent folders for the given collection of CabinetBased objects. |
WTKeyedMap |
getCabinetBasedToLocationMap(WTCollection objects)
Get the locations for the given CabinetBased objects. |
WTKeyedMap |
getCabinetBasedToPathMap(WTCollection objects)
Get the paths for the given CabinetBased objects. |
Vector |
getCabinetNames()
Deprecated. Replaced by #getContainerToCabinetNamesMap(WTCollection) |
Vector |
getCabinetNames(WTContainerRef container)
Deprecated. Replaced by #getContainerToCabinetNamesMap(WTCollection) |
WTList |
getCabinetsByName(WTList containers,
List names)
Get the cabinets that correspond to the given name/container pairs. |
WTKeyedMap |
getContainerToCabinetNamesMap(WTCollection containers,
boolean shared_only)
Get a mapping of the given containers to thei names of their accessible cabinets Supported API: false |
WTKeyedMap |
getContainerToCabinetsMap(WTCollection containers,
boolean shared_only)
Get a mapping of the given containers to their accessible cabinets Supported API: false |
WTValuedMap |
getEntryToMembershipMap(WTCollection entries)
Get the FolderMemberships for the given FolderEntry objects. |
Folder |
getFolder(Foldered member)
Deprecated. Replaced by getCabinetBasedToFolderMap(WTCollection) |
Folder |
getFolder(FolderEntry member)
gets the Folder that the specified member
belongs to
Supported API: false |
Folder |
getFolder(String path)
Deprecated. Replaced by getFoldersByPath(WTList, List) |
Folder |
getFolder(String path,
WTContainerRef container)
Supported API: false |
WTValuedMap |
getFolderedToFolderMap(WTCollection folderedColl)
Deprecated. Replaced by getCabinetBasedToFolderMap(WTCollection) |
FolderEntry |
getFolderEntry(String path)
Return a FolderEntry object for the given path. |
FolderEntry |
getFolderEntry(String path,
WTContainerRef container)
Supported API: false |
String |
getFolderPath(Cabinet cabinet)
Deprecated. Replaced by getCabinetBasedToPathMap(WTCollection) |
String |
getFolderPath(FolderEntry entry)
Deprecated. Replaced by getCabinetBasedToPathMap(WTCollection) |
Object[] |
getFolderPaths(CabinetBased[] objects)
Deprecated. Replaced by getCabinetBasedToPathMap(WTCollection) |
ArrayList |
getFolderPathsFromFolderOids(ArrayList folderOids)
Deprecated. Replaced by getCabinetBasedToPathMap(WTCollection) |
HashMap |
getFolders(List cabinetBasedObjects)
Deprecated. Replaced by getCabinetBasedToFolderMap(WTCollection) |
HashMap |
getFoldersByPath(List folderPaths)
Deprecated. Replaced by getFoldersByPath(WTList, List) |
WTList |
getFoldersByPath(WTList containers,
List paths)
Get the folders that correspond to the given path/container pairs. |
WTKeyedMap |
getFolderToContentsMap(WTSet folders,
Class entry_class,
boolean include_shared)
Get the contents of the given set of folders. |
String |
getLocation(CabinetBased object)
gets the location of the specified CabinetBased object
as a String folder path
Supported API: false |
Object[] |
getLocations(CabinetBased[] objects)
Deprecated. Replaced by getCabinetBasedToLocationMap(WTCollection) |
private static Manager |
getManager()
|
ArrayList |
getMemberships(List members)
Deprecated. Replaced by getEntryToMembershipMap(wt.fc.collections.WTCollection) |
WTSet |
getObjsInPersonalCabinets(WTCollection objsToCheck)
Given an input WTCollection of CabinetBased objects, this routine returns the subset which reside in personal cabinets. |
WTKeyedMap |
getParentToSubFoldersMap(WTCollection parents)
Get a mapping of parent folders to WTSets of their subfolders Supported API: false |
Cabinet |
getPersonalCabinet(WTPrincipal principal)
Return the personal cabinet for the specified Principal. |
WTValuedMap |
getUserToCabinetMap(WTCollection users)
Get the personal cabinets for the given users. |
boolean |
inPersonalCabinet(CabinetBased cabinetBased)
Returns true if the entry resides in a personal cabinet, returns false if in an shared cabinet. |
void |
removeShortcut(Shortcut shortcut)
Deprecated. Replaced by PersistenceManager.delete(Persistable) |
Folder |
saveFolderPath(String path,
WTContainerRef container_ref)
Ensures that every folder specified by the path argument exists in the given container. |
Cabinet |
updateCabinet(Cabinet cabinet,
String name,
AdminDomainRef domain_ref)
Update a Cabinet, changing the identity to the specified name, and changing the administrative domain to the domain specified by domain_ref. |
SubFolder |
updateSubFolder(SubFolder folder,
String name,
AdminDomainRef domain_ref,
boolean inherits)
Update a SubFolder, changing the identity to the specified name, and changing the administrative domain to the domain specified by domain_ref. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public FolderServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public Shortcut addShortcut(Folder folder, CabinetBased target) throws WTException
Foldered
object to the specified
Folder
.
addShortcut
in interface FolderService
folder
- target
-
WTException
public 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.
changeFolder
in interface FolderService
entry
- new_folder
-
WTException
changeFolder(WTValuedMap)
public Cabinet createCabinet(String name, AdminDomainRef domain_ref, String description, WTContainerRef container_ref) throws WTException
AdministrativeDomain
and WTContainer
must already exist.
createCabinet
in interface FolderService
name
- domain_ref
- description
- container_ref
-
WTException
public Cabinet createCabinet(String name, String domain_path, String description, String owner, boolean is_personal) throws WTException
createCabinet
in interface FolderService
name
- domain_path
- description
- owner
- is_personal
-
WTException
AdministrativeDomain
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createCabinet(String name, AdminDomainRef domain_ref, String description, WTPrincipal owner, boolean is_personal) throws WTException
createCabinet
in interface FolderService
name
- domain_ref
- description
- owner
- is_personal
-
WTException
AdministrativeDomain
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createCabinet(String name, String administrative_domain, String description, String owner) throws WTException
createCabinet
in interface FolderService
name
- administrative_domain
- description
- owner
-
WTException
AdministrativeDomain
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createCabinet(String name, AdministrativeDomain administrative_domain, String description, String owner) throws WTException
createCabinet
in interface FolderService
name
- administrative_domain
- description
- owner
-
WTException
AdministrativeDomain
,
AdministrativeDomainHelper
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createCabinet(String name, AdministrativeDomain administrative_domain, String description, WTPrincipal owner) throws WTException
createCabinet
in interface FolderService
name
- administrative_domain
- description
- owner
-
WTException
AdministrativeDomain
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createPersonalCabinet(String name) throws WTException
createPersonalCabinet(WTPrincipal)
createPersonalCabinet
in interface FolderService
name
-
WTException
WTUser
public Cabinet createPersonalCabinet(WTPrincipal principal) throws WTException
createPersonalCabinet
in interface FolderService
principal
-
WTException
public SubFolder createSubFolder(String path) throws WTException
createSubFolder
in interface FolderService
path
-
WTException
SubFolder
public QueryResult findCabinets(String permission, boolean shared_cabinets_only) throws WTException
findCabinets(AccessPermission, boolean)
Cabinets
that the current user has the specified
permission
to access. Optionally can return only shared
Cabinets
, excluding personal Cabinets
.
findCabinets
in interface FolderService
permission
- one of the permission constants defined in wt.access.WTPermissionshared_cabinets_only
- if true
only shared cabinets are returned, else if false
all cabinets are returned
WTException
Cabinet
,
AccessPermission
public Vector getCabinetNames() throws WTException
#getContainerToCabinetNamesMap(WTCollection)
Cabinets
in the system to which
the current user has read access
getCabinetNames
in interface FolderService
Vector
of Cabinet
names
(Strings
)
WTException
- if a low level error occurspublic Vector getCabinetNames(WTContainerRef container) throws WTException
#getContainerToCabinetNamesMap(WTCollection)
getCabinetNames
in interface FolderService
container
-
WTException
public QueryResult findFolderContents(Folder folder) throws WTException
FolderEntry
in the given Folder
.
findFolderContents
in interface FolderService
folder
-
WTException
getFolderToContentsMap(wt.fc.collections.WTSet, java.lang.Class, boolean)
public QueryResult findFolderContents(Folder folder, Class entry_class) throws WTException
#getFolderToContentsMap(WTSet,Class)
entry_class
in the given Folder
.
findFolderContents
in interface FolderService
folder
- entry_class
-
WTException
findFolderContents(Folder[],Class)
public QueryResult findFolderContents(Folder[] folders) throws WTException
#getFolderToContentsMap(WTSet,Class)
FolderEntry
in the given set
of Folders
.
findFolderContents
in interface FolderService
folders
-
WTException
public QueryResult findFolderContents(Folder[] folders, Class entry_class) throws WTException
#getFolderToContentsMap(WTSet,Class)
entry_class
in the given set
of Folders
. This includes:
findFolderContents
in interface FolderService
folders
- entry_class
-
WTException
FolderEntry
public QueryResult findFolderContents(Folder[] folders, Class entry_class, boolean include_shared) throws WTException
#getFolderToContentsMap(WTSet,Class)
entry_class
in the given set
of Folders
. This includes:
include_shared
is true
, objects that
are shared into the folder, both by iteration and by version.
findFolderContents
in interface FolderService
folders
- entry_class
- include_shared
-
WTException
FolderEntry
public QueryResult findFolderContents(String path, WTContainerRef[] container_refs) throws WTException
#getFolderToContentsMap(WTSet,Class)
FolderEntry
that are in folders
of the given path within any of the given containers. If the given
folder path does not exist in one of the containers, the container
is skipped.
findFolderContents
in interface FolderService
path
- container_refs
-
WTException
findFolderContents(Folder[],Class)
public QueryResult findFolderContents(String path, WTContainerRef[] container_refs, Class entry_class) throws WTException
#getFolderToContentsMap(WTSet,Class)
entry_class
that are in folders
of the given path within any of the given containers. If the given
folder path does not exist in one of the containers, the container
is skipped.
findFolderContents
in interface FolderService
path
- container_refs
- entry_class
-
WTException
findFolderContents(Folder[],Class)
public QueryResult findShortcuts(CabinetBased target) throws WTException
Shortcut
s to the specified object.
findShortcuts
in interface FolderService
target
-
WTException
Shortcut
public QueryResult findSubFolders(Folder folder) throws WTException
SubFolders
of the specified folder
findSubFolders
in interface FolderService
folder
- a Folder
object
WTException
- if a low level error occursSubFolder
,
getParentToSubFoldersMap(wt.fc.collections.WTCollection)
public QueryResult findSubFolders(Folder folder, String permission) throws WTException
getParentToSubFoldersMap(WTCollection)
SubFolders
of the specified folder
that the current user has the specified permission
to
access
findSubFolders
in interface FolderService
folder
- a Folder
objectpermission
- one of the permission constants defined in wt.access.WTPermission
WTException
SubFolder
,
AccessPermission
public QueryResult findSubFolders(String folder, String permission) throws WTException, FolderNotFoundException
getParentToSubFoldersMap(WTCollection)
SubFolders
of the folder
,
specified as a path, that the current user has the specified permission
to access
findSubFolders
in interface FolderService
folder
- a Folder
path, e.g. "/Design/Gagets"permission
- one of the permission constants defined in wt.access.WTPermission
FolderNotFoundException
- if the specified folder
doesn't exist
WTException
- if a low level error occursSubFolder
,
AccessPermission
public Cabinet getCabinet(String name) throws WTException, FolderNotFoundException
#getCabinetsByName(WTCollection containers)
Cabinet
that has the specified name
getCabinet
in interface FolderService
name
- the name of a Cabinet
FolderNotFoundException
- if there is no Cabinet
with the specified name
WTException
- if a low level error occurspublic Cabinet getCabinet(String name, WTContainerRef container) throws WTException
getCabinet
in interface FolderService
name
- container
-
WTException
getCabinetsByName(wt.fc.collections.WTList, java.util.List)
public Folder getFolder(FolderEntry member) throws WTException
Folder
that the specified member
belongs to
getFolder
in interface FolderService
member
-
null
if the member
has not been
assigned to a Folder
yet
WTException
- if a low level error occursgetCabinetBasedToFolderMap(wt.fc.collections.WTCollection)
public Folder getFolder(String path) throws WTException, FolderNotFoundException
getFoldersByPath(WTList, List)
Folder
object that has the specified path
getFolder
in interface FolderService
path
- a Folder
path, e.g. "/Design/Gagets"
FolderNotFoundException
- if there is no Folder
with the specified path
WTException
- if a low level error occurspublic Folder getFolder(String path, WTContainerRef container) throws WTException
getFolder
in interface FolderService
path
- container
-
WTException
getFoldersByPath(java.util.List)
public FolderEntry getFolderEntry(String path) throws WTException
getFolderEntry
in interface FolderService
path
-
WTException
public FolderEntry getFolderEntry(String path, WTContainerRef container) throws WTException
getFolderEntry
in interface FolderService
path
- container
-
WTException
public String getLocation(CabinetBased object) throws WTException
CabinetBased object
as a String
folder path
getLocation
in interface FolderService
object
-
null
if the object has not been assigned to a
Folder
yet
WTException
- if a low level error occursgetCabinetBasedToLocationMap(wt.fc.collections.WTCollection)
public Cabinet getPersonalCabinet(WTPrincipal principal) throws WTException, FolderNotFoundException
getPersonalCabinet
in interface FolderService
principal
-
WTException
FolderNotFoundException
#getUserToCabinetsMap
public QueryResult findCabinets(String permission) throws WTException
#getContainerToCabinetsMap(WTCollection)
findCabinets
in interface FolderService
permission
-
WTException
Cabinet
,
AccessPermission
public Foldered changeFolder(Foldered member, Folder newFolder) throws WTException
changeFolder(WTValuedMap)
changeFolder
in interface FolderService
member
- newFolder
-
WTException
public Folder getFolder(Foldered member) throws WTException
getCabinetBasedToFolderMap(WTCollection)
getFolder
in interface FolderService
member
-
WTException
public String getFolderPath(FolderEntry entry) throws WTException
getCabinetBasedToPathMap(WTCollection)
getFolderPath
in interface FolderService
entry
-
WTException
public String getFolderPath(Cabinet cabinet) throws WTException
getCabinetBasedToPathMap(WTCollection)
getFolderPath
in interface FolderService
cabinet
-
WTException
public void removeShortcut(Shortcut shortcut) throws WTException
PersistenceManager.delete(Persistable)
removeShortcut
in interface FolderService
shortcut
-
WTException
public SubFolder createSubFolder(String path, AdminDomainRef domainRef) throws WTException
createSubFolder(String,AdminDomainRef,WTContainerRef)
Supported API: false
createSubFolder
in interface FolderService
path
- domainRef
-
WTException
SubFolder
public SubFolder createSubFolder(String path, AdminDomainRef domain_ref, WTContainerRef container_ref) throws WTException
AdministrativeDomain
and WTContainer
must already exist.
createSubFolder
in interface FolderService
path
- domain_ref
- container_ref
-
WTException
public SubFolder createSubFolder(String path, WTContainerRef container_ref) throws WTException
WTContainer
must already exist.
createSubFolder
in interface FolderService
path
- container_ref
-
WTException
public Cabinet createPersonalCabinet(WTPrincipal principal, AdminDomainRef domain_ref) throws WTException
createPersonalCabinet
in interface FolderService
principal
- domain_ref
-
WTException
public Cabinet createPersonalCabinet(String name, AdminDomainRef domain_ref, String description) throws WTException
createPersonalCabinet(WTPrincipal,
AdminDomainRef)
createPersonalCabinet
in interface FolderService
name
- domain_ref
- description
-
WTException
public Cabinet updateCabinet(Cabinet cabinet, String name, AdminDomainRef domain_ref) throws WTException, WTPropertyVetoException
updateCabinet
in interface FolderService
cabinet
- name
- domain_ref
-
WTException
WTPropertyVetoException
Cabinet
public SubFolder updateSubFolder(SubFolder folder, String name, AdminDomainRef domain_ref, boolean inherits) throws WTException, WTPropertyVetoException
updateSubFolder
in interface FolderService
folder
- name
- domain_ref
- inherits
-
WTException
WTPropertyVetoException
SubFolder
public 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
findSubFolders
in interface FolderService
folder
- a Folder
objectpermission
- one of the permission constants defined in wt.access.AccessPermission
WTException
- if a low level error occursSubFolder
,
AccessPermission
public 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
findSubFolders
in interface FolderService
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
public QueryResult findSubFolders(String folder, AccessPermission permission, WTContainerRef container) throws WTException
getParentToSubFoldersMap(WTCollection)
findSubFolders
in interface FolderService
folder
- permission
- container
-
WTException
public 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
.
findCabinets
in interface FolderService
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
public QueryResult findCabinets(AccessPermission permission, boolean shared_cabinets_only, WTContainerRef container) throws WTException
#getContainerToCabinetsMap(WTCollection)
findCabinets
in interface FolderService
permission
- shared_cabinets_only
- container
-
WTException
public Folder saveFolderPath(String path, WTContainerRef container_ref) throws WTException
saveFolderPath
in interface FolderService
path
- container_ref
-
WTException
public Object[] getFolderPaths(CabinetBased[] objects) throws WTException
getCabinetBasedToPathMap(WTCollection)
getFolderPaths
in interface FolderService
objects
-
WTException
public Object[] getLocations(CabinetBased[] objects) throws WTException
getCabinetBasedToLocationMap(WTCollection)
getLocations
in interface FolderService
objects
-
WTException
public ArrayList getFolderPathsFromFolderOids(ArrayList folderOids) throws WTException
getCabinetBasedToPathMap(WTCollection)
getFolderPathsFromFolderOids
in interface FolderService
folderOids
-
WTException
public HashMap getFoldersByPath(List folderPaths) throws WTException
getFoldersByPath(WTList, List)
getFoldersByPath
in interface FolderService
folderPaths
-
WTException
public HashMap getFolders(List cabinetBasedObjects) throws WTException
getCabinetBasedToFolderMap(WTCollection)
getFolders
in interface FolderService
cabinetBasedObjects
-
WTException
public ArrayList getMemberships(List members) throws WTException
getEntryToMembershipMap(wt.fc.collections.WTCollection)
getMemberships
in interface FolderService
members
- A List of CabinetBased objects
WTException
public WTValuedMap getFolderedToFolderMap(WTCollection folderedColl) throws WTException
getCabinetBasedToFolderMap(WTCollection)
This is a multi-object equivalent of getFolder().
Supported API: false
getFolderedToFolderMap
in interface FolderService
folderedColl
- collection of Foldered objects
WTException
public WTSet getObjsInPersonalCabinets(WTCollection objsToCheck) throws WTException
This is a multi-object form of FolderHelper.inPersonalCabinet().
Supported API: false
getObjsInPersonalCabinets
in interface FolderService
objsToCheck
- objects to determine which reside in a personal cabinet
WTException
public WTCollection assignLocation(WTCollection wtColl, Folder folder) throws WTException
FolderHelper.assignLocation(WTCollection,Folder)
assignLocation
in interface FolderService
wtColl
- collection of Foldered objectsfolder
- Folder to assign objects to
WTException
public WTValuedMap assignLocations(WTValuedMap folderedItemToFolderMap) throws WTException
FolderHelper.assignLocations(WTValuedMap)
assignLocations
in interface FolderService
folderedItemToFolderMap
- map from Foldered objects to Folders to which they are to be assigned
WTException
public WTSet changeFolder(WTValuedMap targets_to_destinations) throws WTException
inheritedDomain=true
,
then the user must have create permission in the domain of the destination
folder.
changeFolder
in interface FolderService
targets_to_destinations
-
WTException
public WTKeyedMap getContainerToCabinetsMap(WTCollection containers, boolean shared_only) throws WTException
getContainerToCabinetsMap
in interface FolderService
containers
- The containers to search inshared_only
- Whether or not to limit the result to shared cabinets
WTException
public WTKeyedMap getContainerToCabinetNamesMap(WTCollection containers, boolean shared_only) throws WTException
getContainerToCabinetNamesMap
in interface FolderService
containers
- The containers to search inshared_only
- Whether or not only shared cabinet names should be included
WTException
public WTKeyedMap getParentToSubFoldersMap(WTCollection parents) throws WTException
getParentToSubFoldersMap
in interface FolderService
parents
- The parent folders to search in
WTException
public WTValuedMap getCabinetBasedToCabinetMap(WTCollection objects) throws WTException
getCabinetBasedToCabinetMap
in interface FolderService
objects
- The CabinetBased objects to find Cabinets for
WTException
- If the user doesn't have access to any of the
objects' cabinets
WTException
public WTValuedMap getCabinetBasedToFolderMap(WTCollection objects) throws WTException
getCabinetBasedToFolderMap
in interface FolderService
objects
- The CabinetBased objects to find folders for
FolderNotFoundException
- If the current user doesn't have
the required permission to any of the resulting folders
WTException
public WTValuedMap getEntryToMembershipMap(WTCollection entries) throws WTException
getEntryToMembershipMap
in interface FolderService
entries
-
WTException
public WTKeyedMap getCabinetBasedToLocationMap(WTCollection objects) throws WTException
getCabinetBasedToLocationMap
in interface FolderService
objects
- The CabinetBased objects to find locations for
FolderNotFoundException
- If the current user doesn't have
read access to any of the objects'' ancestor folders
WTException
public WTKeyedMap getCabinetBasedToPathMap(WTCollection objects) throws WTException
getCabinetBasedToPathMap
in interface FolderService
objects
- The CabinetBased objects to find paths for
FolderNotFoundException
- If the current user doesn't have
read access to any of the objects' ancestor folders
WTException
public WTList getCabinetsByName(WTList containers, List names) throws WTException
getCabinetsByName
in interface FolderService
containers
- The containers within which the corresponding name should be looked for. This may either contain one container per name or a single container that is used with all names.names
- The cabinet names to find folders for
FolderNotFoundException
- If any of the cabinets can't be
found, or if the current user doesn't have read access to any of the
cabinets
WTException
public WTList getFoldersByPath(WTList containers, List paths) throws WTException
getFoldersByPath
in interface FolderService
containers
- The containers within which the corresponding path should be looked for. This may either contain one container per path or a single container that is used with all paths.paths
- The folder paths to find folders for
FolderNotFoundException
- If any of the folders can't be found,
or if the current user doesn't have read access to any of the requested
folders -or- to any of their parent folders
WTException
public WTKeyedMap getFolderToContentsMap(WTSet folders, Class entry_class, boolean include_shared) throws WTException
getFolderToContentsMap
in interface FolderService
folders
- The folders to search inentry_class
- The class of FolderEntry to look for within the given foldersinclude_shared
- Whether or not objects that are shared into the folders are included in the result
WTException
public WTValuedMap getUserToCabinetMap(WTCollection users) throws WTException
getUserToCabinetMap
in interface FolderService
users
-
WTException
public boolean inPersonalCabinet(CabinetBased cabinetBased) throws WTException
inPersonalCabinet
in interface FolderService
cabinetBased
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |