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.")
    @GET
    @Path("{id}/triggers")
    @UnitOfWork
    public List<TriggerInfoDTO> getJobTriggers(@RobeAuth Credentials credentials, @PathParam("id") String id) {
        List<TriggerInfoDTO> dtos = new LinkedList<>();
        for (HTriggerInfo info : triggerDao.findByJobOid(id)) {
            TriggerInfoDTO dto = new TriggerInfoDTO(info);
            try {
                if (!JobManager.getInstance().isScheduledTrigger(dto.getName(), dto.getGroup())) {
                    dto.setStatus(JobInfoDTO.Status.UNSCHEDULED);
                } else {
                    if (JobManager.getInstance().isPausedTrigger(dto.getName(), dto.getGroup())) {
                        dto.setStatus(JobInfoDTO.Status.PAUSED);
                    } else {
                        dto.setStatus(JobInfoDTO.Status.ACTIVE);
                    }
                }
            } catch (SchedulerException e) {
                e.printStackTrace();
            }
            dtos.add(dto);
        }
        return dtos;
    }
@RobeService(group = "HJobInfo", description = "Returns all HTriggerInfo as a collection with the matches given job id.")
    @GET
    @Path("{id}/triggers")
    @UnitOfWork
    public List<TriggerInfoDTO> getJobTriggers(@RobeAuth Credentials credentials, @PathParam("id") String id) {
        List<TriggerInfoDTO> dtos = new LinkedList<>();
        for (HTriggerInfo info : triggerDao.findByJobOid(id)) {
            TriggerInfoDTO dto = new TriggerInfoDTO(info);
            try {
                if (!JobManager.getInstance().isScheduledTrigger(dto.getName(), dto.getGroup())) {
                    dto.setStatus(JobInfoDTO.Status.UNSCHEDULED);
                } else {
                    if (JobManager.getInstance().isPausedTrigger(dto.getName(), dto.getGroup())) {
                        dto.setStatus(JobInfoDTO.Status.PAUSED);
                    } else {
                        dto.setStatus(JobInfoDTO.Status.ACTIVE);
                    }
                }
            } catch (SchedulerException e) {
                e.printStackTrace();
            }
            dtos.add(dto);
        }
        return dtos;
    }
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