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, _resolver, _userHelper| 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(Configuration configuration)
Get the definition of an enumerator.
|
Object |
getJsonValue(Content content,
boolean full)
Get the jsonified value
|
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 typed raw value for 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) |
_indexBooleanValue, _indexBooleanValues, _indexDateValue, _indexDateValues, _indexDoubleValue, _indexDoubleValues, _indexGeocodeValue, _indexLongValue, _indexLongValues, _indexStringValue, _indexStringValues, _indexUserValue, _indexUserValues, _parseI18nizableText, configure, getDescription, getId, getLabel, getSchemaDefinitions, index, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, saxValue, setPluginInfogetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumnWidth, getContentTypeId, getWidgetParameters, isDisplayable, isFacetable, isSearchableprivate JSONUtils _jsonUtils
public SiteSystemProperty()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractSystemPropertyServiceExceptionpublic MetadataType getType()
SystemPropertygetType in interface SystemPropertypublic boolean isMultiple()
SystemPropertyisMultiple in interface SystemPropertytrue if the property can have multiple values, false otherwise.public boolean isSortable()
SystemPropertyisSortable in interface SystemPropertytrue if the property can be sorted on, false otherwise.public Query getQuery(Object value, Query.Operator operator, String language, Map<String,Object> contextualParameters)
SystemPropertyQuery associated to the given value.getQuery in interface SystemPropertyvalue - 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()
SystemPropertygetWidget in interface SystemPropertynull if no specific widget is necessary.public String getRenderer()
SystemPropertygetRenderer in interface SystemPropertypublic String getConverter()
SystemPropertygetConverter in interface SystemPropertypublic SearchField getSearchField()
SystemPropertySearchField representing this system property.getSearchField in interface SystemPropertypublic Object getValue(Content content)
SystemPropertyMetadataType.STRING must return String or String[] if multipleMetadataType.DATE or MetadataType.DATETIME must return Date or Date[] if multipleMetadataType.LONG must return Long or Long[] if multipleMetadataType.DOUBLE must return Double or Double[] if multipleMetadataType.CONTENT must return String or String[] if multipleMetadataType.GEOCODE must return Map<String, Double>MetadataType.USER must return UserIdentity or UserIdentity[] if multipleMetadataType.MULTILINGUAL_STRING must return MultilingualStringgetValue in interface SystemPropertycontent - The result contentpublic Object getJsonValue(Content content, boolean full)
SystemPropertygetJsonValue in interface SystemPropertycontent - the result contentfull - true to get full value.public Object getSortValue(Content content)
SystemPropertygetSortValue in interface SystemPropertygetSortValue in class AbstractSystemPropertycontent - the result content.public SystemProperty.EnumeratorDefinition getEnumeratorDefinition(Configuration configuration)
SystemPropertygetEnumeratorDefinition in interface SystemPropertyconfiguration - The enumerator configuration.