public class BackendSnapshotsResource extends AbstractBackendCollectionResource<Snapshot,DiskImage> implements SnapshotsResource
| Modifier and Type | Class and Description |
|---|---|
protected class |
BackendSnapshotsResource.DiskImageIdResolver |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolverBaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException| Modifier and Type | Field and Description |
|---|---|
protected Guid |
parentId |
CASE_SENSITIVE_CONSTRAINT_PARAMETER, FROM_CONSTRAINT_PARAMETER, LOGACCEPTED_STATUS, entityType, ID_SEPARATOR, mappingLocator, modelType, MONITOR_DELAY, subCollectionsbackend, 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, resolveCreatedaddLinks, 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, validateParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveprotected Guid parentId
public BackendSnapshotsResource(Guid parentId)
public Snapshots list()
list in interface SnapshotsResourcepublic javax.ws.rs.core.Response add(Snapshot snapshot)
add in interface SnapshotsResourcepublic javax.ws.rs.core.Response performRemove(String id)
performRemove in class AbstractBackendCollectionResource<Snapshot,DiskImage>public SnapshotResource getSnapshotSubResource(String id)
SnapshotsResourcegetSnapshotSubResource in interface SnapshotsResourceid - the snapshot IDpublic Snapshot addParents(Snapshot model)
AbstractBackendResourceaddParents in class AbstractBackendResource<Snapshot,DiskImage>public AbstractBackendResource.EntityIdResolver getEntityIdResolver(String description)
Copyright © 2012. All Rights Reserved.