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

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


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


    @Override
    protected ModelAndView onSubmit(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors)
            throws Exception
    {
        OrganizationUnitDTO orgunitDTO = (OrganizationUnitDTO) command;
        String code = orgunitDTO.getSourceID();
        OrganizationUnit orgunit = null;
        if (code != null && !code.isEmpty())
        {
            orgunit = applicationService.getOrganizationUnitByCode(code);
            if (orgunit != null)
View Full Code Here

            HttpServletResponse response) throws Exception
    {

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

TOP

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

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.