Package org.ametys.web.search.systemprop
Class WorkflowStepSystemProperty
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.cms.search.systemprop.AbstractSystemProperty
-
- org.ametys.cms.search.systemprop.WorkflowStepSystemProperty
-
- org.ametys.web.search.systemprop.WorkflowStepSystemProperty
-
- All Implemented Interfaces:
SystemProperty
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class WorkflowStepSystemProperty extends WorkflowStepSystemProperty
Web-specific workflow step system property, which returns null when in the live workspace.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.cms.search.model.SystemProperty
SystemProperty.EnumeratorDefinition
-
-
Field Summary
Fields Modifier and Type Field Description protected WorkspaceSelector
_workspaceSelector
The workspace selector.-
Fields inherited from class org.ametys.cms.search.systemprop.WorkflowStepSystemProperty
_workflowHelper, _workflowProvider
-
Fields inherited from class org.ametys.cms.search.systemprop.AbstractSystemProperty
_description, _i18nUtils, _id, _label, _pluginName, _resolver, _userHelper
-
-
Constructor Summary
Constructors Constructor Description WorkflowStepSystemProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue(Content content)
Get the typed raw value for this field in the given result content.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.cms.search.systemprop.WorkflowStepSystemProperty
getColumnWidth, getConverter, getEnumeratorDefinition, getJsonValue, getQuery, getRenderer, getSearchField, getType, isMultiple, isSortable, saxValue
-
Methods inherited from class org.ametys.cms.search.systemprop.AbstractSystemProperty
_indexBooleanValue, _indexBooleanValues, _indexDateValue, _indexDateValues, _indexDoubleValue, _indexDoubleValues, _indexGeocodeValue, _indexLongValue, _indexLongValues, _indexStringValue, _indexStringValues, _indexUserValue, _indexUserValues, _parseI18nizableText, configure, getDescription, getId, getLabel, getSchemaDefinitions, getSortValue, index, parseBoolean, parseDate, parseDouble, parseLong, parseString, parseStringArray, parseUserArray, setPluginInfo
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.cms.search.model.SystemProperty
getContentTypeId, getWidget, getWidgetParameters, isDisplayable, isFacetable, isSearchable
-
-
-
-
Field Detail
-
_workspaceSelector
protected WorkspaceSelector _workspaceSelector
The workspace selector.
-
-
Constructor Detail
-
WorkflowStepSystemProperty
public WorkflowStepSystemProperty()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classWorkflowStepSystemProperty
- Throws:
ServiceException
-
getValue
public Object getValue(Content content)
Description copied from interface:SystemProperty
Get the typed raw value for this field in the given result content. The returned object depends on this field's type:
-MetadataType.STRING
must return String or String[] if multiple
-MetadataType.DATE
orMetadataType.DATETIME
must return Date or Date[] if multiple
-MetadataType.LONG
must return Long or Long[] if multiple
-MetadataType.DOUBLE
must return Double or Double[] if multiple
-MetadataType.CONTENT
must return String or String[] if multiple
-MetadataType.GEOCODE
must return Map<String, Double>
-MetadataType.USER
must return UserIdentity or UserIdentity[] if multiple
-MetadataType.MULTILINGUAL_STRING
must returnMultilingualString
Others types are not supported.- Specified by:
getValue
in interfaceSystemProperty
- Overrides:
getValue
in classWorkflowStepSystemProperty
- Parameters:
content
- The result content- Returns:
- The typed value, cast to the appropriate object according its type.
-
-