|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.folderexplorer.WindchillExplorerTaskLogic
Class WindchillExplorerTaskLogic
provides static
helper methods used by the WindchillExplorerFrame
. These methods
encapsulate the server-side processing logic.
Supported API: false
WindchillExplorerFrame
Nested Class Summary | |
static class |
WindchillExplorerTaskLogic.HashMapServer
Deprecated. |
Field Summary | |
private static com.objectspace.jgl.HashMap |
classesHashmap
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private static boolean |
DEBUG
Deprecated. |
private static String |
MENU_RESOURCES
Deprecated. |
private static ResourceBundle |
menuResources
Deprecated. |
private static String |
nameSeparator
Deprecated. |
Constructor Summary | |
WindchillExplorerTaskLogic()
Deprecated. |
Method Summary | |
static void |
delete(CabinetBased folder_entry)
Deprecated. Method delete deletes the given CabinetBased
object from the database. |
private static String |
extractClassName(String string)
Deprecated. |
private static String |
extractDisplayName(String string)
Deprecated. Returns a displayable string representation of the class associated with the given string. |
private static Vector |
getClassStrings()
Deprecated. Returns a Vector of Strings in which each String specifies a class to be included in or excluded from the classes that can be created in the Windchill Explorer. |
static com.objectspace.jgl.HashMap |
getCreateableClasses()
Deprecated. Returns a HashMap containing the classes of objects that can be created in the Windchill Explorer. |
static String |
getDisplayName(String class_name)
Deprecated. Given a String classname, return a more human-readable
representation of that classname. |
private static void |
initializeHashmap()
Deprecated. |
private static void |
initResources()
Deprecated. |
static boolean |
isUpdateAllowed(Cabinet cabinet)
Deprecated. |
static boolean |
isUpdateAllowed(CabinetBased entry)
Deprecated. Method isUpdateAllowed determines if the given
CabinetBased object is available for updating by the
current user. |
private static void |
processResourceEntries()
Deprecated. Uses the entries in the FolderExplorerMenuRB ResourceBundle to update the HashMap entries retrieved using Introspection. |
static CabinetBased |
refresh(CabinetBased object)
Deprecated. Return a refreshed copy of the given CabinetBased object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static com.objectspace.jgl.HashMap classesHashmap
private static String MENU_RESOURCES
private static ResourceBundle menuResources
private static String nameSeparator
private static final String CLASSNAME
private static boolean DEBUG
Constructor Detail |
public WindchillExplorerTaskLogic()
Method Detail |
public static boolean isUpdateAllowed(CabinetBased entry) throws LockException, WTException
isUpdateAllowed
determines if the given
CabinetBased
object is available for updating by the
current user. Availability for updating is checked based upon
the following constraints:
Workable
interface), then the object must either be
the working copy, or must be owned by the current user.
entry
- the CabinetBased
entry for which the
ability to be updated by the current user is checked.
true
, the current user is allowed to update
the given object
LockException
WTException
CabinetBased
,
Workable
public static boolean isUpdateAllowed(Cabinet cabinet) throws WTException
WTException
public static void delete(CabinetBased folder_entry) throws WTException
delete
deletes the given CabinetBased
object from the database.
folder_entry
- the CabinetBased
object to be deleted
WTException
public static String getDisplayName(String class_name)
String
classname, return a more human-readable
representation of that classname.
Uses WTIntrospector to get a class info object for the class name,
then uses class_info.getDisplayName() to obtain the localized class name.
public static com.objectspace.jgl.HashMap getCreateableClasses() throws WTIntrospectionException
WTIntrospectionException
- if an error occurs getting
the createable classesprivate static void initializeHashmap() throws WTIntrospectionException
WTIntrospectionException
private static Vector getClassStrings()
private static void initResources()
private static void processResourceEntries()
private static String extractDisplayName(String string)
string
- the string for which a display name is returned
private static String extractClassName(String string)
public static CabinetBased refresh(CabinetBased object) throws ObjectNoLongerExistsException, WTException
object
- the CabinetBased to be refreshed
ObjectNoLongerExistsException
- if the given object
has been deleted from the database
WTException
- if an error occurs retrieving a
refreshed copy of the object from the database.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |