public abstract class AbstractBackendActionableResource<R extends BaseResource,Q> extends AbstractBackendSubResource<R,Q>
AbstractBackendSubResource.ParametersProvider<R,Q>
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
guid, id, STRICTLY_IMMUTABLE
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, LOG, messageBundle, sessionHelper, uriInfo
Constructor and Description |
---|
AbstractBackendActionableResource(String id,
Class<R> modelType,
Class<Q> entityType,
String... subCollections) |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
actionAsync(VdcReturnValueBase actionResult,
Action action) |
protected javax.ws.rs.core.Response |
actionFailure(Action action,
javax.ws.rs.WebApplicationException wae) |
protected javax.ws.rs.core.Response |
actionStatus(CreationStatus status,
Action action) |
protected javax.ws.rs.core.Response |
actionSuccess(Action action) |
protected void |
awaitGrace(Action action) |
protected javax.ws.rs.core.Response |
doAction(VdcActionType task,
VdcActionParametersBase params,
Action action)
Perform an action, managing asynchrony and returning an appropriate
response.
|
protected boolean |
expectBlocking(Action action) |
ActionResource |
getActionSubresource(String action,
String oid) |
protected Guid |
getHostId(Action action) |
protected Guid |
getHostId(Host host) |
protected javax.ws.rs.core.Response |
handleError(Exception e,
Action action) |
getEntity, getStrictlyImmutable, performGet, performGet, performUpdate, performUpdate, validateUpdate
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 javax.ws.rs.core.Response doAction(VdcActionType task, VdcActionParametersBase params, Action action)
uriInfo
- wraps the URI for the current requesttask
- the backend taskparams
- the task parametersaction
- action representationprotected void awaitGrace(Action action)
protected boolean expectBlocking(Action action)
public ActionResource getActionSubresource(String action, String oid)
protected javax.ws.rs.core.Response actionFailure(Action action, javax.ws.rs.WebApplicationException wae)
protected javax.ws.rs.core.Response actionSuccess(Action action)
protected javax.ws.rs.core.Response actionStatus(CreationStatus status, Action action)
protected javax.ws.rs.core.Response actionAsync(VdcReturnValueBase actionResult, Action action)
Copyright © 2012. All Rights Reserved.