public class ResultServiceImpl extends Object implements ResultService
ResultService
implementationModifier and Type | Field and Description |
---|---|
protected org.springframework.core.convert.ConversionService |
conversionService |
protected static String |
CURRENT |
protected Environment |
environment |
protected ExpressionEvaluator |
expressionEvaluator |
protected FieldConversionFactory |
fieldConverter |
protected List<FieldType> |
FILE_TYPES |
protected List<FieldType> |
LIST_TYPES |
protected org.springframework.context.MessageSource |
messageSource |
Constructor and Description |
---|
ResultServiceImpl() |
ResultServiceImpl(ExpressionEvaluator expressionEvaluator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.core.convert.ConversionService |
getConversionService() |
Environment |
getEnvironment() |
ExpressionEvaluator |
getExpressionEvaluator() |
FieldConverter |
getFieldConverter() |
org.springframework.context.MessageSource |
getMessageSource() |
Result |
getResult(FieldProcessor fp,
Object object)
|
Resultset |
getResultset(FieldProcessor fp,
Collection<?> items)
Builds a
ResultSet from the items provided by the Collection , using the FieldProcessor 's
MetaData .Note that pagination will not be available. |
Resultset |
getResultset(FieldProcessor fp,
org.springframework.data.domain.Page<?> page)
|
boolean |
isFile(FieldType type) |
boolean |
isListType(FieldType type) |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
void |
setEnvironment(Environment environment) |
void |
setExpressionEvaluator(ExpressionEvaluator expressionEvaluator) |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
protected static final String CURRENT
protected org.springframework.core.convert.ConversionService conversionService
protected org.springframework.context.MessageSource messageSource
protected Environment environment
protected ExpressionEvaluator expressionEvaluator
protected FieldConversionFactory fieldConverter
public ResultServiceImpl(ExpressionEvaluator expressionEvaluator)
public ResultServiceImpl()
public final Result getResult(FieldProcessor fp, Object object)
ResultService
getResult
in interface ResultService
fp
- a FieldProcessor
object
- a bindobjectResult
containing a Datafield
for each FieldDef
provided by the
FieldProcessor
's MetaData
.public Resultset getResultset(FieldProcessor fp, Collection<?> items)
ResultService
ResultSet
from the items provided by the Collection
, using the FieldProcessor
's
MetaData
.getResultset
in interface ResultService
fp
- a FieldProcessor
items
- a Collection
of bindobjectsResultset
containing a Result
for each item of the Collection
. Every
Result
contains a Datafield
for each FieldDef
provided by the
FieldProcessor
's MetaData
.public final Resultset getResultset(FieldProcessor fp, org.springframework.data.domain.Page<?> page)
ResultService
getResultset
in interface ResultService
fp
- a FieldProcessor
page
- a Page
of bindobjectsResultset
containing a Result
for each item of the Page
. Every Result
contains a Datafield
for each FieldDef
provided by the FieldProcessor
's
MetaData
.public org.springframework.core.convert.ConversionService getConversionService()
public void setConversionService(org.springframework.core.convert.ConversionService conversionService)
public org.springframework.context.MessageSource getMessageSource()
public void setMessageSource(org.springframework.context.MessageSource messageSource)
public Environment getEnvironment()
public void setEnvironment(Environment environment)
public ExpressionEvaluator getExpressionEvaluator()
public void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)
public final boolean isFile(FieldType type)
public final boolean isListType(FieldType type)
public FieldConverter getFieldConverter()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Copyright © 2011–2021 aiticon GmbH. All rights reserved.