public class SavedSearch extends SelectItem implements ISavedSearch, Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
fDeletable |
protected String |
fDescription |
protected String |
fDisplayName |
protected String |
fID |
protected boolean |
fPublic |
protected String |
fQueryStateString |
protected boolean |
fUpdateable |
Constructor and Description |
---|
SavedSearch() |
SavedSearch(Map<String,String> stateMap) |
Modifier and Type | Method and Description |
---|---|
ISavedSearch |
cloneSavedSearch()
Clone this saved search
|
String |
getDescription()
Gets the description of the saved search
|
String |
getDisplayName()
Gets the display name of the saved search
|
String |
getIcon()
Returns item's encoded icon URL.
|
String |
getID()
Gets the ID of the saved search
|
String |
getLabel()
Returns item's display name, typically used in the UI to diplay this item
|
String |
getQueryStateString()
Gets the query state string
|
String |
getStyle()
Returns item's inline CSS style.
|
Object |
getValue()
Returns item's value, used for data binding, typically a unique identifier.
|
boolean |
isDeletable()
Returns whether the saved search is deletable by the current user
|
boolean |
isDisabled()
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 search
|
boolean |
isUpdateable()
Returns whether the save search is updateable by the current user
|
void |
populateFromStateMap(Map<String,String> stateMap) |
void |
setDeletable(boolean deletable) |
void |
setDescription(String description)
Sets the description of the saved search
|
void |
setDisplayName(String displayName)
Sets the display name of the saved search
|
void |
setID(String id)
Sets the ID of the saved search
|
void |
setPublic(boolean newVal)
Sets whether is saved search is a public (shared) saved search
|
void |
setQueryStateString(String queryStateString)
Sets the query state string
|
void |
setUpdateable(boolean updateable) |
String |
toString() |
isNoSelectionOption, setDisabled, setEscape, setLabel, setNoSelectionOption, setValue
protected String fID
protected String fDisplayName
protected String fDescription
protected String fQueryStateString
protected boolean fDeletable
protected boolean fUpdateable
protected boolean fPublic
public String getID()
ISavedSearch
getID
in interface ISavedSearch
public void setID(String id)
ISavedSearch
setID
in interface ISavedSearch
id
- saved search IDpublic String getDisplayName()
ISavedSearch
getDisplayName
in interface ISavedSearch
public void setDisplayName(String displayName)
ISavedSearch
setDisplayName
in interface ISavedSearch
displayName
- saved search display namepublic String getDescription()
ISavedSearch
getDescription
in interface ISelectItemProvider
getDescription
in interface ISavedSearch
getDescription
in class SelectItem
public void setDescription(String description)
ISavedSearch
setDescription
in interface ISavedSearch
setDescription
in class SelectItem
description
- saved search descriptionpublic String getQueryStateString()
ISavedSearch
getQueryStateString
in interface ISavedSearch
public void setQueryStateString(String queryStateString)
ISavedSearch
setQueryStateString
in interface ISavedSearch
queryStateString
- query state stringpublic boolean isDeletable()
ISavedSearch
isDeletable
in interface ISavedSearch
public void setDeletable(boolean deletable)
deletable
- The deletable to set.public boolean isUpdateable()
ISavedSearch
isUpdateable
in interface ISavedSearch
public boolean isPublic()
ISavedSearch
isPublic
in interface ISavedSearch
public void setPublic(boolean newVal)
ISavedSearch
setPublic
in interface ISavedSearch
newVal
- true for a public search, false for a private searchpublic void setUpdateable(boolean updateable)
updateable
- The updateable to set.public ISavedSearch cloneSavedSearch()
ISavedSearch
cloneSavedSearch
in interface ISavedSearch
public Object getValue()
ISelectItemProvider
getValue
in interface ISelectItemProvider
getValue
in class SelectItem
public String getLabel()
ISelectItemProvider
getLabel
in interface ISelectItemProvider
getLabel
in class SelectItem
public boolean isDisabled()
ISelectItemProvider
isDisabled
in interface ISelectItemProvider
isDisabled
in class SelectItem
public String getStyle()
ISelectItemProvider
getStyle
in interface ISelectItemProvider
public String getIcon()
ISelectItemProvider
getIcon
in interface ISelectItemProvider
public boolean isEscape()
ISelectItemProvider
isEscape
in interface ISelectItemProvider
isEscape
in class SelectItem