public abstract class AbstractBackendCollectionResource<R extends BaseResource,Q> extends AbstractBackendResource<R,Q>
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
static String |
CASE_SENSITIVE_CONSTRAINT_PARAMETER |
static String |
FROM_CONSTRAINT_PARAMETER |
protected static LogCompat |
LOG |
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, messageBundle, sessionHelper, uriInfo
Modifier | Constructor and Description |
---|---|
protected |
AbstractBackendCollectionResource(Class<R> modelType,
Class<Q> entityType,
String... subCollections) |
Modifier and Type | Method and Description |
---|---|
protected String |
asString(VdcReturnValueBase result) |
protected boolean |
expectBlocking() |
protected List<Q> |
getBackendCollection(SearchType searchType) |
protected List<Q> |
getBackendCollection(SearchType searchType,
String constraint) |
protected List<Q> |
getBackendCollection(VdcQueryType query,
VdcQueryParametersBase queryParams) |
protected void |
getEntity(String id) |
protected void |
handleAsynchrony(VdcReturnValueBase result,
R model) |
protected javax.ws.rs.core.Response |
performCreation(VdcActionType task,
VdcActionParametersBase taskParams,
AbstractBackendResource.EntityIdResolver entityResolver) |
protected abstract javax.ws.rs.core.Response |
performRemove(String id) |
javax.ws.rs.core.Response |
remove(String id) |
protected R |
resolveCreated(VdcReturnValueBase result,
AbstractBackendResource.EntityIdResolver entityResolver) |
addLinks, addLinks, addLinks, addLinks, addOrUpdateLink, addParents, asCollection, asGuidOr404, asString, awaitCompletion, delay, entityNotFound, getAsynchronousStatus, getMapper, getMappingLocator, getQueryParams, incomplete, inject, injectSearchLinks, linkSubCollections, linkSubResource, map, map, map, map, newModel, notFound, notFound, populate, removeIfExist, setMappingLocator, urlEncode
doAction, doGetEntity, doNonBlockingAction, expectNonBlocking, getBackendCollection, getConfigurationValue, getEntity, getEntity, getEntity, performAction, performAction, performNonBlockingAction
asCollection, asGuid, asGuid, combine, fault, getBackend, getCurrent, getEffectiveLocale, getHttpHeaders, getMessageBundle, getSessionHelper, getUriInfo, handleError, handleError, instantiate, localize, localize, localize, sessionize, sessionize, setBackend, setHttpHeaders, setMessageBundle, setSessionHelper, setUriInfo, validateEnum, validateParameters, validateParameters
public static final String FROM_CONSTRAINT_PARAMETER
public static final String CASE_SENSITIVE_CONSTRAINT_PARAMETER
protected static final LogCompat LOG
public javax.ws.rs.core.Response remove(String id)
protected abstract javax.ws.rs.core.Response performRemove(String id)
protected List<Q> getBackendCollection(SearchType searchType)
protected List<Q> getBackendCollection(SearchType searchType, String constraint)
protected List<Q> getBackendCollection(VdcQueryType query, VdcQueryParametersBase queryParams)
protected javax.ws.rs.core.Response performCreation(VdcActionType task, VdcActionParametersBase taskParams, AbstractBackendResource.EntityIdResolver entityResolver)
protected boolean expectBlocking()
protected void handleAsynchrony(VdcReturnValueBase result, R model)
protected R resolveCreated(VdcReturnValueBase result, AbstractBackendResource.EntityIdResolver entityResolver)
protected String asString(VdcReturnValueBase result)
protected void getEntity(String id)
Copyright © 2012. All Rights Reserved.