@Path(value="/client") @ScopesAllowed(value={"kangaroo:client","kangaroo:client_admin"}) public final class ClientService extends AbstractService
| Constructor and Description |
|---|
ClientService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
browse(int offset,
int limit,
String sort,
SortOrder order,
BigInteger ownerId,
BigInteger applicationId,
ClientType clientType)
Browse the clients in the system.
|
javax.ws.rs.core.Response |
createResource(Client client)
Create an client.
|
javax.ws.rs.core.Response |
deleteResource(BigInteger id)
Delete an scope.
|
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.
|
Class<ClientRedirectService> |
getRedirectService(BigInteger clientId)
Expose a subresource that manages the redirects on a client.
|
Class<ClientReferrerService> |
getReferrerService(BigInteger clientId)
Expose a subresource that manages the referrers on a client.
|
javax.ws.rs.core.Response |
getResource(BigInteger id)
Returns a specific scope.
|
javax.ws.rs.core.Response |
search(Integer offset,
Integer limit,
String queryString,
BigInteger ownerId,
BigInteger applicationId)
Search the clients in the system.
|
javax.ws.rs.core.Response |
updateResource(BigInteger id,
Client client)
Update an 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@GET
@Path(value="/search")
@Produces(value="application/json")
public javax.ws.rs.core.Response search(@DefaultValue(value="0") @QueryParam(value="offset")
Integer offset,
@DefaultValue(value="10") @QueryParam(value="limit")
Integer limit,
@DefaultValue(value="") @QueryParam(value="q")
String queryString,
@Optional @QueryParam(value="owner")
BigInteger ownerId,
@Optional @QueryParam(value="application")
BigInteger applicationId)
offset - The offset of the first scopes to fetch.limit - The number of data sets to fetch.queryString - The search term for the query.ownerId - An optional user ID to filter by.applicationId - An optional application ID to filter by.@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,
@Optional @QueryParam(value="owner")
BigInteger ownerId,
@Optional @QueryParam(value="application")
BigInteger applicationId,
@Optional @QueryParam(value="type")
ClientType clientType)
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.ownerId - An optional user ID to filter by.applicationId - An optional application ID to filter by.clientType - An optional client type to filter by.@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 scope.@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createResource(Client client)
client - The client 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,
Client client)
id - The Unique Identifier for the client.client - The client to update.@DELETE
@Path(value="/{id: [a-f0-9]{32}}")
public javax.ws.rs.core.Response deleteResource(@PathParam(value="id")
BigInteger id)
id - The Unique Identifier for the scope.@Path(value="/{clientId: [a-f0-9]{32}}/redirect")
public Class<ClientRedirectService> getRedirectService(@PathParam(value="clientId")
BigInteger clientId)
clientId - The ID of the client.@Path(value="/{clientId: [a-f0-9]{32}}/referrer")
public Class<ClientReferrerService> getReferrerService(@PathParam(value="clientId")
BigInteger clientId)
clientId - The ID of the client.protected String getAdminScope()
getAdminScope in class AbstractServiceprotected String getAccessScope()
getAccessScope in class AbstractServiceCopyright © 2018 krotscheck.net. All rights reserved.