public class SearchFacadeClient extends AbstractSearchFacadeClient
This class provides common methods that this and other utility class to the Search facade can use. This class also provides a set of convenient Java API to represent particular Search operations. This set of Java API also include APIs for Web based requests to transform the name value pair request into the appropriate request documents.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
SearchFacadeClient()
Creates an instance of the client to communicate with the Search facade.
|
SearchFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Search facade.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> | convertToList(java.lang.String astrTerms)
Converts a String containing a comma delimited list of terms into a List of terms.
|
protected java.util.List<java.lang.String> | convertToList(java.lang.String astrTerms, java.lang.String astrDelimiter)
Converts a String containing a delimited list of terms into a List of terms.
|
protected java.util.List<java.lang.String> | convertToLowerCase(java.util.List<java.lang.String> strList)
Converts all terms to lower case for case insensitive search
|
java.lang.String | getLandingPage(java.lang.String astrSearchTerm, java.lang.String astrLanguageId, java.lang.String astrStoreId)
This method returns a list of landing pages for the specified search term based on the specified language and the store path in the context.
|
java.util.Map<java.lang.String,java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>> | getSearchTermAssociationsToPublish(boolean bCaseInsensitive)
This method returns a map of Search Term Associations to be published for the store.
|
java.util.List<java.lang.String> | getSynonyms(java.lang.String astrSearchTerm, java.lang.String astrLanguageId)
This method returns a list of synonyms for the specified search term based on the specified language and the store path in the context.
|
java.util.Set<java.lang.String> | getSynonymsWithReplacement(java.lang.String searchTerm, java.lang.String languageIds)
Get synonyms by search term under specific languages.
|
java.util.Set<java.lang.String> | getSynonymsWithReplacement(java.lang.String searchTerm, java.lang.String languageIds, java.lang.Integer threshold)
Get synonyms by search term under specific languages.
|
protected void | removeDuplicates(java.util.List<java.lang.String> alstSearchTerms)
Remove duplicate entries from list.
|
protected java.util.List<java.lang.String> | removeWhitespace(java.util.List<java.lang.String> strList)
Removes leading and trailing whitespace.
|
public static final java.lang.String COPYRIGHT
public SearchFacadeClient()
public SearchFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
public java.util.List<java.lang.String> getSynonyms(java.lang.String astrSearchTerm, java.lang.String astrLanguageId) throws SearchTermAssociationException
This method returns a list of synonyms for the specified search term based on the specified language and the store path in the context. The comparison to see if synonyms are defined for the specified search term is case-insensitive.
public java.lang.String getLandingPage(java.lang.String astrSearchTerm, java.lang.String astrLanguageId, java.lang.String astrStoreId) throws SearchTermAssociationException
This method returns a list of landing pages for the specified search term based on the specified language and the store path in the context.
public java.util.Map<java.lang.String,java.util.Map<java.util.List<java.lang.String>,java.util.List<java.lang.String>>> getSearchTermAssociationsToPublish(boolean bCaseInsensitive) throws SearchTermAssociationException
protected java.util.List<java.lang.String> convertToList(java.lang.String astrTerms, java.lang.String astrDelimiter)
protected void removeDuplicates(java.util.List<java.lang.String> alstSearchTerms)
protected java.util.List<java.lang.String> convertToList(java.lang.String astrTerms)
protected java.util.List<java.lang.String> removeWhitespace(java.util.List<java.lang.String> strList)
protected java.util.List<java.lang.String> convertToLowerCase(java.util.List<java.lang.String> strList)
public java.util.Set<java.lang.String> getSynonymsWithReplacement(java.lang.String searchTerm, java.lang.String languageIds) throws SearchTermAssociationException
Note that not only the STA synonyms 'Synonym' will be returned, the STA replacement, 'AlsoSearchFor' and 'SearchForInstead', are also handled and merged with STA synonyms as a result set by this method.
public java.util.Set<java.lang.String> getSynonymsWithReplacement(java.lang.String searchTerm, java.lang.String languageIds, java.lang.Integer threshold) throws SearchTermAssociationException
Note that not only the STA synonyms 'Synonym' will be returned, the STA replacement, 'AlsoSearchFor' and 'SearchForInstead', are also handled and merged with STA synonyms as a result set by this method.