|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.folder.FolderHelper
public final class FolderHelper
This class provides access to the Windchill foldering capability. The
FolderHelper contains direct static methods which provide access to information
which is stored within all Foldered and CabinetResident objects. It
also provides access to the remote interface of the FolderService itself.
Supported API: true
Extendable: false
FolderService,
Foldered,
FolderEntry,
CabinetBased| Field Summary | |
|---|---|
static FolderService |
service
Supported API: true |
| Method Summary | |
|---|---|
static void |
assignLocation(FolderEntry new_entry,
Folder location)
Assign the initial location of the foldered object. |
static void |
assignLocation(FolderEntry new_entry,
String location)
Deprecated. Replaced by assignLocations(WTValuedMap) |
static void |
assignLocation(WTCollection entries,
Folder folder)
Assigns a collection of FolderEntry objects to a given Folder. |
static void |
assignLocations(WTValuedMap entry_to_folder_map)
Assigns each FolderEntry key in the input map to the corresponding Folder map value. |
static WTValuedMap |
getCabinetBasedToCabinetMap(WTCollection objects)
Get the cabinets for the given set of CabinetBased objects. |
static WTValuedMap |
getCabinetBasedToFolderMap(WTCollection objects)
Get the parent folders for the given collection of CabinetBased objects. |
static WTKeyedMap |
getCabinetBasedToLocationMap(WTCollection objects)
Get the locations for the given CabinetBased objects. |
static WTKeyedMap |
getCabinetBasedToPathMap(WTCollection objects)
Get the paths for the given CabinetBased objects. |
static String |
getFolderPath(CabinetBased object)
calculates the folder path of the specified entry Supported API: true |
static String |
getLocation(CabinetBased object)
calculates the location of a CabinetBased object where
location is defined as the the folder path of the Folder
that the object is part of
Supported API: true |
static WTSet |
getObjsInPersonalCabinets(WTCollection objsToCheck)
Given an input WTCollection of CabinetBased objects, this routine returns the subset which reside in personal cabinets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FolderService service
| Method Detail |
|---|
public static void assignLocation(FolderEntry new_entry,
Folder location)
throws WTException
new_entry - location -
WTExceptionassignLocations(wt.fc.collections.WTValuedMap)
public static void assignLocation(FolderEntry new_entry,
String location)
throws WTException,
FolderNotFoundException
assignLocations(WTValuedMap)
new_entry - location -
WTException
FolderNotFoundException
public static String getFolderPath(CabinetBased object)
throws WTException
object -
null if the object has not been assigned to a
Folder yet
WTException - if a low level error occursgetCabinetBasedToPathMap(wt.fc.collections.WTCollection)
public static String getLocation(CabinetBased object)
throws WTException
CabinetBased object where
location is defined as the the folder path of the Folder
that the object is part of
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 static void assignLocation(WTCollection entries,
Folder folder)
throws WTException
Supported API: true
entries - folder - Folder to assign objects to
WTExceptionassignLocations(WTValuedMap)
public static void assignLocations(WTValuedMap entry_to_folder_map)
throws WTException
entry_to_folder_map - map from FolderEntry objects to the Folders to which they are to be assigned
WTException
public static WTValuedMap getCabinetBasedToFolderMap(WTCollection objects)
throws WTException
If any of the objects are Foldered, then the implementation will first
check to see if their FolderingInfos contain a cached reference to
their parent folder, and use the cached instance as the return value.
So in some cases this API will not require a trip to the server.
Supported API: true
objects - The CabinetBased objects to find folders for
FolderNotFoundException
WTException
public static WTKeyedMap getCabinetBasedToLocationMap(WTCollection objects)
throws WTException
If any of the objects are Foldered, then the implementation will first
check to see if their FolderingInfos contain a cached location, and
use the cached location as the return value. So in some cases this
API will not require a trip to the server.
Supported API: true
objects - The CabinetBased objects to find locations for
FolderNotFoundException
WTException
public static WTKeyedMap getCabinetBasedToPathMap(WTCollection objects)
throws WTException
If any of the objects are Foldered, then the implementation will first
check to see if their FolderingInfos contain a cached reference to
their path, and use the cached path as the return value. So in some
cases this API will not require a trip to the server.
Supported API: true
objects - The CabinetBased objects to find paths for
FolderNotFoundException
WTException
public static WTValuedMap getCabinetBasedToCabinetMap(WTCollection objects)
throws WTException
This implementation will not inflate the resutling CabinetRefernece
objects. To ensure the references are inflated, use FolderService.getCabinetBasedToCabinetMap(wt.fc.collections.WTCollection)
Supported API: true
objects -
WTException
public static WTSet getObjsInPersonalCabinets(WTCollection objsToCheck)
throws WTException
This implementation will minimize client-server traffic by checking for inflated cabinet references on the input collection, and using the cached information if available.
This is a multi-object form of inPersonalCabinet(CabinetBased).
Supported API: true
objsToCheck - objects to determine which reside in a personal cabinet
WTExceptionFolderService.getObjsInPersonalCabinets(WTCollection)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||