Class SavedSearch
java.lang.Object
javax.faces.model.SelectItem
com.webmethods.caf.faces.search.saved.SavedSearch
- All Implemented Interfaces:
ISelectItemProvider
,ISavedSearch
,Serializable
,Cloneable
Default implementation of ISavedSearch
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClone this saved searchGets the description of the saved searchGets the display name of the saved searchgetIcon()
Returns item's encoded icon URL.getID()
Gets the ID of the saved searchgetLabel()
Returns item's display name, typically used in the UI to diplay this itemGets the query state stringgetStyle()
Returns item's inline CSS style.getValue()
Returns item's value, used for data binding, typically a unique identifier.boolean
Returns whether the saved search is deletable by the current userboolean
Returns true if item is disabled.boolean
isEscape()
Returns true if item label should be escaped.boolean
isPublic()
Gets whether this is a public (shared) saved searchboolean
Returns whether the save search is updateable by the current uservoid
populateFromStateMap
(Map<String, String> stateMap) void
setDeletable
(boolean deletable) void
setDescription
(String description) Sets the description of the saved searchvoid
setDisplayName
(String displayName) Sets the display name of the saved searchvoid
Sets the ID of the saved searchvoid
setPublic
(boolean newVal) Sets whether is saved search is a public (shared) saved searchvoid
setQueryStateString
(String queryStateString) Sets the query state stringvoid
setUpdateable
(boolean updateable) toString()
Methods inherited from class javax.faces.model.SelectItem
isNoSelectionOption, setDisabled, setEscape, setLabel, setNoSelectionOption, setValue
-
Field Details
-
fID
-
fDisplayName
-
fDescription
-
fQueryStateString
-
fDeletable
protected boolean fDeletable -
fUpdateable
protected boolean fUpdateable -
fPublic
protected boolean fPublic
-
-
Constructor Details
-
SavedSearch
public SavedSearch() -
SavedSearch
-
-
Method Details
-
populateFromStateMap
-
getID
Description copied from interface:ISavedSearch
Gets the ID of the saved search- Specified by:
getID
in interfaceISavedSearch
- Returns:
- saved search ID
-
setID
Description copied from interface:ISavedSearch
Sets the ID of the saved search- Specified by:
setID
in interfaceISavedSearch
- Parameters:
id
- saved search ID
-
getDisplayName
Description copied from interface:ISavedSearch
Gets the display name of the saved search- Specified by:
getDisplayName
in interfaceISavedSearch
- Returns:
- saved search display name
-
setDisplayName
Description copied from interface:ISavedSearch
Sets the display name of the saved search- Specified by:
setDisplayName
in interfaceISavedSearch
- Parameters:
displayName
- saved search display name
-
getDescription
Description copied from interface:ISavedSearch
Gets the description of the saved search- Specified by:
getDescription
in interfaceISavedSearch
- Specified by:
getDescription
in interfaceISelectItemProvider
- Overrides:
getDescription
in classSelectItem
- Returns:
- saved search description
-
setDescription
Description copied from interface:ISavedSearch
Sets the description of the saved search- Specified by:
setDescription
in interfaceISavedSearch
- Overrides:
setDescription
in classSelectItem
- Parameters:
description
- saved search description
-
getQueryStateString
Description copied from interface:ISavedSearch
Gets the query state string- Specified by:
getQueryStateString
in interfaceISavedSearch
- Returns:
- search query state string
-
setQueryStateString
Description copied from interface:ISavedSearch
Sets the query state string- Specified by:
setQueryStateString
in interfaceISavedSearch
- Parameters:
queryStateString
- query state string
-
isDeletable
public boolean isDeletable()Description copied from interface:ISavedSearch
Returns whether the saved search is deletable by the current user- Specified by:
isDeletable
in interfaceISavedSearch
- Returns:
- true if it is deletable, false otherwise
-
setDeletable
public void setDeletable(boolean deletable) - Parameters:
deletable
- The deletable to set.
-
isUpdateable
public boolean isUpdateable()Description copied from interface:ISavedSearch
Returns whether the save search is updateable by the current user- Specified by:
isUpdateable
in interfaceISavedSearch
- Returns:
- true if it is updateable, false otherwise
-
isPublic
public boolean isPublic()Description copied from interface:ISavedSearch
Gets whether this is a public (shared) saved search- Specified by:
isPublic
in interfaceISavedSearch
- Returns:
- true for a public search, false for a private search
-
setPublic
public void setPublic(boolean newVal) Description copied from interface:ISavedSearch
Sets whether is saved search is a public (shared) saved search- Specified by:
setPublic
in interfaceISavedSearch
- Parameters:
newVal
- true for a public search, false for a private search
-
setUpdateable
public void setUpdateable(boolean updateable) - Parameters:
updateable
- The updateable to set.
-
toString
-
cloneSavedSearch
Description copied from interface:ISavedSearch
Clone this saved search- Specified by:
cloneSavedSearch
in interfaceISavedSearch
- Returns:
- clone of this saved search
-
getValue
Description copied from interface:ISelectItemProvider
Returns item's value, used for data binding, typically a unique identifier.- Specified by:
getValue
in interfaceISelectItemProvider
- Overrides:
getValue
in classSelectItem
- Returns:
- item's value
-
getLabel
Description copied from interface:ISelectItemProvider
Returns item's display name, typically used in the UI to diplay this item- Specified by:
getLabel
in interfaceISelectItemProvider
- Overrides:
getLabel
in classSelectItem
- Returns:
- item's label
-
isDisabled
public boolean isDisabled()Description copied from interface:ISelectItemProvider
Returns true if item is disabled.- Specified by:
isDisabled
in interfaceISelectItemProvider
- Overrides:
isDisabled
in classSelectItem
- Returns:
- disabled status
-
getStyle
Description copied from interface:ISelectItemProvider
Returns item's inline CSS style.- Specified by:
getStyle
in interfaceISelectItemProvider
- Returns:
- items's CSS style
-
getIcon
Description copied from interface:ISelectItemProvider
Returns item's encoded icon URL.- Specified by:
getIcon
in interfaceISelectItemProvider
- Returns:
- icon url
-
isEscape
public boolean isEscape()Description copied from interface:ISelectItemProvider
Returns true if item label should be escaped.- Specified by:
isEscape
in interfaceISelectItemProvider
- Overrides:
isEscape
in classSelectItem
- Returns:
- true or false
-