|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.picker.PickerUtilities
com.ptc.windchill.cadx.common.picker.PickerBrowserUtilities
Supported API: false
Extendable: false
Field Summary | |
static String |
ALL_CABINETS
This is the value used to indentify all cabinets. |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
LAST_LOCATION_PREF_KEY
This is the last location preference system key used by the picker. |
private String |
lastLocation
|
static String |
MY_WORKSPACES
This is the value used to indentify all my workspaces (ie the users workspaces). |
protected static String |
NAME_ATTRIBUTE
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
PICKER_BROWSER_TABLE_NAME
This is the Search Prferences action value. |
private static String |
RESOURCE
|
static String |
SAVE_LAST_LOCATION
This is the save last location key used by the picker. |
(package private) static long |
serialVersionUID
|
private static String |
UI_RESOURCE
|
Constructor Summary | |
PickerBrowserUtilities()
|
Method Summary | |
protected QuerySpec |
appendNavigateCriteria(QuerySpec qs)
|
QueryResult |
filterResults(QueryResult results)
Filter based on state. |
protected QueryResult |
filterShortcutResults(QueryResult results,
Folder folder)
|
QueryResult |
findCabinets()
Supported API: false |
QueryResult |
findContents(Folder folder)
Supported API: false |
QueryResult |
findContexts()
|
QueryResult |
findFolders(Folder folder)
Returns subfolders of the specified folder. |
QueryResult |
findObjects(Folder folder)
Return non-Folder contents of the specified folder. |
QueryResult |
findPDMLinkContexts()
|
QueryResult |
findPersistables(Folder folder)
Return non-Folder and non-Shortcut folder contents. |
QueryResult |
findProducts()
Supported API: false |
QueryResult |
findRepositories()
Supported API: false |
QueryResult |
findShortcuts(Folder folder)
Return shortcuts to objects which are of the types specified configured valid types to display. |
QueryResult |
findWorkspaceContents(EPMWorkspace workspace)
Returns the contents of the specified workspace.The list of objects is filtered based on the value returned by getQuery(). |
QueryResult |
findWorkspaces()
Supported API: false |
void |
generateFolderTrail(Object folder,
String blank)
Generates HTML which represents the path of the object. |
private void |
generateMyWorkspacesTrail(String blank,
Locale locale)
|
private void |
generateRootPath(String blank)
|
private void |
generateWorkspacePath(EPMWorkspace workspace,
String blank,
Locale locale)
|
protected QueryResult |
getContentsInFolder(Folder folder,
Vector classes,
boolean includeShares)
|
Folder |
getFolder(String oid)
Returns the Folder object identified by the oid. |
private String |
getFolderPathSeparator()
|
private String |
getLabelAndRootPath(String blank)
|
String |
getLastLocation()
Gets the value of the attribute: lastLocation; This attribute is persisted a preference. |
protected String |
getLastLocationPrefKey()
|
protected String |
getLastLocationPrefValue()
|
private String |
getMyWorkspacesLink(Locale locale)
|
protected Vector |
getOutputAttributes(int query_type)
Returns the output attributes for the specified query type from the configured picker search attribute list. |
static String |
getPickerBrowserNavigateLink(Persistable persistable,
URLFactory factory)
Returns the Picker Browser specific Link (href). |
static String |
getPickerBrowserNavigateURL(Persistable pesistable,
URLFactory factory)
Returns the Picker Browser specific URL. |
private String |
getPickerBrowserRootURL(String root)
|
protected String |
getPrefRoot()
|
String |
getSaveLastLocation()
Gets the property value from the form processor. |
protected QueryResult |
getShortcutsInFolder(Folder folder)
|
protected Vector |
getSortList(int query_type)
Returns the sort list for the specified query type from the configured picker search attribute list. |
protected EPMWorkspace |
getWorkspace(Folder workspaceFolder)
If running in Wildfire mode and if the folder is a workspace folder then the EPMWorkspace object which has the WORKSPACE_ROLE is returned. |
EPMWorkspace |
getWorkspace(String oid)
Returns the EPMWorkspace object identified by the oid. |
private String |
getWorkspaceLink(EPMWorkspace workspace)
|
boolean |
isContextAlias(String alias)
Returns true if the alias value is: |
boolean |
isSaveLastLocation()
Returns true if the SAVE_LAST_LOCATION property value is set to true. |
protected boolean |
isWildfireEnabled()
|
void |
listLocations()
Generates list of "look in" locations. |
protected QueryResult |
navigate(Persistable object,
Class cls,
String role)
Navigates based on specified parameters. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PickerBrowserUtilities thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setLastLocation(String a_LastLocation)
Sets the value of the attribute: lastLocation; This attribute is persisted a preference. |
protected void |
setLastLocationPrefValue(String lastLocation)
|
void |
showResults(String tableName,
QueryResult qr)
Generates an HTMLTable with the rows corresponding to the query results. |
void |
showResults(String tableName,
SortedEnumeration folders,
SortedEnumeration results)
Generates an HTMLTable with the rows corresponding to the folders and results enumerations. |
private Vector |
switchNameWithFirstColumnAttribute(Vector attrs)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
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 String lastLocation
public static final String ALL_CABINETS
public static final String PICKER_BROWSER_TABLE_NAME
public static final String MY_WORKSPACES
public static final String LAST_LOCATION_PREF_KEY
public static final String SAVE_LAST_LOCATION
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String UI_RESOURCE
protected static String NAME_ATTRIBUTE
Constructor Detail |
public PickerBrowserUtilities()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class PickerUtilities
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class PickerUtilities
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PickerBrowserUtilities thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public String getLastLocation()
public void setLastLocation(String a_LastLocation)
a_LastLocation
- public QueryResult findCabinets() throws WTException
WTException
public QueryResult findFolders(Folder folder) throws WTException
folder
-
WTException
public QueryResult findObjects(Folder folder) throws WTException
folder
-
WTException
public QueryResult findContents(Folder folder) throws WTException
folder
-
WTException
public void generateFolderTrail(Object folder, String blank) throws WTException
folder
- The folder to generate the HTML trail.blank
- The HTML representation of the blank space to be used in the trail.
WTException
public static String getPickerBrowserNavigateURL(Persistable pesistable, URLFactory factory) throws WTException
pesistable
- factory
-
WTException
public static String getPickerBrowserNavigateLink(Persistable persistable, URLFactory factory) throws WTException
persistable
- factory
-
WTException
protected Vector getOutputAttributes(int query_type) throws WTException
getOutputAttributes
in class PickerUtilities
query_type
-
WTException
public void showResults(String tableName, SortedEnumeration folders, SortedEnumeration results) throws WTException
tableName
- folders
- The folders to be displayed in the Picker Browser.results
- The non-older objects to be displayed in the Picker Browser.
WTException
public Folder getFolder(String oid) throws WTException
oid
-
WTException
public void listLocations() throws WTException
WTException
public QueryResult findWorkspaceContents(EPMWorkspace workspace) throws WTException
workspace
-
WTException
public EPMWorkspace getWorkspace(String oid) throws WTException
oid
-
WTException
protected Vector getSortList(int query_type) throws WTException
getSortList
in class PickerUtilities
query_type
-
WTException
public QueryResult findWorkspaces() throws WTException
WTException
public String getSaveLastLocation()
public boolean isSaveLastLocation()
public QueryResult findProducts() throws WTException
WTException
public QueryResult findRepositories() throws WTException
WTException
public boolean isContextAlias(String alias)
PickerBrowserUtilities.ALL_CABINETS, PickerBrowserUtilities.MY_WORKSPACES,
FolderUtilities.PDMLINK_PRODUCTS_ALIAS_VALUE, or FolderUtilities.PDMLINK_REPOSITORIES_ALIAS_VALUE.
Supported API: false
alias
-
public void showResults(String tableName, QueryResult qr) throws WTException
showResults
in class PickerUtilities
tableName
- qr
- The folders to be displayed in the Picker Browser.
WTException
public QueryResult findPersistables(Folder folder) throws WTException
folder
-
WTException
public QueryResult findShortcuts(Folder folder) throws WTException
folder
-
WTException
public QueryResult findContexts()
public QueryResult findPDMLinkContexts()
protected QueryResult filterShortcutResults(QueryResult results, Folder folder) throws WTException
WTException
protected QueryResult getShortcutsInFolder(Folder folder) throws WTException
WTException
protected QueryResult getContentsInFolder(Folder folder, Vector classes, boolean includeShares) throws WTException
WTException
private void generateRootPath(String blank)
private String getLabelAndRootPath(String blank)
private String getPickerBrowserRootURL(String root)
private String getFolderPathSeparator()
protected QueryResult navigate(Persistable object, Class cls, String role) throws WTException
WTException
private Vector switchNameWithFirstColumnAttribute(Vector attrs) throws WTException
WTException
protected EPMWorkspace getWorkspace(Folder workspaceFolder)
protected boolean isWildfireEnabled()
protected String getLastLocationPrefValue()
protected void setLastLocationPrefValue(String lastLocation) throws WTException
WTException
protected String getPrefRoot()
protected String getLastLocationPrefKey()
public QueryResult filterResults(QueryResult results)
filterResults
in class PickerUtilities
protected QuerySpec appendNavigateCriteria(QuerySpec qs) throws WTException
WTException
private void generateWorkspacePath(EPMWorkspace workspace, String blank, Locale locale) throws WTException
WTException
private void generateMyWorkspacesTrail(String blank, Locale locale) throws WTException
WTException
private String getMyWorkspacesLink(Locale locale) throws WTException
WTException
private String getWorkspaceLink(EPMWorkspace workspace) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |