com.ptc.windchill.enterprise.search.server
Class SavedSearchHelper

java.lang.Object
  extended bycom.ptc.windchill.enterprise.search.server.SavedSearchHelper
All Implemented Interfaces:
RemoteAccess

public final class SavedSearchHelper
extends Object
implements RemoteAccess


Field Summary
static String ADVANCED_SEARCH
           
static String CACHE
           
private static String CLASSNAME
           
static String CREATE
           
static String CUSTOMIZE
           
private static String FC_RESOURCE
           
private static String objectID
           
static String prefKey
           
static String prefNode
           
static String PROE_CUSTOM_SEARCH
           
static String PROE_SIMPLE_SEARCH
           
private static String queryName
           
private static Vector savedSearchCache
           
static String SEARCH_TOKEN
           
(package private) static boolean SERVER
           
static String SIMPLE_SEARCH
           
private static String value
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
SavedSearchHelper()
           
 
Method Summary
static Vector _getPrincipalRole()
          Returns a vector of role elements including: 1) User's roleId (String): 'admin' for container administrator, 'siteadmin' for site administrator and 'user' for a non-admin user.
static String[] _getSavedSearchesAsList(Vector savedSearchCache, String owningClient)
           
static Vector _populateSavedSearchCache()
           
static Vector executeSavedSearchInProE(String objectID)
           
static Vector getPrincipalRole()
          Uses a remote method server call.
static HashMap getSavedSearchElements(Group group)
           
static String getSavedSearches(Vector savedSearchCache, String owningClient)
           
static String[] getSavedSearchesAsList(Vector savedSearchCache, String owningClient)
           
static Vector populateSavedSearchCache()
           
static String savedSearchURL(String action, String owningClient)
           
static void updateSavedSearchCache(javax.servlet.http.HttpSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private static String value

objectID

private static String objectID

queryName

private static String queryName

savedSearchCache

private static Vector savedSearchCache

CLASSNAME

private static final String CLASSNAME

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

prefNode

public static final String prefNode
See Also:
Constant Field Values

prefKey

public static final String prefKey
See Also:
Constant Field Values

SEARCH_TOKEN

public static final String SEARCH_TOKEN
See Also:
Constant Field Values

CACHE

public static final String CACHE
See Also:
Constant Field Values

ADVANCED_SEARCH

public static final String ADVANCED_SEARCH
See Also:
Constant Field Values

SIMPLE_SEARCH

public static final String SIMPLE_SEARCH
See Also:
Constant Field Values

PROE_CUSTOM_SEARCH

public static final String PROE_CUSTOM_SEARCH
See Also:
Constant Field Values

PROE_SIMPLE_SEARCH

public static final String PROE_SIMPLE_SEARCH
See Also:
Constant Field Values

CREATE

public static final String CREATE
See Also:
Constant Field Values

CUSTOMIZE

public static final String CUSTOMIZE
See Also:
Constant Field Values
Constructor Detail

SavedSearchHelper

public SavedSearchHelper()
Method Detail

populateSavedSearchCache

public static Vector populateSavedSearchCache()
                                       throws WTException
Throws:
WTException

_populateSavedSearchCache

public static Vector _populateSavedSearchCache()
                                        throws WTException
Throws:
WTException

updateSavedSearchCache

public static void updateSavedSearchCache(javax.servlet.http.HttpSession session)
                                   throws WTException
Throws:
WTException

getSavedSearchesAsList

public static String[] getSavedSearchesAsList(Vector savedSearchCache,
                                              String owningClient)
                                       throws WTException
Throws:
WTException

_getSavedSearchesAsList

public static String[] _getSavedSearchesAsList(Vector savedSearchCache,
                                               String owningClient)
                                        throws WTException
Throws:
WTException

getSavedSearches

public static String getSavedSearches(Vector savedSearchCache,
                                      String owningClient)
                               throws WTException
Throws:
WTException

executeSavedSearchInProE

public static Vector executeSavedSearchInProE(String objectID)
                                       throws WTException
Throws:
WTException

savedSearchURL

public static String savedSearchURL(String action,
                                    String owningClient)
                             throws WTException
Throws:
WTException

getSavedSearchElements

public static HashMap getSavedSearchElements(Group group)
                                      throws WTException
Throws:
WTException

getPrincipalRole

public static Vector getPrincipalRole()
                               throws WTException
Uses a remote method server call. Returns a vector of role elements including: 1) User's roleId (String): 'admin' for container administrator, 'siteadmin' for site administrator and 'user' for a non-admin user. 2) ArrayList of containers the user is an administrator of. This should be used by non-DCA clients using saved search.

Throws:
WTException

_getPrincipalRole

public static Vector _getPrincipalRole()
                                throws WTException
Returns a vector of role elements including: 1) User's roleId (String): 'admin' for container administrator, 'siteadmin' for site administrator and 'user' for a non-admin user. 2) ArrayList of containers the user is an administrator of. This should be used by non-DCA clients using saved search.

Throws:
WTException