public class BackendPermitsResource extends AbstractBackendCollectionResource<Permit,ActionGroup> implements PermitsResource
Modifier and Type | Class and Description |
---|---|
protected class |
BackendPermitsResource.PermitIdResolver |
AbstractBackendResource.EntityIdResolver, AbstractBackendResource.QueryIdResolver
BaseBackendResource.BackendFailureException, BaseBackendResource.EntityNotFoundException, BaseBackendResource.WebFaultException
Modifier and Type | Field and Description |
---|---|
protected Guid |
roleId |
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 |
---|
BackendPermitsResource(Guid roleId) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
add(Permit permit)
Adds a Permit to the set aggregated by parent Role.
|
Permit |
addParents(Permit permit)
Add any parent resource references needed for constructing links.
|
PermitResource |
getPermitSubResource(String id)
Sub-resource locator method, returns individual PermitResource on which
the remainder of the URI is dispatched.
|
Permits |
list() |
ActionGroup |
lookupId(String id) |
protected Permits |
mapCollection(List<ActionGroup> entities) |
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 roleId
public BackendPermitsResource(Guid roleId)
public Permits list()
list
in interface PermitsResource
public javax.ws.rs.core.Response add(Permit permit)
PermitsResource
add
in interface PermitsResource
permit
- the Permit to addpublic javax.ws.rs.core.Response performRemove(String id)
performRemove
in class AbstractBackendCollectionResource<Permit,ActionGroup>
public PermitResource getPermitSubResource(String id)
PermitsResource
getPermitSubResource
in interface PermitsResource
id
- the Permit IDpublic ActionGroup lookupId(String id)
protected Permits mapCollection(List<ActionGroup> entities)
public Permit addParents(Permit permit)
AbstractBackendResource
addParents
in class AbstractBackendResource<Permit,ActionGroup>
Copyright © 2012. All Rights Reserved.