|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.folder.PassThruFolderCache
An implementation of FolderCache that always goes to the database
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
PassThruFolderCache.Singleton
|
Nested classes inherited from class wt.folder.FolderCache |
FolderCache.NamesToFoldersKey |
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static String |
OWNER_ID
|
private static String |
RESOURCE
|
Constructor Summary | |
private |
PassThruFolderCache()
|
Method Summary | |
private static void |
addCabinetToResultBuffer(FolderCache.NamesToFoldersKey key,
Map containers_to_indices,
List result_buffer,
Cabinet cabinet)
Utility method that adds the Cabinet with the given key to result_buffer, removing it from to_query |
WTList |
getCabinetsByName(WTList ordered_containers,
List ordered_cabinet_names,
boolean read_only)
Get the cabinets in the given parent containers with the given names. |
(package private) List |
getCabinetsByName(WTList ordered_containers,
List ordered_cabinet_names,
boolean read_only,
boolean throw_fnfe)
Utility version of getCabinetsByName that can either throw FolderNotFoundExceptions or leave those slots null |
WTValuedMap |
getChildToParentMap(WTCollection children,
boolean read_only)
Get the parents of the given child folders |
WTKeyedMap |
getContainerToCabinetMap(WTCollection containers,
boolean shared_only,
boolean read_only)
Get all of the cabinets that are in the given containers |
(package private) static PassThruFolderCache |
getInstance()
|
WTKeyedMap |
getParentToSubFoldersMap(WTCollection parents,
boolean read_only)
Get all the subfolders of the given parent folders |
WTList |
getSubFoldersByName(WTList ordered_parents,
List ordered_child_names,
boolean read_only)
Get the children of the given parents with the given names. |
WTValuedMap |
getUserToCabinetMap(WTCollection users,
boolean read_only)
Get the personal cabinets for the given |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
private static final String OWNER_ID
Constructor Detail |
private PassThruFolderCache()
Method Detail |
static PassThruFolderCache getInstance()
public WTValuedMap getChildToParentMap(WTCollection children, boolean read_only) throws WTException
getChildToParentMap
in interface FolderCache
children
- A collection of child folders. The implementation will not
inflate the childrenread_only
- Not applicable
WTException
public WTList getSubFoldersByName(WTList ordered_parents, List ordered_child_names, boolean read_only) throws WTException
getSubFoldersByName
in interface FolderCache
ordered_parents
- A list of the parent folders to query in. This may either have
as many elements as names
, or
have a single element used with each nameordered_child_names
- A list of child names to find subfolders for within
the corresponding parent folderread_only
- Not applicable
FolderNotFoundException
- If any of the subfolders couldn't be found
WTException
public WTList getCabinetsByName(WTList ordered_containers, List ordered_cabinet_names, boolean read_only) throws WTException
getCabinetsByName
in interface FolderCache
ordered_containers
- A list of the containers to query in. This may either have
as many elements as names
, or
have a single element used with each name.ordered_cabinet_names
- A list of cabinet names to find cabinets for within
the corresponding containerread_only
- Not applicable
FolderNotFoundException
- If any of the cabinets couldn't be found
WTException
List getCabinetsByName(WTList ordered_containers, List ordered_cabinet_names, boolean read_only, boolean throw_fnfe) throws WTException
ordered_containers
- ordered_cabinet_names
- read_only
-
WTException
private static void addCabinetToResultBuffer(FolderCache.NamesToFoldersKey key, Map containers_to_indices, List result_buffer, Cabinet cabinet) throws WTException
key
- The key for the cabinetcontainers_to_indices
- Mapping of NamesToFoldersKey objects to either a single Integer result index
or a List of result indicesresult_buffer
- The list to add the cabinet tocabinet
- The cabinet
WTException
public WTValuedMap getUserToCabinetMap(WTCollection users, boolean read_only) throws WTException
getUserToCabinetMap
in interface FolderCache
users
- The users to find personal cabinets forread_only
- Not applicable
WTException
public WTKeyedMap getContainerToCabinetMap(WTCollection containers, boolean shared_only, boolean read_only) throws WTException
getContainerToCabinetMap
in interface FolderCache
containers
- The containers to search inshared_only
- Whether or not to only return shared cabinetsread_only
- Not applicable
WTException
public WTKeyedMap getParentToSubFoldersMap(WTCollection parents, boolean read_only) throws WTException
getParentToSubFoldersMap
in interface FolderCache
parents
- The parent folders to find children forread_only
- Not applicable
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |