@RolesAllowed(value="researcher") public class JobResource extends Object
| Constructor and Description |
|---|
JobResource(UserDao inUserDao,
PropositionDefinitionConverterVisitor inVisitor,
PhenotypeEntityDao inPropositionDao,
EtlClient inEtlClient,
ServiceProperties inProperties)
Construct a new job resource with the given job update thread.
|
| Modifier and Type | Method and Description |
|---|---|
org.eurekaclinical.eureka.client.comm.Job |
getJob(Long inJobId) |
List<org.eurekaclinical.eureka.client.comm.Job> |
getJobsByUser(String order)
Get a list of jobs associated with user referred to by the given unique
identifier.
|
org.eurekaclinical.eureka.client.comm.Statistics |
getJobStats(javax.servlet.http.HttpServletRequest request,
Long inJobId,
String key) |
org.eurekaclinical.eureka.client.comm.Statistics |
getJobStatsRoot(javax.servlet.http.HttpServletRequest request,
Long inJobId) |
List<org.eurekaclinical.eureka.client.comm.Job> |
getLatestJob() |
List<org.eurekaclinical.eureka.client.comm.Job> |
getStatus(org.eurekaclinical.eureka.client.comm.JobFilter inFilter)
Get the status of the most recent job process for the given user.
|
javax.ws.rs.core.Response |
submit(javax.servlet.http.HttpServletRequest request,
org.eurekaclinical.eureka.client.comm.JobSpec jobSpec)
Create a new job (by uploading a new file).
|
@Inject public JobResource(UserDao inUserDao, PropositionDefinitionConverterVisitor inVisitor, PhenotypeEntityDao inPropositionDao, EtlClient inEtlClient, ServiceProperties inProperties)
inUserDao - The data access object used to fetch information about
users.inVisitor - The proposition definition converter visitor that will
be used to determine how to convert proposition definitionsinPropositionDao - The data access object used to fetch information
about propositions.inEtlClient - The ETL client to use to perform ETL operations.public javax.ws.rs.core.Response submit(@Context
javax.servlet.http.HttpServletRequest request,
org.eurekaclinical.eureka.client.comm.JobSpec jobSpec)
jobSpec - The file upload to add.Response indicating the result of the
operation.public org.eurekaclinical.eureka.client.comm.Job getJob(Long inJobId)
public org.eurekaclinical.eureka.client.comm.Statistics getJobStats(@Context
javax.servlet.http.HttpServletRequest request,
Long inJobId,
String key)
public org.eurekaclinical.eureka.client.comm.Statistics getJobStatsRoot(@Context
javax.servlet.http.HttpServletRequest request,
Long inJobId)
public List<org.eurekaclinical.eureka.client.comm.Job> getJobsByUser(String order)
order - The order in which to get the user's jobs.Job objects associated with the user.@RolesAllowed(value="admin") public List<org.eurekaclinical.eureka.client.comm.Job> getStatus(org.eurekaclinical.eureka.client.comm.JobFilter inFilter)
inFilter - The filter to use when fetching the job statuses.List of Jobs containing the status information.public List<org.eurekaclinical.eureka.client.comm.Job> getLatestJob()
Copyright © 2012–2016 Emory University. All rights reserved.