@Service @Path(value="/jobs") public class JobsResource extends CompositeResource
CompositeResource.CommandInvoker, CompositeResource.CreateCommandInvoker
compositeUtil, CONSUMES_TYPE, DETACHED, DETACHED_DEFAULT, EXCLUDE, INCLUDE, THREAD_POOL_CORE, THREAD_POOL_MAX
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo
Constructor and Description |
---|
JobsResource() |
Modifier and Type | Method and Description |
---|---|
protected String |
getCommandName() |
RestCollectionResponseBody<Job> |
getItems(boolean currentUser,
String include,
String exclude)
The GET method on this resource returns a list of Job entities that represent
each recent or current job known to this GlassFish instance.
|
JobResource |
getJobResource() |
protected ParameterMap |
getParameters() |
accepted, accepted, accepted, accepted, act, acted, acted, acted, actSse, addActionResourceLink, addResourceLink, badRequest, badRequest, badRequest, badRequest, create, created, created, created, created, createSse, deleted, deleted, deleted, executeCommand, executeDeleteCommand, executeDeleteCommand, executeDeleteCommandManaged, executeReadCommand, executeReadCommand, executeSseCommand, executeSseCommand, executeSseCommand, executeWriteCommand, executeWriteCommand, executeWriteCommandManaged, filterModel, filterModel, filterModel, generateDefaultName, getChildItemUri, getCollectionChildParentUri, getCompositeUtil, getExecutorService, getFilter, getFilter, getJsonModel, getLocale, getParentUri, getPathParam, getResponse, getResponse, getSubResource, getSubUri, getTypedModel, getUri, includeResourceLinks, launchDetachedCommand, newModel, newTemplate, notFound, ok, parameterMap, responseBody, restCollectionResponseBody, restCollectionResponseBody, restModelResponseBody, restModelResponseBody, restModelResponseBody, setSubjectRef, updated, updated, updated
getAuthenticatedUser, getSubject
@GET public RestCollectionResponseBody<Job> getItems(@QueryParam(value="currentUser") @DefaultValue(value="false") boolean currentUser, @QueryParam(value="__includeFields") String include, @QueryParam(value="__excludeFields") String exclude) throws Exception
Roles: PaasAdmin, TenantAdmin
currentUser
- Optional query parameter to restrict the set of returns Job
objects
to those for the current userjobId
field can be used to format the URI to
interact with a specific job.Exception
@Path(value="id/{jobId}") public JobResource getJobResource()
protected String getCommandName()
protected ParameterMap getParameters()
Copyright © 2020. All rights reserved.