APISonar


com.sun.enterprise.v3.admin.commands.ListJobsCommand.DATE

> com > sun > enterprise > v3 > admin > commands > ListJobsCommand > DATE
com APIs sun APIs enterprise APIs v3 APIs admin APIs commands APIs ListJobsCommand APIs DATE APIs

Example 1
static Job constructJobModel(Map<String, Object> jobMap) {
        if (jobMap == null) {
            return null;
        }
        Job model = CompositeUtil.instance().getModel(Job.class);
        model.setJobId((String) jobMap.get(ListJobsCommand.ID));
        model.setJobName((String) jobMap.get(ListJobsCommand.NAME));
        model.setExecutionDate(jobMap.get(ListJobsCommand.DATE).toString());
        model.setCompletionDate(jobMap.get(ListJobsCommand.COMPLETION_DATE).toString());
        model.setJobState(jobMap.get(ListJobsCommand.STATE).toString());
        model.setExitCode((String) jobMap.get(ListJobsCommand.CODE));
        model.setMessage((String) jobMap.get(ListJobsCommand.MESSAGE));
        model.setUser((String) jobMap.get(ListJobsCommand.USER));
        return model;
    }