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

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


        List<Project> researchers = applicationService
                .getPaginateList(Project.class, sort,
                        "desc".equals(dir), page, pagesize);
        LinkedList<ProjectDTO> objectList = new LinkedList<ProjectDTO>();
        for(Project r : researchers) {            
            ProjectDTO rpd = new ProjectDTO();
            rpd.setId(r.getId());
            rpd.setUuid(r.getUuid());
            rpd.setSourceID(r.getSourceID());
            rpd.setTitle(r.getName());           
            rpd.setStatus(r.getStatus());
            rpd.setGrant(r);
            if((r.getId()).equals(id)) {
                objectList.addFirst(rpd);
            }
            else {
                objectList.add(rpd);
View Full Code Here


            HttpServletResponse response) throws Exception
    {

        ModelAndView mav = super.handleRequest(request, response);    
        String errore = request.getParameter("error");
        ProjectDTO grantDTO = new ProjectDTO();
        if (errore != null && Boolean.parseBoolean(errore) == true)
        {
            // errore
            mav.getModel().put("error", "jsp.dspace-admin.hku.error.add-grant");
        }
View Full Code Here

    @Override
    protected ModelAndView onSubmit(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors)
            throws Exception
    {
        ProjectDTO grantDTO = (ProjectDTO) command;
        String code = grantDTO.getSourceID();
        Project grant = null;
        if (code != null && !code.isEmpty())
        {
            grant = applicationService.getResearcherGrantByCode(code);
            if (grant != null)
View Full Code Here

TOP

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

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.