Package org.dspace.app.webui.cris.dto

Examples of org.dspace.app.webui.cris.dto.ResearcherPageDTO


  @Override
  public ModelAndView handleRequest(HttpServletRequest arg0,
      HttpServletResponse arg1) throws Exception {
    Map<String, Object> model = new HashMap<String, Object>();
    String errore = arg0.getParameter("error");
    ResearcherPageDTO researcherDTO = new ResearcherPageDTO();
    if(errore!=null && Boolean.parseBoolean(errore)==true) {
      //errore     
      model.put("error", "jsp.dspace-admin.hku.error.add-researcher");
    }   
    model.put("dto", researcherDTO);
View Full Code Here


    @Override
    protected ModelAndView onSubmit(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors)
            throws Exception
    {
        ResearcherPageDTO researcherDTO = (ResearcherPageDTO) command;
        String staffNo = researcherDTO.getSourceID();
        ResearcherPage researcher = null;
        if (staffNo != null && !staffNo.isEmpty())
        {
            researcher = applicationService
                    .getResearcherPageByStaffNo(researcherDTO.getSourceID());

            if (researcher != null)
            {

                return new ModelAndView("redirect:/cris/rp/"
View Full Code Here

        List<ResearcherPage> researchers = applicationService
                .getPaginateList(ResearcherPage.class, sort,
                        "desc".equals(dir), page, pagesize);
        LinkedList<ResearcherPageDTO> objectList = new LinkedList<ResearcherPageDTO>();
        for(ResearcherPage r : researchers) {            
            ResearcherPageDTO rpd = new ResearcherPageDTO();
            rpd.setId(r.getId());
            rpd.setUuid(r.getUuid());
            rpd.setSourceID(r.getSourceID());
            rpd.setFullName(r.getFullName());
            rpd.setEpersonID(r.getEpersonID());        
            rpd.setStatus(r.getStatus());
            rpd.setRp(r);
            if((r.getId()).equals(id)) {
                objectList.addFirst(rpd);
            }
            else {
                objectList.add(rpd);
View Full Code Here

TOP

Related Classes of org.dspace.app.webui.cris.dto.ResearcherPageDTO

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.