|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.endeca.portal.data.SelectiveRefinementsManager
public class SelectiveRefinementsManager
SelectiveRefinementsManager is a singleton that manages the selective refinements lists for every data source (MDEXState) in the application, ensuring that each list is initialized exactly once for the life of the application (or until its entry is cleared).
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
static SelectiveRefinementsManager |
getInstance()
|
protected java.util.List<java.lang.String> |
getNonNullBaseAttributes(javax.portlet.PortletRequest request,
MDEXState mdexState)
Returns a list of attributes that have values in the data source's base view |
java.util.List<java.lang.String> |
getSelectiveRefinements(java.lang.String mdexStateId)
The selective refinements list for the specified data source |
void |
initSelectiveRefinements(javax.portlet.PortletRequest request,
MDEXState mdexState)
Initialize mdexState selective refinements list given the data source configuration. |
boolean |
isSelectiveRefinementsEnabled(MDEXState mdexState)
Determines if selective refinements is enabled for the specified data source. |
void |
removeSelectiveRefinements(java.lang.String mdexStateId)
Removes selective refinements list for the specified data source, effectively clearing its cached values so that it will be re-initialized. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger logger
Method Detail |
---|
public static SelectiveRefinementsManager getInstance()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void initSelectiveRefinements(javax.portlet.PortletRequest request, MDEXState mdexState) throws DataSourceException
config
- Selective Refinements configuration from the data source
DataSourceException
public java.util.List<java.lang.String> getSelectiveRefinements(java.lang.String mdexStateId)
mdexStateId
- data source id
public void removeSelectiveRefinements(java.lang.String mdexStateId)
mdexStateId
- data source idpublic boolean isSelectiveRefinementsEnabled(MDEXState mdexState)
mdexState
- data source
protected java.util.List<java.lang.String> getNonNullBaseAttributes(javax.portlet.PortletRequest request, MDEXState mdexState) throws DataSourceException
mdexState
- the data sourcerequest
- the portlet request
DataSourceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |