Plumtree Portal UI  
 

SearchSettingCollection Members

SearchSettingCollection overview

Public Static Fields

GADGET_SEARCH_TYPE_BANNERSEARCH 
GADGET_SEARCH_TYPE_NONCOMMUNITYFOLDER 
PT_SEARCHSETTING_ABSTYPES_S 
PT_SEARCHSETTING_ACCESS_LEVEL_S 
PT_SEARCHSETTING_ADMINFOLDERS_S 
PT_SEARCHSETTING_APPS_S 
PT_SEARCHSETTING_ASSOC_COLLAB_PROJECT_ID_S 
PT_SEARCHSETTING_ASSOC_PORTLET_ID_S 
PT_SEARCHSETTING_BESTBETS_S 
PT_SEARCHSETTING_COMMUNITY_ID_S 
PT_SEARCHSETTING_DDFOLDERS_S 
PT_SEARCHSETTING_GADGET_ALIGNMENT_S 
PT_SEARCHSETTING_GADGET_FIELDS_S 
PT_SEARCHSETTING_GADGET_SEARCH_TYPE_S 
PT_SEARCHSETTING_GADGET_TYPE_S 
PT_SEARCHSETTING_GROUPBYPROP_S 
PT_SEARCHSETTING_INCLUDE_SUBFOLDERS_S 
PT_SEARCHSETTING_INITIALSEARCHSTRING_S 
PT_SEARCHSETTING_KWIC_S 
PT_SEARCHSETTING_LANGUAGE_S String equivalents of PT_SEARCH_SETTING settings
PT_SEARCHSETTING_LIMITBYLOCALE_S 
PT_SEARCHSETTING_MAXRESULTS_S 
PT_SEARCHSETTING_OBJIDS_S 
PT_SEARCHSETTING_OBJTYPES_S 
PT_SEARCHSETTING_ORDERBY_S 
PT_SEARCHSETTING_QUERYTYPE_S 
PT_SEARCHSETTING_SKIPRESULTS_S 
PT_SEARCHSETTING_SPELLCHECK_S 
PT_SEARCHSETTING_THESAURUS_S 
PT_SEARCHSETTING_USER_IS_GUEST_S 

Public Static Methods

encodeRequestSettings Encode all settings in the provided IPTSearchRequest, ready for URL encoding, into the provided XPHashtable. The map keys are Strings (e.g. PT_SEARCHSETTING_OBJTYPES_S) prepended with the provided prefix. The values are String[]-ified setting values. inclusions and exclusions are IXPCollections of Integers. If the inclusions collection is non-null, only settings contained within it are included in the returned map. Any settings contained in the exclusions collection are omitted from the returned map.
GetPageContextSettings 
getSettingIdFromString Static helper method to map a string (i.e. a URL parameter) to a PT_SEARCH_SETTING value.
getStringFromSettingId Static helper method to map a PT_SEARCH_SETTING to the URL parameter used to encode it
parseURLString Parse the URL-ified String[] setting value and return an Object that can be passed to add() (and from there into IPTSearchRequest.SetSettings()).
stringifySettingValue Return a stringified version of v that can be used in an URL

Public Instance Constructors

SearchSettingCollection Constructor Initializes a new instance of the SearchSettingCollection class.

Public Instance Methods

addOverloaded. Add a setting to the map (for use only within the search package)
dump Helper method for debugging
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetSettingIDs Get an enumeration of the settings stored in the collection
GetSettingValue Get an enumeration of the settings stored in the collection
GetSize Get the size of the map
GetType (inherited from Object)Gets the Type of the current instance.
IsSimpleCommunityRestriction Helper method that indicates whether this collection simply restricts a search to a community. Used by the UI to replace the "Search with Same Restrictions" message with "Search in Same Community" when possible.
IsSimpleFolderRestriction Helper method that indicates whether this collection simply restricts a search to a folder (possibly including subfolders). Used by the UI to replace the "Search with Same Restrictions" message with "Search in Same Folder" when possible.
merge Merge another batch of settings into ours
ToString (inherited from Object)Returns a String that represents the current Object.
updateRequest Update an IPTSearchRequest with our settings

Protected Instance Fields

_settings Map from PT_SEARCH_SETTING to Object, contains things we need to set on an IPTSearchRequest object later

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SearchSettingCollection Class | com.plumtree.portaluiinfrastructure.search Namespace