|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Foldering methods that are not intended for general client usage generally
because they implement lower level functionality compared to methods
on the FolderService, or don't enforce transactional integrity on their
own.
Supported API: false
Extendable: false
Method Summary | |
QueryResult |
findCabinetsReadOnly(AccessPermission permission,
boolean shared_cabinets_only)
Deprecated. Replaced by getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission) |
QueryResult |
findCabinetsReadOnly(AccessPermission permission,
boolean shared_cabinets_only,
WTContainerRef container)
Deprecated. Replaced by getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission) |
QueryResult |
findCabinetsReadOnly(String permission,
boolean shared_cabinets_only)
Deprecated. Replaced by getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission) |
QueryResult |
findSubFoldersReadOnly(Folder folder,
AccessPermission permission)
Deprecated. Replaced by getParentToSubFoldersMapReadOnly(WTCollection,AccessPermission) |
QueryResult |
findSubFoldersReadOnly(Folder folder,
String permission)
Deprecated. Replaced by getParentToSubFoldersMapReadOnly(WTCollection,AccessPermission) |
Cabinet |
getCabinetReadOnly(String name)
Deprecated. Replaced by #getCabinetsByNameReadOnly(WTList,List,AccessPermission) |
Cabinet |
getCabinetReadOnly(String name,
WTContainerRef container)
Deprecated. Replaced by #getCabinetsByNameReadOnly(WTList,List,AccessPermission) |
WTList |
getCabinetsByNameReadOnly(WTList containers,
List names)
Get the cabinets that correspond to the given name/container pairs. |
WTKeyedMap |
getContainerToCabinetsMapReadOnly(WTCollection containers,
boolean shared_only,
AccessPermission permission)
Get a mapping of the given containers to their accessible cabinets Supported API: false |
Folder |
getFolder(ObjectIdentifier folder_oid)
Deprecated. Use the collection's based refresh and inflate APIs to get a folder from a folder oid |
Folder |
getFolderReadOnly(String path)
Deprecated. Replaced by #getFoldersByPathReadOnly(WTList,List,AccessPermission) |
Folder |
getFolderReadOnly(String path,
WTContainerRef container)
Deprecated. Replaced by #getFoldersByPathReadOnly(WTList,List,AccessPermission) |
WTList |
getFoldersByPathReadOnly(WTList containers,
List paths)
Get the folders that correspond to the given path/container pairs. |
Folder |
getParentFolder(ObjectIdentifier child_oid)
Deprecated. Replaced by getSubFolderToParentMapReadOnly(WTCollection,AccessPermission) |
WTKeyedMap |
getParentToSubFoldersMapReadOnly(WTCollection parents,
AccessPermission permission)
Get a mapping of parent folders to WTSets of their subfolders Supported API: false |
WTValuedMap |
getSubFolderToParentMapReadOnly(WTCollection subfolders,
AccessPermission permission)
Get the parent folders for the given collection of SubFolders Supported API: false |
void |
prepareForCheckin(WTValuedMap checkedout_to_working_copies)
Cleans up the folder membership for working copies that will now asusme the folder membership of their corresponding checked out copy. |
void |
removeFromFolder(Foldered member,
Folder folder)
Deprecated. This API is unsafe ans should no longer be used |
void |
setCabinetChange(CabinetMember member,
Cabinet cabinet)
Within the context of a caller's transaction, change any foldering related information inside a CabinetMember object so
that it will be part of the supplied Cabinet . |
void |
setFolderChange(Foldered member,
Folder folder)
Deprecated. This API is unsafe and should no longer be used |
Method Detail |
public void removeFromFolder(Foldered member, Folder folder) throws WTException, FolderException
Foldered
object from a folder. The FolderMembership
association
between the Foldered
and the Folder
is deleted
from the database. It does NOT delete the Foldered
object
from the database. The caller is expected to ensure that the Foldered
object still resides in a Folder
and is not left dangling.
member
- folder
-
WTException
FolderException
public void setFolderChange(Foldered member, Folder folder) throws WTException, FolderException
Foldered
object so
that it will be part of the supplied Folder
. No FolderMembership
link manipulations are performed -- that is the responsibility of
the caller. The caller is expected to ensure that the Foldered
object is persisted in the database, this API will not persist the
change.
member
- folder
-
WTException
FolderException
public void setCabinetChange(CabinetMember member, Cabinet cabinet) throws WTException, FolderException
CabinetMember
object so
that it will be part of the supplied Cabinet
. The caller
is expected to ensure that the CabinetMember
object is
persisted in the database, this API will not persist the change.
member
- cabinet
-
WTException
FolderException
public Cabinet getCabinetReadOnly(String name) throws WTException, FolderNotFoundException
#getCabinetsByNameReadOnly(WTList,List,AccessPermission)
name
-
WTException
FolderNotFoundException
public Cabinet getCabinetReadOnly(String name, WTContainerRef container) throws WTException, FolderNotFoundException
#getCabinetsByNameReadOnly(WTList,List,AccessPermission)
name
- container
-
WTException
FolderNotFoundException
public Folder getFolderReadOnly(String path) throws WTException, FolderNotFoundException
#getFoldersByPathReadOnly(WTList,List,AccessPermission)
path
-
WTException
FolderNotFoundException
public Folder getFolderReadOnly(String path, WTContainerRef container) throws WTException, FolderNotFoundException
#getFoldersByPathReadOnly(WTList,List,AccessPermission)
path
- container
-
WTException
FolderNotFoundException
public QueryResult findCabinetsReadOnly(AccessPermission permission, boolean shared_cabinets_only) throws WTException
getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission)
permission
- shared_cabinets_only
-
WTException
Cabinet
,
AccessPermission
public QueryResult findCabinetsReadOnly(AccessPermission permission, boolean shared_cabinets_only, WTContainerRef container) throws WTException
getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission)
permission
- shared_cabinets_only
- container
-
WTException
public QueryResult findSubFoldersReadOnly(Folder folder, AccessPermission permission) throws WTException
getParentToSubFoldersMapReadOnly(WTCollection,AccessPermission)
folder
- permission
-
WTException
SubFolder
public QueryResult findCabinetsReadOnly(String permission, boolean shared_cabinets_only) throws WTException
getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission)
permission
- shared_cabinets_only
-
WTException
Cabinet
,
AccessPermission
public QueryResult findSubFoldersReadOnly(Folder folder, String permission) throws WTException
getParentToSubFoldersMapReadOnly(WTCollection,AccessPermission)
folder
- permission
-
WTException
SubFolder
public Folder getFolder(ObjectIdentifier folder_oid) throws WTException, FolderNotFoundException
Folder
, given itsObjectIdentifier
.
folder_oid
-
WTException
FolderNotFoundException
public Folder getParentFolder(ObjectIdentifier child_oid) throws WTException, FolderNotFoundException
getSubFolderToParentMapReadOnly(WTCollection,AccessPermission)
ObjectIdentifier
of a child Folder
,
return its parent Folder
.
child_oid
-
WTException
FolderNotFoundException
public void prepareForCheckin(WTValuedMap checkedout_to_working_copies) throws WTException
checkedout_to_working_copies
- A mapping of checked out copies to their corresponding working copies
WTException
public WTList getCabinetsByNameReadOnly(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
WTException
public WTList getFoldersByPathReadOnly(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
WTException
public WTKeyedMap getContainerToCabinetsMapReadOnly(WTCollection containers, boolean shared_only, AccessPermission permission) throws WTException
containers
- The containers to search inshared_only
- Whether or not to limit the result to shared cabinetspermission
-
WTException
public WTKeyedMap getParentToSubFoldersMapReadOnly(WTCollection parents, AccessPermission permission) throws WTException
parents
- The parent folders to search inpermission
-
WTException
public WTValuedMap getSubFolderToParentMapReadOnly(WTCollection subfolders, AccessPermission permission) throws WTException
subfolders
- permission
-
FolderNotFoundException
- If the current user doesn't have
the required permission to any of the resulting folders
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |