Skip navigation links
A B C D E F G H J R S T U 

A

add(T) - Method in class ch.codebulb.crudlet.webservice.CrudResource
 
addWithId(T) - Method in class ch.codebulb.crudlet.webservice.CrudResource
 
ALLOW_CORS - Static variable in class ch.codebulb.crudlet.config.CorsResponseFilter
Global hook to disable this filter.
ALLOW_OPTIONS - Static variable in class ch.codebulb.crudlet.config.CorsRequestFilter
Global hook to disable this filter.

B

build(Map) - Static method in class ch.codebulb.crudlet.util.JsonHelper
Builds a JsonObject from an arbitrary nested Map.

C

ch.codebulb.crudlet.config - package ch.codebulb.crudlet.config
 
ch.codebulb.crudlet.model - package ch.codebulb.crudlet.model
 
ch.codebulb.crudlet.model.errors - package ch.codebulb.crudlet.model.errors
 
ch.codebulb.crudlet.service - package ch.codebulb.crudlet.service
 
ch.codebulb.crudlet.util - package ch.codebulb.crudlet.util
 
ch.codebulb.crudlet.webservice - package ch.codebulb.crudlet.webservice
 
context - Variable in class ch.codebulb.crudlet.webservice.CrudResource
 
CorsRequestFilter - Class in ch.codebulb.crudlet.config
A convenience implementation of a CORS allow-all policy "preflight" request filter.
CorsRequestFilter() - Constructor for class ch.codebulb.crudlet.config.CorsRequestFilter
 
CorsResponseFilter - Class in ch.codebulb.crudlet.config
A convenience implementation of a CORS allow-all policy response filter.
CorsResponseFilter() - Constructor for class ch.codebulb.crudlet.config.CorsResponseFilter
 
countAll() - Method in class ch.codebulb.crudlet.service.CrudService
Counts the number of entities.
countAll() - Method in class ch.codebulb.crudlet.service.CrudServiceMocked
 
create() - Method in class ch.codebulb.crudlet.service.CrudService
Invokes the constructor for the entity type.
createResponse() - Method in class ch.codebulb.crudlet.model.errors.RestfulConstraintViolation
 
CrudEntity - Class in ch.codebulb.crudlet.model
An abstract generic base class for a persistent business entity (model).
CrudEntity() - Constructor for class ch.codebulb.crudlet.model.CrudEntity
 
CrudIdentifiable - Interface in ch.codebulb.crudlet.model
A minimal contract any entity type recognized by CrudService / CrudResource must fulfill.
CrudResource<T extends CrudIdentifiable> - Class in ch.codebulb.crudlet.webservice
A REST web service endpoint for editing all entities in the persistence storage including out-of-the-box support for returning I18N-ready model validation error messages.
CrudResource() - Constructor for class ch.codebulb.crudlet.webservice.CrudResource
 
CrudService<T extends CrudIdentifiable> - Class in ch.codebulb.crudlet.service
An abstract generic base implementation of a CRUD persistence storage access "service" (a "persistence service"), making it easy to derive a best-practices compliant concrete CRUD service implementation.
CrudService() - Constructor for class ch.codebulb.crudlet.service.CrudService
 
CrudServiceMocked<T extends CrudIdentifiable> - Class in ch.codebulb.crudlet.service
A mocked CrudService implementation which stores entities in a HashMap rather than persisting them in an actual persistence storage.
CrudServiceMocked() - Constructor for class ch.codebulb.crudlet.service.CrudServiceMocked
 

D

delete(Long) - Method in class ch.codebulb.crudlet.service.CrudService
Deletes the entity with the CrudEntity.getId() provided.
delete(Long) - Method in class ch.codebulb.crudlet.service.CrudServiceMocked
 
delete(Long) - Method in class ch.codebulb.crudlet.webservice.CrudResource
Deletes the entity with the CrudEntity.getId() provided.
deleteEntity(Long, T) - Method in class ch.codebulb.crudlet.webservice.CrudResource
 

E

em - Variable in class ch.codebulb.crudlet.service.CrudService
 
equals(Object) - Method in class ch.codebulb.crudlet.model.CrudEntity
 

F

filter(ContainerRequestContext) - Method in class ch.codebulb.crudlet.config.CorsRequestFilter
 
filter(ContainerRequestContext, ContainerResponseContext) - Method in class ch.codebulb.crudlet.config.CorsResponseFilter
 
findAll() - Method in class ch.codebulb.crudlet.service.CrudService
Returns a List of all entities.
findAll() - Method in class ch.codebulb.crudlet.service.CrudServiceMocked
 
findAll() - Method in class ch.codebulb.crudlet.webservice.CrudResource
Returns a List of all entities.
findById(Long) - Method in class ch.codebulb.crudlet.service.CrudService
Returns the entity with the CrudEntity.getId() provided.
findById(Long) - Method in class ch.codebulb.crudlet.service.CrudServiceMocked
 
findById(Long) - Method in class ch.codebulb.crudlet.webservice.CrudResource
Returns the entity with the CrudEntity.getId() provided or returns with an error, if none is found.

G

getId() - Method in class ch.codebulb.crudlet.model.CrudEntity
 
getId() - Method in interface ch.codebulb.crudlet.model.CrudIdentifiable
 
getModelClass() - Method in class ch.codebulb.crudlet.service.CrudService
Returns the entity type.
getPathParam(String, Class<T>) - Method in class ch.codebulb.crudlet.webservice.CrudResource
Gets the @PathParam with the key provided and casts it in the given type, if necessary.
getService() - Method in class ch.codebulb.crudlet.webservice.CrudResource
Returns the service instance.

H

hashCode() - Method in class ch.codebulb.crudlet.model.CrudEntity
 

J

JsonHelper - Class in ch.codebulb.crudlet.util
A collection of helper utility methods for dealing with JSON.
JsonHelper() - Constructor for class ch.codebulb.crudlet.util.JsonHelper
 

R

responseBody - Variable in class ch.codebulb.crudlet.model.errors.RestfulConstraintViolation
 
RestfulConstraintViolation - Class in ch.codebulb.crudlet.model.errors
Base class for wrappers for constraint violations.
RestfulConstraintViolation() - Constructor for class ch.codebulb.crudlet.model.errors.RestfulConstraintViolation
 
RestfulExceptionMapper - Class in ch.codebulb.crudlet.config
A "catch-all" exception handler for global, centralized exception handling.
RestfulExceptionMapper() - Constructor for class ch.codebulb.crudlet.config.RestfulExceptionMapper
 
RestfulPersistenceIntegrityConstraintViolation - Class in ch.codebulb.crudlet.model.errors
A wrapper to transform a SQLIntegrityConstraintViolationException into a user-friendly response body of a REST error response.
RestfulPersistenceIntegrityConstraintViolation(Throwable) - Constructor for class ch.codebulb.crudlet.model.errors.RestfulPersistenceIntegrityConstraintViolation
 
RestfulPersistenceValidationConstraintViolation - Class in ch.codebulb.crudlet.model.errors
A wrapper to transform a ConstraintViolationException into a user-friendly response body of a REST error response.
RestfulPersistenceValidationConstraintViolation(ConstraintViolationException) - Constructor for class ch.codebulb.crudlet.model.errors.RestfulPersistenceValidationConstraintViolation
 
RETURN_EXCEPTION_BODY - Static variable in class ch.codebulb.crudlet.config.RestfulExceptionMapper
Global hook to disable user-friendly exception output.

S

save(T) - Method in class ch.codebulb.crudlet.service.CrudService
Saves / Inserts / Updates the entity provided and returns the updated entity (e.g. updated CrudEntity.getId() field.
save(T) - Method in class ch.codebulb.crudlet.service.CrudServiceMocked
 
save(T) - Method in class ch.codebulb.crudlet.webservice.CrudResource
Saves / Inserts / Updates the entity provided and returns the updated entity (e.g. updated CrudEntity.getId() field.
saveWithId(T) - Method in class ch.codebulb.crudlet.webservice.CrudResource
 
setEm(EntityManager) - Method in class ch.codebulb.crudlet.service.CrudService
Sets the entity manager.
setId(Long) - Method in class ch.codebulb.crudlet.model.CrudEntity
 
setId(Long) - Method in interface ch.codebulb.crudlet.model.CrudIdentifiable
 

T

toResponse(Exception) - Method in class ch.codebulb.crudlet.config.RestfulExceptionMapper
 
toString() - Method in class ch.codebulb.crudlet.model.CrudEntity
 

U

uri - Variable in class ch.codebulb.crudlet.webservice.CrudResource
 
A B C D E F G H J R S T U 
Skip navigation links

Copyright © 2016, codebulb.ch. All rights reserved.