public class BackendSnapshotsResource extends AbstractBackendCollectionResource<Snapshot,DiskImage> implements SnapshotsResource
Modifier and Type | Class and Description |
---|---|
protected class |
BackendSnapshotsResource.DiskImageIdResolver |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
protected Guid |
parentId |
CASE_SENSITIVE_CONSTRAINT_PARAMETER, FROM_CONSTRAINT_PARAMETER, LOG
ACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollections
backend, httpHeaders, messageBundle, sessionHelper, uriInfo
Constructor and Description |
---|
BackendSnapshotsResource(Guid parentId) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Snapshot snapshot) |
Snapshot |
addParents(Snapshot model)
Add any parent resource references needed for constructing links.
|
protected void |
addPrevLink(Snapshot snapshot,
NGuid id) |
protected List<DiskImage> |
getDisks() |
protected ArrayList<String> |
getDrives() |
AbstractBackendResource.EntityIdResolver |
getEntityIdResolver(String description) |
protected Map<NGuid,NGuid> |
getParentage(DiskImage diskImage) |
SnapshotResource |
getSnapshotSubResource(String id)
Sub-resource locator method, returns individual SnapshotResource on
which the remainder of the URI is dispatched.
|
Snapshots |
list() |
DiskImage |
lookupEntityByDescription(String description) |
protected Snapshot |
map(DiskImage snapshot,
DiskImage diskImage) |
protected Snapshots |
mapCollection(List<DiskImage> diskImages) |
javax.ws.rs.core.Response |
performRemove(String id) |
asString, expectBlocking, getBackendCollection, getBackendCollection, getBackendCollection, getEntity, handleAsynchrony, performCreation, remove, resolveCreated
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
protected Guid parentId
public BackendSnapshotsResource(Guid parentId)
public Snapshots list()
list
in interface SnapshotsResource
public javax.ws.rs.core.Response add(Snapshot snapshot)
add
in interface SnapshotsResource
public javax.ws.rs.core.Response performRemove(String id)
performRemove
in class AbstractBackendCollectionResource<Snapshot,DiskImage>
public SnapshotResource getSnapshotSubResource(String id)
SnapshotsResource
getSnapshotSubResource
in interface SnapshotsResource
id
- the snapshot IDpublic Snapshot addParents(Snapshot model)
AbstractBackendResource
addParents
in class AbstractBackendResource<Snapshot,DiskImage>
public AbstractBackendResource.EntityIdResolver getEntityIdResolver(String description)
Copyright © 2012. All Rights Reserved.