Examples of deleteUser()


Examples of org.codehaus.plexus.security.user.UserManager.deleteUser()

        user.setPassword( "adminpass" );
        um.addUser( user );

        assertEquals( 1, um.getUsers().size() );

        um.deleteUser( user.getPrincipal() );
        assertEquals( 0, um.getUsers().size() );

        // attempt finding a non-existent user
        try
        {
View Full Code Here

Examples of org.eclipse.orion.internal.server.core.metastore.SimpleMetaStoreUserPropertyCache.deleteUser()

    // add a property value and ensure it is in the cache
    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));

    // delete the user and ensure it is no longer in the cache
    userPropertyCache.deleteUser("user");
    assertNull(userPropertyCache.readUserByProperty("property", "value", false, false));
  }

  @Test
  public void testDeleteUserProperty() throws CoreException {
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

              }
            }
          }
        }
      }
      metastore.deleteUser(userId);
    } catch (CoreException e) {
      return statusHandler.handleRequest(req, resp, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Removing " + userId + " failed.", e));
    }
    Logger logger = LoggerFactory.getLogger("org.eclipse.orion.server.account"); //$NON-NLS-1$
    if (logger.isInfoEnabled())
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    // make sure the user is in the list of all users
    List<String> allUsers = metaStore.readAllUsers();
    assertTrue(allUsers.contains(userInfo.getUniqueId()));

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());

    // make sure the user is not the list of all users
    allUsers = metaStore.readAllUsers();
    assertFalse(allUsers.contains(userInfo.getUniqueId()));
  }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    userInfo.setUserName(testUserLogin);
    userInfo.setFullName(testUserLogin);
    metaStore.createUser(userInfo);

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());

    // make sure the user is not the list of all users
    List<String> allUsers = metaStore.readAllUsers();
    assertFalse(allUsers.contains(userInfo.getUniqueId()));
  }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    UserInfo readUserInfo = metaStore.readUserByProperty(UserConstants2.USER_NAME, testUserLogin, false, false);
    assertNotNull(readUserInfo);
    assertEquals(readUserInfo.getUniqueId(), userInfo.getUniqueId());

    // delete the user
    metaStore.deleteUser(testUserLogin);

    // read the user again
    UserInfo readUserInfo2 = metaStore.readUserByProperty(UserConstants2.USER_NAME, testUserLogin, false, false);
    assertNull(readUserInfo2);
  }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    // read the user using the cache
    UserInfo readUserInfo7 = metaStore.readUserByProperty(UserConstants2.EMAIL, newEmailAddress, false, false);
    assertNull(readUserInfo7);

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());

    // read the user using the cache
    UserInfo readUserInfo4 = metaStore.readUserByProperty(UserConstants2.EMAIL, newEmailAddress, false, false);
    assertNull(readUserInfo4);
  }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    // read the user using the cache
    UserInfo readUserInfo7 = metaStore.readUserByProperty(UserConstants2.OAUTH, newoauth, false, false);
    assertNull(readUserInfo7);

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());

    // read the user using the cache
    UserInfo readUserInfo4 = metaStore.readUserByProperty(UserConstants2.OAUTH, newoauth, false, false);
    assertNull(readUserInfo4);
  }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    // read the user using the cache
    UserInfo readUserInfo7 = metaStore.readUserByProperty(UserConstants2.OPENID, newOpenid, false, false);
    assertNull(readUserInfo7);

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());

    // read the user using the cache
    UserInfo readUserInfo4 = metaStore.readUserByProperty(UserConstants2.OPENID, newOpenid, false, false);
    assertNull(readUserInfo4);
  }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.IMetaStore.deleteUser()

    assertEquals(readUserInfo.getFullName(), fullName);
    assertEquals(readUserInfo.getFullName(), userInfo.getFullName());
    assertEquals(readUserInfo.getProperty("New"), "Property");

    // delete the user
    metaStore.deleteUser(userInfo.getUniqueId());
    List<String> allUsers = metaStore.readAllUsers();
    assertFalse(allUsers.contains(userInfo.getUniqueId()));
  }

  @Test
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.