public class ContentPrivacySearchUICriterion extends AbstractCustomSearchUICriterion implements Contextualizable
SearchUICriterion
representing whether to take content
access restrictions ("content privacy") into account.Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The context.
|
protected JSONUtils |
_jsonUtils
The JSON utils.
|
protected String |
_siteCriterionId
The site criterion ID.
|
protected SiteManager |
_siteManager
The site manager.
|
_cTypeEP, _resolver, _userManager, _userPopulationDAO
Constructor and Description |
---|
ContentPrivacySearchUICriterion() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
String |
getFieldId()
Get the field identifier.
|
Query.Operator |
getOperator()
Get the criterion Operator.
|
Query |
getQuery(Object value,
Query.Operator customOperator,
Map<String,Object> allValues,
String language,
Map<String,Object> contextualParameters)
Get the
Query associated to the given value. |
MetadataType |
getType()
Retrieves the type.
|
boolean |
isMultiple()
Determines if the column value is multiple
|
boolean |
isSortable()
Test if the SearchCriterion is sortable.
|
void |
service(ServiceManager manager) |
configureId
_configureI18nizableText, _initializeValidator, configureLabelsAndGroup, configureUIProperties, configureValues, getChangeClassName, getContentTypeId, getFacetLabel, getGroup, getInitClassName, getMetadataDefinition, getSearchField, getSubmitClassName, isHidden, setChangeClassName, setContentTypeId, setGroup, setHidden, setInitClassName, setMultiple, setSubmitClassName
getDefaultValue, getDescription, getEnumerator, getId, getLabel, getPluginName, getValidator, getWidget, getWidgetParameters, setDefaultValue, setDescription, setEnumerator, setId, setLabel, setPluginName, setType, setValidator, setWidget, setWidgetParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultValue, getDescription, getLabel, getValidator, getWidget, getWidgetParameters
getId, getQuery, isFacetable, isFacetable, isSortable
getEnumerator
protected SiteManager _siteManager
protected JSONUtils _jsonUtils
protected String _siteCriterionId
public ContentPrivacySearchUICriterion()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSearchUICriterion
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractSearchUICriterion
ConfigurationException
public MetadataType getType()
Parameter
getType
in interface Field
getType
in class Parameter<MetadataType>
public boolean isMultiple()
AbstractSearchUICriterion
isMultiple
in interface Field
isMultiple
in class AbstractSearchUICriterion
true
if the value is multiplepublic boolean isSortable()
SearchCriterion
isSortable
in interface SearchCriterion
true
if the criterion is sortable, false otherwise.public Query.Operator getOperator()
SearchCriterion
getOperator
in interface SearchCriterion
public String getFieldId()
SearchUICriterion
getFieldId
in interface SearchUICriterion
public Query getQuery(Object value, Query.Operator customOperator, Map<String,Object> allValues, String language, Map<String,Object> contextualParameters)
SearchCriterion
Query
associated to the given value.getQuery
in interface SearchCriterion
value
- The user-submitted value (or the default value if not set) for this criterion.customOperator
- In advanced search mode, the operator chosen by the user. null
to use the criterion-defined operator (simple search mode).allValues
- All the user-submitted values.language
- The current search language.contextualParameters
- the search contextual parameters.Query
associated to the given value.