Examples of deleteUser()


Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.deleteUser()

    this.userId = userId;
  }

  public Void execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.deleteUser(userId);
    return null;
  }

}
View Full Code Here

Examples of org.jresearch.gossip.dao.UserDAO.deleteUser()

        UserDAO dao = UserDAO.getInstance();
        ProcessUserForm puForm=(ProcessUserForm)form;
        try {
           
            setUpdatedLogin(dao.getUserName(Integer.parseInt(puForm.getUid())));
            dao.deleteUser(puForm.getUid());
            log(request, "logs.LOG9",
                "uid=" + puForm.getUid());
        } catch (SQLException sqle) {
            getServlet().log("Connection.process", sqle);
            throw new SystemException(sqle);
View Full Code Here

Examples of org.nemesis.forum.ProfileManager.deleteUser()

        try {
         
          ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
          ProfileManager manager = forumFactory.getProfileManager();
          User u = manager.getUser(Integer.parseInt(request.getParameter("id")));
          manager.deleteUser(u);
          errors.add("general"new ActionError("delUser.confirm"));
         
        }
        catch( NotFoundException fnfe ) {
          errors.add("general"new ActionError("delUser.notFound"));         
View Full Code Here

Examples of org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao.deleteUser()

            PentahoSystem.get( IUserRoleDao.class, "userRoleDaoProxy", PentahoSessionHolder.getSession() );
        StringTokenizer tokenizer = new StringTokenizer( userNames, "\t" );
        while ( tokenizer.hasMoreTokens() ) {
          IPentahoUser user = roleDao.getUser( null, tokenizer.nextToken() );
          if ( user != null ) {
            roleDao.deleteUser( user );
          }
        }
      } catch ( Throwable th ) {
        return processErrorResponse( th.getLocalizedMessage() );
      }
View Full Code Here

Examples of org.sonatype.security.usermanagement.UserManager.deleteUser()

              + "change the anonymous username and password to another valid values!"
      );
    }

    UserManager userManager = userManagerFacade.getUserManager(source);
    userManager.deleteUser(userId);

    // flush authc
    eventBus.post(new UserPrincipalsExpired(userId, source));
  }
View Full Code Here

Examples of org.sonatype.security.usermanagement.UserManager.deleteUser()

  public void testDeleteUser()
      throws Exception
  {
    UserManager userManager = this.getUserManager();
    try {
      userManager.deleteUser("INVALID-USERNAME");
      Assert.fail("Expected UserNotFoundException");
    }
    catch (UserNotFoundException e) {
      // expected
    }
View Full Code Here

Examples of org.sonatype.security.usermanagement.UserManager.deleteUser()

    catch (UserNotFoundException e) {
      // expected
    }

    // this one will work
    userManager.deleteUser("test-user");

    // this one should fail
    try {
      userManager.deleteUser("test-user");
      Assert.fail("Expected UserNotFoundException");
View Full Code Here

Examples of org.sonatype.security.usermanagement.UserManager.deleteUser()

    // this one will work
    userManager.deleteUser("test-user");

    // this one should fail
    try {
      userManager.deleteUser("test-user");
      Assert.fail("Expected UserNotFoundException");
    }
    catch (UserNotFoundException e) {
      // expected
    }
View Full Code Here

Examples of org.sonatype.security.usermanagement.UserManager.deleteUser()

    user.addRole(new RoleIdentifier("default", "role3"));

    userManager.addUser(user, "my-password");

    // now delete the user
    userManager.deleteUser(userId);

    Configuration securityModel = this.getSecurityConfiguration();

    for (CUser tmpUser : securityModel.getUsers()) {
      if (userId.equals(tmpUser.getId())) {
View Full Code Here

Examples of org.sonatype.security.usermanagement.UserManager.deleteUser()

      throws Exception
  {
    String userId = "test-user-with-empty-role";

    UserManager userManager = this.getUserManager();
    userManager.deleteUser(userId);

    Configuration securityModel = this.getSecurityConfiguration();

    for (CUser tmpUser : securityModel.getUsers()) {
      if (userId.equals(tmpUser.getId())) {
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.