Package org.sete.domain.type

Examples of org.sete.domain.type.ScienceProjectStatusType


        pat.setLongDescription("Read/Write Long Description");
        types.add(pat);
    }

    private static void createScienceProjectStatusTypes(List<AbstractLookupType> types) {
        ScienceProjectStatusType spst = new ScienceProjectStatusType();
        spst.setId(3);
        spst.setKey(ScienceProjectStatusType.Key.REGISTERED_KEY.getKey());
        spst.setLabel("REGISTERED Label");
        spst.setDescription("REGISTERED DESCRIPTION");
        spst.setLongDescription("REGISTERED LONG DESCRIPTION");
        types.add(spst);

        spst = new ScienceProjectStatusType();
        spst.setId(4);
        spst.setKey(ScienceProjectStatusType.Key.SCORED_KEY.getKey());
        spst.setLabel("SCORED Label");
        spst.setDescription("SCORED DESCRIPTION");
        spst.setLongDescription("SCORED LONG DESCRIPTION");
        types.add(spst);

        spst = new ScienceProjectStatusType();
        spst.setId(5);
        spst.setKey(ScienceProjectStatusType.Key.SCORINGINPROGRESS_KEY.getKey());
        spst.setLabel("Scoring In Progress");
        spst.setDescription("Scoring In Progress Description");
        spst.setLongDescription("Scoring In Progress Long Description");
        types.add(spst);
    }
View Full Code Here


     
      });
    noDups.addAll(awards);
      noDups.add(aw);
    sp.setAwards(noDups);
    ScienceProjectStatusType spstScored = ScienceProjectStatusType.forKey(ScienceProjectStatusType.Key.SCORED_KEY);
    sp.setScienceProjectStatusType(spstScored);
    sp.setStatusChangedBy(Integer.valueOf(spvo.getScorer()));
    projectDao.saveScienceProject(sp);
               
   }
View Full Code Here

}
/**
* Loads all Science Projects affiliated with a give award type and status (Scored, in_progress..)
*/
public List<ScienceProjectVo> loadAllSciencProjectsFor(String awardType, Key scored_key) {
  ScienceProjectStatusType spst = ScienceProjectStatusType.forKey(scored_key);
  AwardType awtp = TypeUtil.forKey(AwardType.class, awardType);
 
  List<ScienceProject> projects = projectDao.findByAwardType(awtp, spst);
    List<ScienceProjectVo> projectVos = new ArrayList<ScienceProjectVo>();
    ScienceProjectVo vo = null;
View Full Code Here

        checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    ScoreProjectService service = getService(ScoreProjectService.class);
    ViewProjectsToScoreVo vptsvo = new ViewProjectsToScoreVo();
    BeanUtils.copyProperties(vptsvo, form);
    vptsvo.setScorer(getAuthenticatedUser(request).getUserId().toString());
    ScienceProjectStatusType spst = ScienceProjectStatusType.forKey(ScienceProjectStatusType.Key.SCORINGINPROGRESS_KEY);
    service.updateProjectStatus(vptsvo.getProjectId(), vptsvo.getScorer(), spst);
   
    HttpSessionManager.bind(request.getSession(), "projectId", vptsvo.getProjectId());
    HttpSessionManager.bind(request.getSession(), "projectName", service.loadScienceProject(vptsvo.getProjectId()).getName());
   
View Full Code Here

    public String getMessage() {
        return welcomeDao.getMessage();
    }

    public void saveMessage() {
        ScienceProjectStatusType type = new ScienceProjectStatusType();
        type.setDescription("Project is in the proposal stage.");
        type.setKey("PROPOSAL");
        type.setLabel("PROPOSAL STAGE");

        welcomeDao.setMessage(type);
    }
View Full Code Here

    private BaseDao baseDao;

    public String getMessage() {
        List<ScienceProjectStatusType> statuses = baseDao.loadAll(ScienceProjectStatusType.class);
        ScienceProjectStatusType type = statuses.get(0);
        return "[key=" + type.getKey() + ", label=" + type.getLabel() + ", desc=" + type.getDescription() + "]";
    }
View Full Code Here

TOP

Related Classes of org.sete.domain.type.ScienceProjectStatusType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.