Class ProjectionService
- java.lang.Object
-
- com.alon.spring.crud.api.projection.ProjectionService
-
@Service public class ProjectionService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOP_PROJECTION
-
Constructor Summary
Constructors Constructor Description ProjectionService(org.springframework.context.ApplicationContext applicationContext, RepresentationService representationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ProjectionRepresentation>getEntityRepresentations(java.lang.Class<? extends BaseEntity> clazz)java.util.List<java.lang.String>getRequiredExpand(java.lang.String projectionName)<I extends BaseEntity,O>
Oproject(java.lang.String projectionName, I input)<I extends BaseEntity,O>
OutputPage<O>project(java.lang.String projectionName, org.springframework.data.domain.Page<I> input)booleanprojectionExists(java.lang.String projectionName)
-
-
-
Field Detail
-
NOP_PROJECTION
public static final java.lang.String NOP_PROJECTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProjectionService
public ProjectionService(org.springframework.context.ApplicationContext applicationContext, RepresentationService representationService)
-
-
Method Detail
-
project
public <I extends BaseEntity,O> O project(java.lang.String projectionName, I input)
-
project
public <I extends BaseEntity,O> OutputPage<O> project(java.lang.String projectionName, org.springframework.data.domain.Page<I> input)
-
getRequiredExpand
public java.util.List<java.lang.String> getRequiredExpand(java.lang.String projectionName)
-
projectionExists
public boolean projectionExists(java.lang.String projectionName)
-
getEntityRepresentations
public java.util.List<ProjectionRepresentation> getEntityRepresentations(java.lang.Class<? extends BaseEntity> clazz)
-
-