public abstract class AbstractBackendDevicesResource<D extends BaseDevice,C extends BaseDevices,Q extends IVdcQueryable> extends AbstractBackendReadOnlyDevicesResource<D,C,Q> implements DevicesResource<D,C>
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractBackendDevicesResource.DeviceIdResolver |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
protected VdcActionType |
addAction |
protected VdcActionType |
removeAction |
protected VdcActionType |
updateType |
collectionType, parentId, queryParams, queryType
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 |
---|
AbstractBackendDevicesResource(Class<D> modelType,
Class<C> collectionType,
Class<Q> entityType,
Guid parentId,
VdcQueryType queryType,
VdcQueryParametersBase queryParams,
VdcActionType addAction,
VdcActionType removeAction,
VdcActionType updateType,
String... subCollections) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(D device) |
protected abstract VdcActionParametersBase |
getAddParameters(Q entity,
D device) |
DeviceResource<D> |
getDeviceSubResource(String id)
Sub-resource locator method, returns individual DeviceResource on which the
remainder of the URI is dispatched.
|
AbstractBackendResource.EntityIdResolver |
getEntityIdResolver(String name) |
protected abstract VdcActionParametersBase |
getRemoveParameters(String id) |
protected abstract String[] |
getRequiredAddFields() |
protected abstract String[] |
getRequiredUpdateFields() |
protected abstract AbstractBackendSubResource.ParametersProvider<D,Q> |
getUpdateParametersProvider() |
protected abstract boolean |
matchEntity(Q entity,
String name) |
javax.ws.rs.core.Response |
performRemove(String id) |
addParents, getList, list, lookupEntity, mapCollection, matchEntity, validate
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
list
protected VdcActionType addAction
protected VdcActionType removeAction
protected VdcActionType updateType
public AbstractBackendDevicesResource(Class<D> modelType, Class<C> collectionType, Class<Q> entityType, Guid parentId, VdcQueryType queryType, VdcQueryParametersBase queryParams, VdcActionType addAction, VdcActionType removeAction, VdcActionType updateType, String... subCollections)
public javax.ws.rs.core.Response add(D device)
add
in interface DevicesResource<D extends BaseDevice,C extends BaseDevices>
public javax.ws.rs.core.Response performRemove(String id)
performRemove
in class AbstractBackendReadOnlyDevicesResource<D extends BaseDevice,C extends BaseDevices,Q extends IVdcQueryable>
public DeviceResource<D> getDeviceSubResource(String id)
ReadOnlyDevicesResource
getDeviceSubResource
in interface DevicesResource<D extends BaseDevice,C extends BaseDevices>
getDeviceSubResource
in interface ReadOnlyDevicesResource<D extends BaseDevice,C extends BaseDevices>
getDeviceSubResource
in class AbstractBackendReadOnlyDevicesResource<D extends BaseDevice,C extends BaseDevices,Q extends IVdcQueryable>
id
- the Device IDpublic AbstractBackendResource.EntityIdResolver getEntityIdResolver(String name)
protected abstract String[] getRequiredAddFields()
protected abstract String[] getRequiredUpdateFields()
protected abstract VdcActionParametersBase getAddParameters(Q entity, D device)
protected abstract VdcActionParametersBase getRemoveParameters(String id)
protected abstract AbstractBackendSubResource.ParametersProvider<D,Q> getUpdateParametersProvider()
Copyright © 2012. All Rights Reserved.