public abstract class AbstractUserSystemProperty extends AbstractSystemProperty
SystemProperty
.SystemProperty.EnumeratorDefinition
Modifier and Type | Field and Description |
---|---|
protected JSONUtils |
_jsonUtils
The JSON utils
|
protected UserHelper |
_userHelper
The user helper
|
_description, _i18nUtils, _id, _label, _pluginName
Constructor and Description |
---|
AbstractUserSystemProperty() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
_getSolrFieldName()
Get the Solr field name
|
String |
getConverter()
Get the property column converter.
|
Query |
getQuery(Object value,
Query.Operator operator,
String language,
Map<String,Object> contextualParameters)
Get the
Query associated to the given value. |
String |
getRenderer()
Get the renderer.
|
Object |
getSortValue(Content content)
Get the sort value represented by this field in the given result content.
|
MetadataType |
getType()
Get the property type.
|
void |
service(ServiceManager manager) |
protected void |
setUserInfos(Map<String,Object> infos,
UserIdentity user)
Set the user info in the given map.
|
_parseI18nizableText, configure, getColumnWidth, getContentTypeId, getDescription, getEnumeratorDefinition, getFullValue, getId, getLabel, getSchemaDefinitions, getWidget, getWidgetParameters, index, isDisplayable, isSearchable, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, setPluginInfo
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSearchField, getValue, isMultiple, isSortable
protected UserHelper _userHelper
protected JSONUtils _jsonUtils
public AbstractUserSystemProperty()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractSystemProperty
ServiceException
public MetadataType getType()
SystemProperty
public String getRenderer()
SystemProperty
getRenderer
in interface SystemProperty
getRenderer
in class AbstractSystemProperty
public String getConverter()
SystemProperty
getConverter
in interface SystemProperty
getConverter
in class AbstractSystemProperty
public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SystemProperty
Query
associated to the given value.value
- the user-submitted value for this property.operator
- In advanced search mode, the operator chosen by the user. null
to use the criterion-defined operator (simple search mode).language
- The current search language.contextualParameters
- the search contextual parameters.Query
associated to the given value.protected abstract String _getSolrFieldName()
public Object getSortValue(Content content)
SystemProperty
getSortValue
in interface SystemProperty
getSortValue
in class AbstractSystemProperty
content
- the result content.protected void setUserInfos(Map<String,Object> infos, UserIdentity user)
infos
- The map to fill with the user infos.user
- The user.