|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Field Summary | |
static char |
FOLDER_ROOT
Defines the root character for the start of a folder path. |
static char |
FOLDER_SEPARATOR
Defines the separator character between entries in a folder path. |
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: true |
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: true |
Folder |
getFolder(String path)
Deprecated. Replaced by getFoldersByPath(WTList, List) |
Folder |
getFolder(String path,
WTContainerRef container)
Supported API: true |
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) |
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. |
Field Detail |
public static final char FOLDER_SEPARATOR
public static final char FOLDER_ROOT
Method Detail |
public Shortcut addShortcut(Folder folder, CabinetBased target) throws WTException
Foldered
object to the specified
Folder
.
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.
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.
name
- domain_ref
- description
- container_ref
-
WTException
public Cabinet createCabinet(String name, String domain_path, String description, String owner, boolean is_personal) throws WTException
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
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
name
- administrative_domain
- description
- owner
-
WTException
AdministrativeDomain
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createCabinet(String name, AdministrativeDomain administrative_domain, String description, String owner) throws WTException
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
name
- administrative_domain
- description
- owner
-
WTException
AdministrativeDomain
,
DomainAdministered
,
Ownable
,
WTPrincipal
public Cabinet createPersonalCabinet(String name) throws WTException
createPersonalCabinet(WTPrincipal)
name
-
WTException
WTUser
public Cabinet createPersonalCabinet(WTPrincipal principal) throws WTException
principal
-
WTException
public SubFolder createSubFolder(String path) throws WTException
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
.
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
Vector
of Cabinet
names
(Strings
)
WTException
- if a low level error occurspublic Vector getCabinetNames(WTContainerRef container) throws WTException
#getContainerToCabinetNamesMap(WTCollection)
container
-
WTException
public QueryResult findFolderContents(Folder folder) throws WTException
FolderEntry
in the given Folder
.
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
.
folder
- entry_class
-
WTException
findFolderContents(Folder[],Class)
public QueryResult findFolderContents(Folder[] folders) throws WTException
#getFolderToContentsMap(WTSet,Class)
FolderEntry
in the given set
of Folders
.
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:
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.
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.
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.
path
- container_refs
- entry_class
-
WTException
findFolderContents(Folder[],Class)
public QueryResult findShortcuts(CabinetBased target) throws WTException
Shortcut
s to the specified object.
target
-
WTException
Shortcut
public 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)
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
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
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
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
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
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
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
path
- container
-
WTException
getFoldersByPath(java.util.List)
public FolderEntry getFolderEntry(String path) throws WTException
path
-
WTException
public FolderEntry getFolderEntry(String path, WTContainerRef container) throws WTException
path
- container
-
WTException
public String getLocation(CabinetBased object) throws WTException
CabinetBased object
as a String
folder path
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
principal
-
WTException
FolderNotFoundException
#getUserToCabinetsMap
public QueryResult findCabinets(String permission) throws WTException
#getContainerToCabinetsMap(WTCollection)
permission
-
WTException
Cabinet
,
AccessPermission
public Foldered changeFolder(Foldered member, Folder newFolder) throws WTException
changeFolder(WTValuedMap)
member
- newFolder
-
WTException
public Folder getFolder(Foldered member) throws WTException
getCabinetBasedToFolderMap(WTCollection)
member
-
WTException
public String getFolderPath(FolderEntry entry) throws WTException
getCabinetBasedToPathMap(WTCollection)
entry
-
WTException
public String getFolderPath(Cabinet cabinet) throws WTException
getCabinetBasedToPathMap(WTCollection)
cabinet
-
WTException
public void removeShortcut(Shortcut shortcut) throws WTException
PersistenceManager.delete(Persistable)
shortcut
-
WTException
public SubFolder createSubFolder(String path, AdminDomainRef domainRef) throws WTException
createSubFolder(String,AdminDomainRef,WTContainerRef)
Supported API: true
path
- domainRef
-
WTException
SubFolder
public SubFolder createSubFolder(String path, AdminDomainRef domain_ref, WTContainerRef container_ref) throws WTException
AdministrativeDomain
and WTContainer
must already exist.
path
- domain_ref
- container_ref
-
WTException
public SubFolder createSubFolder(String path, WTContainerRef container_ref) throws WTException
WTContainer
must already exist.
path
- container_ref
-
WTException
public Cabinet createPersonalCabinet(WTPrincipal principal, AdminDomainRef domain_ref) throws WTException
principal
- domain_ref
-
WTException
public Cabinet createPersonalCabinet(String name, AdminDomainRef domain_ref, String description) throws WTException
createPersonalCabinet(WTPrincipal,
AdminDomainRef)
name
- domain_ref
- description
-
WTException
public Cabinet updateCabinet(Cabinet cabinet, String name, AdminDomainRef domain_ref) throws WTException, WTPropertyVetoException
cabinet
- name
- domain_ref
-
WTException
WTPropertyVetoException
Cabinet
public SubFolder updateSubFolder(SubFolder folder, String name, AdminDomainRef domain_ref, boolean inherits) throws WTException, WTPropertyVetoException
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
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
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)
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
.
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)
permission
- shared_cabinets_only
- container
-
WTException
public Folder saveFolderPath(String path, WTContainerRef container_ref) throws WTException
path
- container_ref
-
WTException
public Object[] getFolderPaths(CabinetBased[] objects) throws WTException
getCabinetBasedToPathMap(WTCollection)
objects
-
WTException
public Object[] getLocations(CabinetBased[] objects) throws WTException
getCabinetBasedToLocationMap(WTCollection)
objects
-
WTException
public ArrayList getFolderPathsFromFolderOids(ArrayList folderOids) throws WTException
getCabinetBasedToPathMap(WTCollection)
folderOids
-
WTException
public HashMap getFoldersByPath(List folderPaths) throws WTException
getFoldersByPath(WTList, List)
folderPaths
-
WTException
public HashMap getFolders(List cabinetBasedObjects) throws WTException
getCabinetBasedToFolderMap(WTCollection)
cabinetBasedObjects
-
WTException
public ArrayList getMemberships(List members) throws WTException
getEntryToMembershipMap(wt.fc.collections.WTCollection)
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
folderedColl
- collection of Foldered objects
WTException
public 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
public WTCollection assignLocation(WTCollection wtColl, Folder folder) throws WTException
FolderHelper.assignLocation(WTCollection,Folder)
wtColl
- collection of Foldered objectsfolder
- Folder to assign objects to
WTException
public WTValuedMap assignLocations(WTValuedMap folderedItemToFolderMap) throws WTException
FolderHelper.assignLocations(WTValuedMap)
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.
targets_to_destinations
-
WTException
public WTKeyedMap getContainerToCabinetsMap(WTCollection containers, boolean shared_only) throws WTException
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
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
parents
- The parent folders to search in
WTException
public WTValuedMap getCabinetBasedToCabinetMap(WTCollection objects) throws WTException
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
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
entries
-
WTException
public WTKeyedMap getCabinetBasedToLocationMap(WTCollection objects) throws WTException
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
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
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
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
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
users
-
WTException
public boolean inPersonalCabinet(CabinetBased cabinetBased) throws WTException
cabinetBased
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |