robe-admin/src/main/java/io/robe/admin/resources/JobResource.java
@RobeService(group = "HJobInfo", description = "Returns all HTriggerInfo as a collection with the matches given job id.")
    @PUT
    @Path("{id}/schedule")
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public boolean schedule(@RobeAuth Credentials credentials, @PathParam("id") String id) {
        HJobInfo info = jobDao.findById(id);
        if (info == null) {
            throw new WebApplicationException(Response.status(404).build());
        }
        try {
            JobInfo dto = new HibernateJobInfoProvider().getJob(info.getJobClass());
            JobDetail detail = HibernateJobInfoProvider.convert2JobDetail(dto);
            Set<Trigger> triggers = new HashSet<>(dto.getTriggers().size());
            for (TriggerInfo triggerInfo : dto.getTriggers()) {
                if (triggerInfo.getType().equals(TriggerInfo.Type.CRON) ||
                        triggerInfo.getType().equals(TriggerInfo.Type.SIMPLE)) {
                    triggers.add(HibernateJobInfoProvider.convert2Trigger(triggerInfo, dto));
                }
            }
            JobManager.getInstance().scheduleJob(detail, triggers, false);
            return true;
        } catch (SchedulerException e) {
            e.printStackTrace();
            return false;
        }
    }
@RobeService(group = "HJobInfo", description = "Returns all HTriggerInfo as a collection with the matches given job id.")
    @PUT
    @Path("{id}/schedule")
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public boolean schedule(@RobeAuth Credentials credentials, @PathParam("id") String id) {
        HJobInfo info = jobDao.findById(id);
        if (info == null) {
            throw new WebApplicationException(Response.status(404).build());
        }
        try {
            JobInfo dto = new HibernateJobInfoProvider().getJob(info.getJobClass());
            JobDetail detail = HibernateJobInfoProvider.convert2JobDetail(dto);
            Set<Trigger> triggers = new HashSet<>(dto.getTriggers().size());
            for (TriggerInfo triggerInfo : dto.getTriggers()) {
                if (triggerInfo.getType().equals(TriggerInfo.Type.CRON) ||
                        triggerInfo.getType().equals(TriggerInfo.Type.SIMPLE)) {
                    triggers.add(HibernateJobInfoProvider.convert2Trigger(triggerInfo, dto));
                }
            }
            JobManager.getInstance().scheduleJob(detail, triggers, false);
            return true;
        } catch (SchedulerException e) {
            e.printStackTrace();
            return false;
        }
    }
Returns all HTriggerInfo as a collection with the matches given job id.

@param credentials auto fill by {@link RobeAuth} annotation for authentication.
@return all {@link HTriggerInfo} as a collection