Class BaseResource<Service extends AbstractService<?,Entity,ID>,Entity,ID>
java.lang.Object
com.eoscode.springapitools.resource.BaseResource<Service,Entity,ID>
- Direct Known Subclasses:
AbstractQueryResource
public abstract class BaseResource<Service extends AbstractService<?,Entity,ID>,Entity,ID>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected org.springframework.http.converter.json.MappingJackson2HttpMessageConverterprotected final org.apache.commons.logging.Logprotected final Set<org.springframework.http.HttpMethod>protected booleanprotected final Set<ResourceMethod>protected SpringApiToolsProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddefineIdentifierValue(Entity entity, ID id) protected IDgetIdentifierValue(Entity entity) protected intgetListDefaultSize(Integer size) protected Serviceprotected booleanisDefaultPageable(Boolean pageable)
-
Field Details
-
log
protected final org.apache.commons.logging.Log log -
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
springApiToolsProperties
-
jackson2HttpMessageConverter
@Autowired protected org.springframework.http.converter.json.MappingJackson2HttpMessageConverter jackson2HttpMessageConverter -
methodNotAllowed
-
resourceMethodNotAllowed
-
queryWithViews
protected boolean queryWithViews
-
-
Constructor Details
-
BaseResource
public BaseResource()
-
-
Method Details
-
getServiceType
-
getEntityType
-
getIdentifierType
-
getService
-
getIdentifierValue
- Throws:
IllegalAccessException
-
defineIdentifierValue
- Throws:
IllegalAccessException
-
isDefaultPageable
-
getListDefaultSize
-