public class SiteSystemProperty extends AbstractSystemProperty implements Contextualizable
SystemProperty
which represents the site of a Content.SystemProperty.EnumeratorDefinition
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private JSONUtils |
_jsonUtils |
_description, _i18nUtils, _id, _label, _pluginName
Constructor and Description |
---|
SiteSystemProperty() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_parseSite(Object value) |
void |
contextualize(Context context) |
String |
getConverter()
Get the property column converter.
|
SystemProperty.EnumeratorDefinition |
getEnumeratorDefinition(Collection<String> contentTypes,
Configuration configuration)
Get the definition of an enumerator.
|
Object |
getFullValue(Content content)
Get the value represented by this field in the given result content.
|
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.
|
SearchField |
getSearchField()
Get the
SearchField representing this system property. |
Object |
getSortValue(Content content)
Get the sort value represented by this field in the given result content.
|
MetadataType |
getType()
Get the property type.
|
Object |
getValue(Content content)
Get the value represented by this field in the given result content.
|
String |
getWidget()
Get the default widget to use when rendering this property as a criterion.
|
boolean |
isMultiple()
Get the multiple status of the property.
|
boolean |
isSortable()
Get if the property can be sorted on.
|
void |
service(ServiceManager manager) |
_parseI18nizableText, configure, getColumnWidth, getContentTypeId, getDescription, getId, getLabel, getSchemaDefinitions, getWidgetParameters, index, isDisplayable, isSearchable, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, setPluginInfo
getLogger, setLogger
private JSONUtils _jsonUtils
public SiteSystemProperty()
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 AbstractSystemProperty
ServiceException
public MetadataType getType()
SystemProperty
getType
in interface SystemProperty
public boolean isMultiple()
SystemProperty
isMultiple
in interface SystemProperty
true
if the property can have multiple values, false
otherwise.public boolean isSortable()
SystemProperty
isSortable
in interface SystemProperty
true
if the property can be sorted on, false
otherwise.public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SystemProperty
Query
associated to the given value.getQuery
in interface SystemProperty
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.private Map<String,Object> _parseSite(Object value)
public String getWidget()
SystemProperty
getWidget
in interface SystemProperty
getWidget
in class AbstractSystemProperty
null
if no specific widget is necessary.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 SearchField getSearchField()
SystemProperty
SearchField
representing this system property.getSearchField
in interface SystemProperty
public Object getValue(Content content)
SystemProperty
getValue
in interface SystemProperty
content
- the result content.public Object getFullValue(Content content)
SystemProperty
getFullValue
in interface SystemProperty
getFullValue
in class AbstractSystemProperty
content
- the result content.public Object getSortValue(Content content)
SystemProperty
getSortValue
in interface SystemProperty
getSortValue
in class AbstractSystemProperty
content
- the result content.public SystemProperty.EnumeratorDefinition getEnumeratorDefinition(Collection<String> contentTypes, Configuration configuration)
SystemProperty
getEnumeratorDefinition
in interface SystemProperty
getEnumeratorDefinition
in class AbstractSystemProperty
contentTypes
- The model's content types.configuration
- The enumerator configuration.