Examples of IUser


Examples of org.davinci.server.user.IUser

      throws IOException {
    Comment comment = extractComment(req);
   
    IUserManager userManager = ServerManager.getServerManager().getUserManager();
    String designerName = comment.getDesignerId();
    IUser designer = null;
    try {
      if(ServerManager.LOCAL_INSTALL && IDavinciServerConstants.LOCAL_INSTALL_USER.equalsIgnoreCase(designerName)) {
        designer = userManager.getUser(IDavinciServerConstants.LOCAL_INSTALL_USER);
      } else {
        designer = userManager.getUser(designerName);
      }
    } catch (UserException e) {
      errorString = "Failure getting user for 'designer'. Reason: " + e.getMessage();
      theLogger.severe((String) errorString);
      return;
    }
   
    //Set up project based on designer
    DavinciProject project = new DavinciProject();
    project.setOwnerId(designer.getUserID());
    comment.setProject(project);

    comment.setEmail(user.getPerson().getEmail());

    IDesignerUser du = ReviewManager.getReviewManager()
View Full Code Here

Examples of org.davinci.server.user.IUser

        if (this.maxUsers > 0 && this.usersCount >= this.maxUsers) {
            throw new UserException(UserException.MAX_USERS);
        }
        IPerson person = this.personManager.addPerson(userName, password, email);
        if (person != null) {
            IUser user = newUser(person, this.baseDirectory.newInstance(this.baseDirectory, userName));
          //  users.put(userName, user);
            //File userDir = user.getUserDirectory();
            //userDir.mkdir();
            //File settingsDir = user.getSettingsDirectory();
           // settingsDir.mkdir();
            try {
        user.createProject(IDavinciServerConstants.DEFAULT_PROJECT);
      } catch (IOException e) {
        throw new UserException(e);
      }
           
            this.usersCount++;
View Full Code Here

Examples of org.davinci.server.user.IUser

     */
    public boolean isValidUser(String userName) throws UserException, IOException {
        if (ServerManager.LOCAL_INSTALL && IDavinciServerConstants.LOCAL_INSTALL_USER.equals(userName)) {
            return true;
        }
        IUser user = getUser(userName);
        return user != null;
    }
View Full Code Here

Examples of org.eclipse.ecf.core.user.IUser

//            if (textEditor == null)
//                showErrorMessage(Messages.DocShareRosterMenuHandler_EXCEPTION_EDITOR_NOT_TEXT);
//            final String inputName = getInputName(textEditor);
//            if (inputName == null)
//                showErrorMessage(Messages.DocShareRosterMenuHandler_NO_FILENAME_WITH_CONTENT);
            final IUser user = roster.getUser();
            sender.startShare(user.getID(), rosterEntry.getUser().getID());
       
        return null;
    }
View Full Code Here

Examples of org.jresearch.flexess.umi.api.IUser

    checkAllModels(securityModels, object, operation, new SimpleCheckerFlow(object));
  }

  private List<EObject> loadRoles(final String applicationId, final String modelId, final String userId) throws UamClientException {
    final SecurityModel securityModel = getSecurityModel(modelId);
    final IUser user = userManager.getUser(userId);
    if (user == null) {
      throw new UamClientException(MessageFormat.format("User {0} is not found.", userId)); //$NON-NLS-1$
    }
    try {
      IRoleInstanceMetaInfo[] roleInstances = userRoles.getRoleInstances(applicationId, userId);
View Full Code Here

Examples of org.jresearch.gossip.singlesign.IUser

        String extUserLogin = null;
        User user = null;
        ServletContext application = request.getSession().getServletContext();

        //try to get ext user from session
        IUser extUser = (IUser) request.getSession().getAttribute(
                IConst.SESSION.EXT_USER_KEY);

        if (extUser != null) {
            extUserLogin = extUser.getName();
        } else {
            // try to get user login from JAAS
            if ((request.getUserPrincipal() != null)
                    && ((_userRole == null) || request.isUserInRole(_userRole))) {
                extUserLogin = request.getUserPrincipal().getName();
View Full Code Here

Examples of scotlandyard.engine.spec.IUser

    myEngine.icons.put("x1.gif",false);
    myEngine.icons.put("d1.gif",false);
   
   
    IUser mrx = myEngine.login(mrxEmail,mrxName,"0");
    IUser detective = myEngine.login(detectiveEmail,detectiveName,"1");

    game.addPlayer(mrx,true);

    game.addPlayer(detective,false);
    IPlayer player = game.getPlayer(mrxHash);
View Full Code Here

Examples of scotlandyard.engine.spec.IUser

    gameId=(gameId==null||"optional".equals(gameId)?System.currentTimeMillis()+"":gameId);
    Game game = new Game(gameId,mp);
    Engine.instance().games.put(game.getId(),game);
    game.setMapPath("/maps/palmerstonNorth.xml");

    IUser mrx = Engine.instance().login(mrxEmail,mrxName,"0");
    IUser detective = Engine.instance().login(detectiveEmail,detectiveName,"1");
   
    game.addPlayer(mrx,true);
    game.addPlayer(detective,false);
    game.start(game.getPlayer(mrxHash));
  }
View Full Code Here

Examples of scotlandyard.engine.spec.IUser

    myEngine.icons.put("x1.gif",false);
    myEngine.icons.put("d1.gif",false);
   
   
    IUser mrx = myEngine.login(mrxEmail,mrxName,"0");
    IUser detective = myEngine.login(detectiveEmail,detectiveName,"1");

    game.addPlayer(mrx,true);

    game.addPlayer(detective,false);
    IPlayer player = game.getPlayer(mrxHash);
View Full Code Here

Examples of scotlandyard.engine.spec.IUser

    new WebUserBean();
  }
 
  @Test
  public void testLogin() throws Exception{
    IUser mrx = Engine.instance().login(mrxEmail, mrxName,"0");
    IUser detective = Engine.instance().login(detectiveEmail, detectiveName,"1");
    Assert.assertTrue(Engine.instance().getUser(mrxHash).equals(mrx));
    Assert.assertTrue(Engine.instance().getUser(detectiveHash).equals(detective));
    Assert.assertFalse(Engine.instance().getUser(mrxHash).equals(detective));
    Assert.assertFalse(Engine.instance().getUser(detectiveHash).equals(mrx));
  }
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.