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, setPluginInfogetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSearchField, getValue, isMultiple, isSortableprotected UserHelper _userHelper
protected JSONUtils _jsonUtils
public AbstractUserSystemProperty()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractSystemPropertyServiceExceptionpublic MetadataType getType()
SystemPropertypublic String getRenderer()
SystemPropertygetRenderer in interface SystemPropertygetRenderer in class AbstractSystemPropertypublic String getConverter()
SystemPropertygetConverter in interface SystemPropertygetConverter in class AbstractSystemPropertypublic Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SystemPropertyQuery 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)
SystemPropertygetSortValue in interface SystemPropertygetSortValue in class AbstractSystemPropertycontent - the result content.protected void setUserInfos(Map<String,Object> infos, UserIdentity user)
infos - The map to fill with the user infos.user - The user.