@Service(name="list-jobs") @PerLookup public class ListJobsCommand extends Object implements AdminCommand, AdminCommandSecurity.AccessCheckProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
CODE |
static String |
COMPLETION_DATE |
static String |
DATE |
static String |
ID |
static String |
MESSAGE |
static String |
NAME |
static String |
STATE |
protected static String |
TITLE_EXITCODE |
protected static String |
TITLE_JOBID |
protected static String |
TITLE_NAME |
protected static String |
TITLE_NONE |
protected static String |
TITLE_STATE |
protected static String |
TITLE_TIME |
protected static String |
TITLE_USER |
static String |
USER |
| Constructor and Description |
|---|
ListJobsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkScope(Job job) |
void |
display(Collection<JobInfo> jobInfoList,
AdminCommandContext context) |
void |
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties
where the keys are the parameter names and the values are the parameter values
|
Collection<? extends AccessRequired.AccessCheck> |
getAccessChecks()
Returns the
AccessChecks the command has computed at runtime
which should be included in the authorization, added to checks that
secure admin infers from the command's CRUD or RestEndpoint characteristics
or AccessRequired annotations. |
protected JobInfo |
getCompletedJobForId(String jobID) |
protected JobInfos |
getCompletedJobs() |
protected boolean |
isJobEligible(Job job) |
protected boolean |
isSingleJobOK(Job singleJob) |
static boolean |
skipJob(String name) |
protected static final String TITLE_NAME
protected static final String TITLE_JOBID
protected static final String TITLE_TIME
protected static final String TITLE_STATE
protected static final String TITLE_EXITCODE
protected static final String TITLE_USER
protected static final String TITLE_NONE
public static final String NAME
public static final String ID
public static final String DATE
public static final String CODE
public static final String USER
public static final String STATE
public static final String MESSAGE
public static final String COMPLETION_DATE
protected JobInfos getCompletedJobs()
protected boolean isSingleJobOK(Job singleJob)
protected boolean isJobEligible(Job job)
protected boolean checkScope(Job job)
public void execute(AdminCommandContext context)
AdminCommandexecute in interface AdminCommandcontext - informationpublic static boolean skipJob(String name)
public Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
AdminCommandSecurity.AccessCheckProviderAccessChecks the command has computed at runtime
which should be included in the authorization, added to checks that
secure admin infers from the command's CRUD or RestEndpoint characteristics
or AccessRequired annotations.getAccessChecks in interface AdminCommandSecurity.AccessCheckProviderAccessCheckspublic void display(Collection<JobInfo> jobInfoList, AdminCommandContext context)
Copyright © 2017. All rights reserved.