Package org.davinci.server.user

Examples of org.davinci.server.user.IPersonManager


      String name = req.getParameter("searchname");
      String count = req.getParameter("count");
      String startString = req.getParameter("start");
      String type = req.getParameter("type");

      IPersonManager personManager = ServerManager.getServerManager().getPersonManager();

      if("photo".equals(type)){
        responseString = personManager.getPhotoRepositoryPath();
      }else{
        int resultNumber = Integer.parseInt(count);
        int start = Integer.parseInt(startString);
        IPerson[] persons;
        if(usernameTypeaheadEnabled){
          persons = personManager.getPersons(name, resultNumber, start);
        }else{
          persons = new IPerson[0];
        }
        responseString = arrayToJson(persons);
      }
View Full Code Here


 
  public String getUserID() {
    if (name.equals("")) {
      //Try and look it up... this is necessary because reviewer doesn't necessarily have
      //a user name at the time they are invited to a review
      IPersonManager personManager = ServerManager.getServerManager().getPersonManager();
      IPerson person = personManager.getPersonByEmail(email);
      if (person != null) {
        name = person.getUserID();
      }
    }
    return name;
View Full Code Here

    return versions.values().iterator();
  }

  public String getDisplayName() {
    String displayName = this.getEmail();
    IPersonManager personManager = ServerManager.getServerManager().getPersonManager();
    IPerson person = personManager.getPersonByEmail(this.getEmail());
    if (person != null) {
      displayName = person.getDisplayName();
    }
   
View Full Code Here

TOP

Related Classes of org.davinci.server.user.IPersonManager

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.