@RobeService(group = "HJobInfo", description = "Returns all HJobInfo as a collection.")
    @GET
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public Collection<JobInfoDTO> getAll(@RobeAuth Credentials credentials, @SearchParam SearchModel search) {
        List<JobInfoDTO> dtoList = new LinkedList<>();
        for (HJobInfo info : jobDao.findAllStrict(search)) {
            JobInfoDTO dto = new JobInfoDTO(info);
            try {
                if (!JobManager.getInstance().isScheduledJob(dto.getName(), dto.getGroup())) {
                    dto.setStatus(JobInfoDTO.Status.UNSCHEDULED);
                } else {
                    if (JobManager.getInstance().isPausedJob(dto.getName(), dto.getGroup())) {
                        dto.setStatus(JobInfoDTO.Status.PAUSED);
                    } else {
                        dto.setStatus(JobInfoDTO.Status.ACTIVE);
                    }
                }
            } catch (SchedulerException e) {
                e.printStackTrace();
            }
            dtoList.add(dto);
        }
        return dtoList;
    }
@RobeService(group = "HJobInfo", description = "Returns all HJobInfo as a collection.")
    @GET
    @UnitOfWork(readOnly = true, cacheMode = GET, flushMode = FlushMode.MANUAL)
    public Collection<JobInfoDTO> getAll(@RobeAuth Credentials credentials, @SearchParam SearchModel search) {
        List<JobInfoDTO> dtoList = new LinkedList<>();
        for (HJobInfo info : jobDao.findAllStrict(search)) {
            JobInfoDTO dto = new JobInfoDTO(info);
            try {
                if (!JobManager.getInstance().isScheduledJob(dto.getName(), dto.getGroup())) {
                    dto.setStatus(JobInfoDTO.Status.UNSCHEDULED);
                } else {
                    if (JobManager.getInstance().isPausedJob(dto.getName(), dto.getGroup())) {
                        dto.setStatus(JobInfoDTO.Status.PAUSED);
                    } else {
                        dto.setStatus(JobInfoDTO.Status.ACTIVE);
                    }
                }
            } catch (SchedulerException e) {
                e.printStackTrace();
            }
            dtoList.add(dto);
        }
        return dtoList;
    }
@ RobeService ( group = "HJobInfo" , description = "Returns all HJobInfo as a collection." ) @ GET @ UnitOfWork ( readOnly = true , cacheMode = GET , flushMode = FlushMode . MANUAL ) public Collection < JobInfoDTO > getAll ( @ RobeAuth Credentials credentials , @ SearchParam SearchModel search ) { List < JobInfoDTO > dtoList = new LinkedList <> ( ) ; for ( HJobInfo info : jobDao . findAllStrict ( search ) ) { JobInfoDTO dto = new JobInfoDTO ( info ) ; try { if ( ! JobManager . getInstance ( ) . isScheduledJob ( dto . getName ( ) , dto . getGroup ( ) ) ) { dto . setStatus ( JobInfoDTO . Status . UNSCHEDULED ) ; } else { if ( JobManager . getInstance ( ) . isPausedJob ( dto . getName ( ) , dto . getGroup ( ) ) ) { dto . setStatus ( JobInfoDTO . Status . PAUSED ) ; } else { dto . setStatus ( JobInfoDTO . Status . ACTIVE ) ; } } } catch ( SchedulerException e ) { e . printStackTrace ( ) ; } dtoList . add ( dto ) ; } return dtoList ; }
Return all HJobInfo as a collection

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