@ScopesAllowed(value={"kangaroo:client","kangaroo:client_admin"}) public final class ClientRedirectService extends AbstractService
| Constructor and Description |
|---|
ClientRedirectService(BigInteger clientId)
Create a new instance of this redirect service.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
browse(int offset,
int limit,
String sort,
SortOrder order)
Browse the redirects for this client.
|
javax.ws.rs.core.Response |
createResource(ClientRedirect redirect)
Create a new redirect for this client.
|
javax.ws.rs.core.Response |
deleteResource(BigInteger redirectId)
Delete a redirect from a client.
|
protected String |
getAccessScope()
Return the redirect required to access resources on this service.
|
protected String |
getAdminScope()
Return the redirect required to access ALL resources on this services.
|
javax.ws.rs.core.Response |
getResource(BigInteger id)
Returns a specific redirect.
|
javax.ws.rs.core.Response |
updateResource(BigInteger id,
ClientRedirect redirect)
Update a redirect for this client.
|
assertCanAccess, assertCanAccessSubresource, executeQuery, getAdminApplication, getConfig, getCurrentUser, getFullTextSession, getInjector, getSearchFactory, getSecurityContext, getSession, getUriInfo, requireEntityInput, resolveEntityInput, resolveEntityInput, resolveFilterEntity, resolveOwnershipFilter, setConfig, setFullTextSession, setInjector, setSearchFactory, setSecurityContext, setSession, setUriInfo@Inject
public ClientRedirectService(@PathParam(value="clientId")
BigInteger clientId)
clientId - The client id, provided by the routed path.@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response browse(@QueryParam(value="offset") @DefaultValue(value="0")
int offset,
@QueryParam(value="limit") @DefaultValue(value="10")
int limit,
@QueryParam(value="sort") @DefaultValue(value="createdDate")
String sort,
@QueryParam(value="order") @DefaultValue(value="ASC")
SortOrder order)
offset - The offset of the first scopes to fetch.limit - The number of data sets to fetch.sort - The field on which the records should be sorted.order - The sort order, ASC or DESC.@GET
@Path(value="/{id: [a-f0-9]{32}}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getResource(@PathParam(value="id")
BigInteger id)
id - The Unique Identifier for the redirect.@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createResource(ClientRedirect redirect)
redirect - The redirect entity to create.@PUT
@Path(value="/{id: [a-f0-9]{32}}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateResource(@PathParam(value="id")
BigInteger id,
ClientRedirect redirect)
id - The Unique Identifier for the redirect.redirect - The redirect to update.@DELETE
@Path(value="/{id: [a-f0-9]{32}}")
public javax.ws.rs.core.Response deleteResource(@PathParam(value="id")
BigInteger redirectId)
redirectId - The Unique Identifier for the redirect.protected String getAdminScope()
getAdminScope in class AbstractServiceprotected String getAccessScope()
getAccessScope in class AbstractServiceCopyright © 2018 krotscheck.net. All rights reserved.