public class BackendSnapshotResource extends AbstractBackendActionableResource<Snapshot,DiskImage> implements SnapshotResource
AbstractBackendSubResource.ParametersProvider<R,Q>AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolverBaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException| Modifier and Type | Field and Description |
|---|---|
protected BackendSnapshotsResource |
collection |
protected Guid |
parentId |
guid, id, STRICTLY_IMMUTABLEACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollectionsbackend, 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, handleErrorgetEntity, getStrictlyImmutable, performGet, performGet, performUpdate, performUpdate, validateUpdateaddLinks, 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, urlEncodedoAction, doGetEntity, doNonBlockingAction, expectNonBlocking, getBackendCollection, getConfigurationValue, getEntity, getEntity, getEntity, performAction, performAction, performNonBlockingActionasCollection, 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, validateParametersprotected Guid parentId
protected BackendSnapshotsResource collection
public BackendSnapshotResource(String id, Guid parentId, BackendSnapshotsResource collection)
public Snapshot get()
get in interface SnapshotResourcepublic javax.ws.rs.core.Response restore(Action action)
restore in interface SnapshotResourcepublic CreationResource getCreationSubresource(String ids)
getCreationSubresource in interface AsynchronouslyCreatedResourcepublic ActionResource getActionSubresource(String action, String ids)
getActionSubresource in interface SnapshotResourcegetActionSubresource in class AbstractBackendActionableResource<Snapshot,DiskImage>protected Snapshot addParents(Snapshot snapshot)
AbstractBackendResourceaddParents in class AbstractBackendResource<Snapshot,DiskImage>Copyright © 2012. All Rights Reserved.