return job;
}
public Job triggerNow( String jobId ) throws SchedulerException {
Job job = getScheduler().getJob( jobId );
if ( getPolicy().isAllowed( SchedulerAction.NAME ) ) {
getScheduler().triggerNow( jobId );
} else {
if ( getSession().getName().equals( job.getUserName() ) ) {
getScheduler().triggerNow( jobId );
}
}
// udpate job state
job = getScheduler().getJob( jobId );