Examples of ProjectDTO


Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

    if (checkAuthorized(request, response, false)) {
      // set access for each project
      String currentUser = (String) request.getSession(true).getAttribute("username");
      Collection projects = Project.getAllProjects();
      for (Iterator i = projects.iterator(); i.hasNext();) {
        ProjectDTO projectDTO = (ProjectDTO)i.next();
        (new Project(projectDTO)).loadSecurity(currentUser);
      }
      request.setAttribute("projects", projects);
     
      return mapping.findForward(Constants.FORWARD_NAME_AUTHORIZED);
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

  private static Logger log = Logger.getLogger(Project.class);

  private String logfile = null;

  public Project() {
    this(new ProjectDTO());
  }
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

    File[] possibleSites = f.listFiles();
    for (int i = 0; i < possibleSites.length; i++) {
      if (possibleSites[i].isFile()) {
        String name = possibleSites[i].getName();
        if (name.endsWith(".xml")) {
          ProjectDTO projectDTO = new ProjectDTO();
          projectDTO.setName(name.substring(0, name.length() - 4));
          (new Project(projectDTO)).loadData();
          sites.add(projectDTO);
        }
      }
    }
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

  private static Logger log = Logger.getLogger(Project.class);

  private String logfile = null;

  public Project() {
    this(new ProjectDTO());
  }
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

    File[] possibleSites = f.listFiles();
    for (int i = 0; i < possibleSites.length; i++) {
      if (possibleSites[i].isFile()) {
        String name = possibleSites[i].getName();
        if (name.endsWith(".xml")) {
          ProjectDTO projectDTO = new ProjectDTO();
          projectDTO.setName(name.substring(0, name.length() - 4));
          (new Project(projectDTO)).loadData();
          sites.add(projectDTO);
        }
      }
    }
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

    if (checkAuthorized(request, response, false)) {
      // set access for each project
      String currentUser = (String) request.getSession(true).getAttribute("username");
      Collection projects = Project.getAllProjects();
      for (Iterator i = projects.iterator(); i.hasNext();) {
        ProjectDTO projectDTO = (ProjectDTO)i.next();
        (new Project(projectDTO)).loadSecurity(currentUser);
      }
      request.setAttribute("projects", projects);
     
      return mapping.findForward(Constants.FORWARD_NAME_AUTHORIZED);
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

    if (checkAuthorized(request, response, false)) {
      // set access for each project
      String currentUser = (String) request.getSession(true).getAttribute("username");
      Collection projects = Project.getAllProjects();
      for (Iterator i = projects.iterator(); i.hasNext();) {
        ProjectDTO projectDTO = (ProjectDTO)i.next();
        (new Project(projectDTO)).loadSecurity(currentUser);
      }
      request.setAttribute("projects", projects);
     
      return mapping.findForward(Constants.FORWARD_NAME_AUTHORIZED);
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

  private static Logger log = Logger.getLogger(Project.class);

  private String logfile = null;

  public Project() {
    this(new ProjectDTO());
  }
View Full Code Here

Examples of org.apache.forrest.forrestbot.webapp.dto.ProjectDTO

    File[] possibleSites = f.listFiles();
    for (int i = 0; i < possibleSites.length; i++) {
      if (possibleSites[i].isFile()) {
        String name = possibleSites[i].getName();
        if (name.endsWith(".xml")) {
          ProjectDTO projectDTO = new ProjectDTO();
          projectDTO.setName(name.substring(0, name.length() - 4));
          (new Project(projectDTO)).loadData();
          sites.add(projectDTO);
        }
      }
    }
View Full Code Here

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
TOP
Copyright © 2018 www.massapi.com. 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.