|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.enterprise.search.server.SearchHelper
Provides helper methods for the common search component.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static String |
FC_RESOURCE
|
private static TypeIdentifier |
IBAHOLDER_TYPE_ID
|
private static TypeIdentifier |
INDEXABLE_TYPE_ID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
static String |
RWARE_OBJECT_REF
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
private static FeedbackSpec |
SPEC
|
private static TypeIdentifier |
TYPED_TYPE_ID
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
SearchHelper()
|
Method Summary | |
protected static Persistable |
_getPersistable(String reference)
Supported API: false |
protected static String |
_getSearchableTypesAsString(String componentId,
String containerRef,
boolean prioritizeUser)
Gets the list of searchable types for a given componentId and containerRef. |
protected static TypeIdentifier[] |
_getSearchableTypesFromCache(String componentId)
Given a componentId, get list of types to search against directly from cache. |
static String |
getAttributesForType(String groupName,
String type)
Retrieves a group of attributes for a given type Supported API: false |
static AttributeTypeIdentifier[] |
getAttributeTypeIdentifiers(String attributeName)
Get ATI values from SearchableAttributeCache that correspond to "attributeName" key. |
static String[] |
getContainerTypes(String componentId)
Given a componentId, e.g. |
static Iterator |
getContainerTypesAndDisplayNames(String componentId,
Locale locale)
Given a componentId, e.g. |
static Persistable |
getPersistable(String reference)
Supported API: false |
static Map |
getReferenceAttributeCache()
Supported API: false |
static String |
getRwareLibraries()
Returns RetrievalWare libraries Supported API: false |
static TypeIdentifier[] |
getSearchableTypes(String componentId,
String aContainer,
boolean prioritizeUser)
Given a componentId, e.g. |
static String |
getSearchableTypesAsString(String componentId,
String containerRef,
boolean prioritizeUser)
Gets the list of searchable types for a given componentId and containerRef. |
static TypeIdentifier[] |
getSearchableTypesFromCache(String componentId)
Given a componentId, get list of types to search against directly from cache. |
private static TypeIdentifier[] |
getSearchableTypesFromPrefs(String aContainer,
boolean prioritizeUser)
Get type list for global searches from preferences. |
static AttributeTypeIdentifier[] |
getSearchAttributeTypeIdentifiers(String attributeName,
TypeIdentifier context,
String delim)
Method for getting AttributeTypeIdentifiers for an attribute. |
static TypeIdentifier[] |
getTargetDataTypes(Enumeration searchTypes)
Get types to search against. |
static boolean |
isIndexSearch(String keyword,
TypeIdentifier[] targetDataTypes)
Supported API: false |
static boolean |
isIndexSearchPreferenceEnabled(SearchInfo searchInfo)
Returns true if the indexed global search preference is set to true. |
static boolean |
isModeledAttribute(String attributeName,
TypeIdentifier context,
String delim)
|
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(SearchHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
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 static final TypeIdentifier TYPED_TYPE_ID
private static final TypeIdentifier IBAHOLDER_TYPE_ID
private static final TypeIdentifier INDEXABLE_TYPE_ID
static final boolean SERVER
private static final String FC_RESOURCE
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String RWARE_OBJECT_REF
private static FeedbackSpec SPEC
Constructor Detail |
public SearchHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(SearchHelper 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 static TypeIdentifier[] getSearchableTypes(String componentId, String aContainer, boolean prioritizeUser) throws WTException
componentId
- The componentId being used from a search picker. This is always the first priority in getting the typesaContainer
- Container Ref that is used to retrive the types from preferencesprioritizeUser
- Set this to true if the users preferences should take precedence over the container
WTException
public static AttributeTypeIdentifier[] getAttributeTypeIdentifiers(String attributeName)
attributeName
-
public static String[] getContainerTypes(String componentId)
componentId
-
public static Iterator getContainerTypesAndDisplayNames(String componentId, Locale locale) throws WTIntrospectionException
componentId
- locale
-
WTIntrospectionException
public static AttributeTypeIdentifier[] getSearchAttributeTypeIdentifiers(String attributeName, TypeIdentifier context, String delim) throws WTException
attributeName
- context
- delim
-
WTException
public static boolean isIndexSearchPreferenceEnabled(SearchInfo searchInfo) throws WTException
searchInfo
-
WTException
private static TypeIdentifier[] getSearchableTypesFromPrefs(String aContainer, boolean prioritizeUser) throws WTException
aContainer
- prioritizeUser
-
WTException
public static TypeIdentifier[] getSearchableTypesFromCache(String componentId) throws WTException
componentId
-
WTException
protected static TypeIdentifier[] _getSearchableTypesFromCache(String componentId) throws WTException
componentId
-
WTException
public static String getSearchableTypesAsString(String componentId, String containerRef, boolean prioritizeUser) throws WTException
componentId
- containerRef
- prioritizeUser
-
WTException
protected static String _getSearchableTypesAsString(String componentId, String containerRef, boolean prioritizeUser) throws WTException
componentId
- containerRef
- prioritizeUser
-
WTException
public static String getRwareLibraries() throws WTException
WTException
public static String getAttributesForType(String groupName, String type)
groupName
- type
-
public static Map getReferenceAttributeCache()
public static boolean isIndexSearch(String keyword, TypeIdentifier[] targetDataTypes) throws WTException
keyword
- targetDataTypes
-
WTException
public static Persistable getPersistable(String reference) throws WTException
reference
-
WTException
protected static Persistable _getPersistable(String reference) throws WTException
reference
-
WTException
public static TypeIdentifier[] getTargetDataTypes(Enumeration searchTypes) throws WTException
WTException
public static boolean isModeledAttribute(String attributeName, TypeIdentifier context, String delim)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |