Class JobService
java.lang.Object
com.netscape.cms.servlet.base.PKIService
com.netscape.cms.servlet.base.SubsystemService
org.dogtagpki.server.rest.v1.JobService
- All Implemented Interfaces:
JobResource
- Author:
- Endi S. Dewata
-
Field Summary
FieldsFields inherited from class PKIService
DEFAULT_LONG_CACHE_LIFETIME, DEFAULT_SIZE, headers, MESSAGE_FORMATS, MIN_FILTER_LENGTH, request, servletContext, servletRequest, uriInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJobInfo(String id, JobConfig jobConfig, boolean includeDetails) jakarta.ws.rs.core.ResponsefindJobs()Returns all jobs.jakarta.ws.rs.core.ResponseReturns a specific job.jakarta.ws.rs.core.ResponseStarts a specific job.Methods inherited from class SubsystemService
audit, auditConfigTokenGeneral, getResourceBundle, getSharedSubsystemConfDir, getSubsystemConfDir, getSubsystemName, getUserMessageMethods inherited from class PKIService
createCreatedResponse, createNoContentResponse, createOKResponse, createOKResponse, getCMSEngine, getLocale, getParams, getResponseFormat, getResponseFormat, marshall, resolveFormat, resolveFormat, resolveFormat, resolveFormat, sendConditionalGetResponse, unmarshall
-
Field Details
-
logger
public static final org.slf4j.Logger logger
-
-
Constructor Details
-
JobService
public JobService()
-
-
Method Details
-
createJobInfo
public JobInfo createJobInfo(String id, JobConfig jobConfig, boolean includeDetails) throws EBaseException - Throws:
EBaseException
-
findJobs
Description copied from interface:JobResourceReturns all jobs. If the method is executed by an admin, it will return all jobs. Otherwise, it will return all jobs owned by the user.- Specified by:
findJobsin interfaceJobResource- Throws:
EBaseException
-
getJob
Description copied from interface:JobResourceReturns a specific job. This method can only be executed by an admin or the job owner.- Specified by:
getJobin interfaceJobResource- Throws:
EBaseException
-
startJob
Description copied from interface:JobResourceStarts a specific job. This method can only be executed by an admin or the job owner.- Specified by:
startJobin interfaceJobResource- Throws:
EBaseException
-