public class BackendSnapshotResource extends AbstractBackendActionableResource<Snapshot,DiskImage> implements SnapshotResource
AbstractBackendSubResource.ParametersProvider<R,Q>
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
protected BackendSnapshotsResource |
collection |
protected Guid |
parentId |
guid, id, STRICTLY_IMMUTABLE
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, LOG, messageBundle, sessionHelper, uriInfo
Constructor and Description |
---|
BackendSnapshotResource(String id,
Guid parentId,
BackendSnapshotsResource collection) |
Modifier and Type | Method and Description |
---|---|
protected Snapshot |
addParents(Snapshot snapshot)
Add any parent resource references needed for constructing links.
|
Snapshot |
get() |
ActionResource |
getActionSubresource(String action,
String ids) |
CreationResource |
getCreationSubresource(String ids) |
javax.ws.rs.core.Response |
restore(Action action) |
actionAsync, actionFailure, actionStatus, actionSuccess, awaitGrace, doAction, expectBlocking, getHostId, getHostId, handleError
getEntity, getStrictlyImmutable, performGet, performGet, performUpdate, performUpdate, validateUpdate
addLinks, addLinks, addLinks, addLinks, addOrUpdateLink, 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 Guid parentId
protected BackendSnapshotsResource collection
public BackendSnapshotResource(String id, Guid parentId, BackendSnapshotsResource collection)
public Snapshot get()
get
in interface SnapshotResource
public javax.ws.rs.core.Response restore(Action action)
restore
in interface SnapshotResource
public CreationResource getCreationSubresource(String ids)
getCreationSubresource
in interface AsynchronouslyCreatedResource
public ActionResource getActionSubresource(String action, String ids)
getActionSubresource
in interface SnapshotResource
getActionSubresource
in class AbstractBackendActionableResource<Snapshot,DiskImage>
protected Snapshot addParents(Snapshot snapshot)
AbstractBackendResource
addParents
in class AbstractBackendResource<Snapshot,DiskImage>
Copyright © 2012. All Rights Reserved.