@ScopesAllowed(value={"kangaroo:role","kangaroo:role_admin"}) public final class RoleScopeService extends AbstractService
| Modifier and Type | Class and Description |
|---|---|
static class |
RoleScopeService.Binder
HK2 Binder for our injector context.
|
| Constructor and Description |
|---|
RoleScopeService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createResource(BigInteger scopeId)
Create a link between a role and a scope.
|
javax.ws.rs.core.Response |
deleteResource(BigInteger scopeId)
Delete a scope from a role.
|
protected String |
getAccessScope()
Return the scope required to access resources on this service.
|
protected String |
getAdminScope()
Return the scope required to access ALL resources on this services.
|
void |
setRoleId(BigInteger roleId)
Set the role for this instance of the scope service.
|
assertCanAccess, assertCanAccessSubresource, executeQuery, getAdminApplication, getConfig, getCurrentUser, getFullTextSession, getInjector, getSearchFactory, getSecurityContext, getSession, getUriInfo, requireEntityInput, resolveEntityInput, resolveEntityInput, resolveFilterEntity, resolveOwnershipFilter, setConfig, setFullTextSession, setInjector, setSearchFactory, setSecurityContext, setSession, setUriInfopublic void setRoleId(BigInteger roleId)
roleId - The role id.@POST
@Path(value="/{id: [a-f0-9]{32}}")
public javax.ws.rs.core.Response createResource(@PathParam(value="id")
BigInteger scopeId)
scopeId - The ID of the scope to link.@DELETE
@Path(value="/{id: [a-f0-9]{32}}")
public javax.ws.rs.core.Response deleteResource(@PathParam(value="id")
BigInteger scopeId)
scopeId - The Unique Identifier for the scope.protected String getAdminScope()
getAdminScope in class AbstractServiceprotected String getAccessScope()
getAccessScope in class AbstractServiceCopyright © 2018 krotscheck.net. All rights reserved.