public class ResultServiceImpl extends Object implements ResultService
ResultService
implementationModifier and Type | Field and Description |
---|---|
protected Application |
application |
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 |
protected Site |
site |
Constructor and Description |
---|
ResultServiceImpl() |
ResultServiceImpl(ExpressionEvaluator expressionEvaluator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
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) |
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
protected Application application
protected Site site
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 final boolean isFile(FieldType type)
public final boolean isListType(FieldType type)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Copyright © 2011–2023 aiticon GmbH. All rights reserved.