@Path(value="/application") @ScopesAllowed(value={"kangaroo:application","kangaroo:application_admin"}) public final class ApplicationService extends AbstractService
| Constructor and Description |
|---|
ApplicationService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
browseApplications(int offset,
int limit,
String sort,
SortOrder order,
BigInteger ownerId)
Browse the applications in the system.
|
javax.ws.rs.core.Response |
createResource(Application application)
Create an application.
|
javax.ws.rs.core.Response |
deleteResource(BigInteger id)
Delete an application.
|
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.
|
javax.ws.rs.core.Response |
getResource(BigInteger id)
Returns a specific application.
|
javax.ws.rs.core.Response |
search(Integer offset,
Integer limit,
String queryString,
BigInteger ownerId)
Search the applications in the system.
|
javax.ws.rs.core.Response |
updateResource(BigInteger id,
Application application)
Update an application.
|
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)
offset - The offset of the first applications 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.@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response browseApplications(@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)
offset - The offset of the first applications 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.@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 application.@POST @Consumes(value="application/json") public javax.ws.rs.core.Response createResource(Application application)
application - The application 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,
Application application)
id - The Unique Identifier for the application.application - The application 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 application.protected String getAdminScope()
getAdminScope in class AbstractServiceprotected String getAccessScope()
getAccessScope in class AbstractServiceCopyright © 2018 krotscheck.net. All rights reserved.