|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.folder.StandardFolderServiceSvr
Use the newStandardFolderServiceSvr
static factory method(s),
not the StandardFolderServiceSvr
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static String |
RESOURCE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardFolderServiceSvr()
|
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. |
String |
getConceptualClassname()
Deprecated. |
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 |
static StandardFolderServiceSvr |
newStandardFolderServiceSvr()
Default factory for the class. |
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 |
private void |
setFolderPropertiesOnMember(FolderEntry entry,
Folder destination)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
Constructor Detail |
public StandardFolderServiceSvr()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardFolderServiceSvr newStandardFolderServiceSvr() throws WTException
WTException
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.
removeFromFolder
in interface FolderServiceSvr
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.
setFolderChange
in interface FolderServiceSvr
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.
setCabinetChange
in interface FolderServiceSvr
member
- cabinet
-
WTException
FolderException
public Cabinet getCabinetReadOnly(String name) throws WTException, FolderNotFoundException
#getCabinetsByNameReadOnly(WTList,List,AccessPermission)
getCabinetReadOnly
in interface FolderServiceSvr
name
-
WTException
FolderNotFoundException
public Cabinet getCabinetReadOnly(String name, WTContainerRef container) throws WTException, FolderNotFoundException
#getCabinetsByNameReadOnly(WTList,List,AccessPermission)
getCabinetReadOnly
in interface FolderServiceSvr
name
- container
-
WTException
FolderNotFoundException
public Folder getFolderReadOnly(String path) throws WTException, FolderNotFoundException
#getFoldersByPathReadOnly(WTList,List,AccessPermission)
getFolderReadOnly
in interface FolderServiceSvr
path
-
WTException
FolderNotFoundException
public Folder getFolderReadOnly(String path, WTContainerRef container) throws WTException, FolderNotFoundException
#getFoldersByPathReadOnly(WTList,List,AccessPermission)
getFolderReadOnly
in interface FolderServiceSvr
path
- container
-
WTException
FolderNotFoundException
public QueryResult findCabinetsReadOnly(AccessPermission permission, boolean shared_cabinets_only) throws WTException
getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission)
findCabinetsReadOnly
in interface FolderServiceSvr
permission
- shared_cabinets_only
-
WTException
Cabinet
,
AccessPermission
public QueryResult findCabinetsReadOnly(AccessPermission permission, boolean shared_cabinets_only, WTContainerRef container) throws WTException
getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission)
findCabinetsReadOnly
in interface FolderServiceSvr
permission
- shared_cabinets_only
- container
-
WTException
public QueryResult findSubFoldersReadOnly(Folder folder, AccessPermission permission) throws WTException
getParentToSubFoldersMapReadOnly(WTCollection,AccessPermission)
findSubFoldersReadOnly
in interface FolderServiceSvr
folder
- permission
-
WTException
SubFolder
public QueryResult findCabinetsReadOnly(String permission, boolean shared_cabinets_only) throws WTException
getContainerToCabinetsMapReadOnly(WTCollection,boolean,AccessPermission)
findCabinetsReadOnly
in interface FolderServiceSvr
permission
- shared_cabinets_only
-
WTException
Cabinet
,
AccessPermission
public QueryResult findSubFoldersReadOnly(Folder folder, String permission) throws WTException
getParentToSubFoldersMapReadOnly(WTCollection,AccessPermission)
findSubFoldersReadOnly
in interface FolderServiceSvr
folder
- permission
-
WTException
SubFolder
public Folder getFolder(ObjectIdentifier folder_oid) throws WTException, FolderNotFoundException
Folder
, given itsObjectIdentifier
.
getFolder
in interface FolderServiceSvr
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
.
getParentFolder
in interface FolderServiceSvr
child_oid
-
WTException
FolderNotFoundException
public void prepareForCheckin(WTValuedMap checkedout_to_working_copies) throws WTException
prepareForCheckin
in interface FolderServiceSvr
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
getCabinetsByNameReadOnly
in interface FolderServiceSvr
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
getFoldersByPathReadOnly
in interface FolderServiceSvr
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
getContainerToCabinetsMapReadOnly
in interface FolderServiceSvr
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
getParentToSubFoldersMapReadOnly
in interface FolderServiceSvr
parents
- The parent folders to search inpermission
-
WTException
public WTValuedMap getSubFolderToParentMapReadOnly(WTCollection subfolders, AccessPermission permission) throws WTException
getSubFolderToParentMapReadOnly
in interface FolderServiceSvr
subfolders
- permission
-
FolderNotFoundException
- If the current user doesn't have
the required permission to any of the resulting folders
WTException
private void setFolderPropertiesOnMember(FolderEntry entry, Folder destination) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |