public abstract class AbstractBackendSubResource<R extends BaseResource,Q> extends AbstractBackendResource<R,Q>
Modifier and Type | Class and Description |
---|---|
protected static interface |
AbstractBackendSubResource.ParametersProvider<R,Q> |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
protected Guid |
guid |
protected String |
id |
protected static String[] |
STRICTLY_IMMUTABLE |
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, LOG, messageBundle, sessionHelper, uriInfo
Modifier | Constructor and Description |
---|---|
protected |
AbstractBackendSubResource(String id,
Class<R> modelType,
Class<Q> entityType,
String... subCollections) |
Modifier and Type | Method and Description |
---|---|
protected Q |
getEntity(AbstractBackendResource.EntityIdResolver entityResolver,
boolean notFoundAs404) |
protected String[] |
getStrictlyImmutable()
Override this method if any additional resource-specific fields are
strictly immutable
|
protected R |
performGet(VdcQueryType query,
VdcQueryParametersBase params) |
protected R |
performGet(VdcQueryType query,
VdcQueryParametersBase params,
Class<? extends BaseResource> suggestedParentType) |
protected R |
performUpdate(R incoming,
AbstractBackendResource.EntityIdResolver entityResolver,
VdcActionType update,
AbstractBackendSubResource.ParametersProvider<R,Q> updateProvider) |
protected R |
performUpdate(R incoming,
Q entity,
R model,
AbstractBackendResource.EntityIdResolver entityResolver,
VdcActionType update,
AbstractBackendSubResource.ParametersProvider<R,Q> updateProvider) |
protected void |
validateUpdate(R incoming,
R existing)
Validate update from an immutability point of view.
|
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
protected static final String[] STRICTLY_IMMUTABLE
protected String id
protected Guid guid
protected R performGet(VdcQueryType query, VdcQueryParametersBase params)
protected R performGet(VdcQueryType query, VdcQueryParametersBase params, Class<? extends BaseResource> suggestedParentType)
protected Q getEntity(AbstractBackendResource.EntityIdResolver entityResolver, boolean notFoundAs404)
protected R performUpdate(R incoming, Q entity, R model, AbstractBackendResource.EntityIdResolver entityResolver, VdcActionType update, AbstractBackendSubResource.ParametersProvider<R,Q> updateProvider)
protected R performUpdate(R incoming, AbstractBackendResource.EntityIdResolver entityResolver, VdcActionType update, AbstractBackendSubResource.ParametersProvider<R,Q> updateProvider)
protected void validateUpdate(R incoming, R existing)
incoming
- the incoming resource representationexisting
- the existing resource representationjavax.ws.rs.WebApplicationException
- wrapping an appropriate response iff an immutability
constraint has been brokenprotected String[] getStrictlyImmutable()
Copyright © 2012. All Rights Reserved.