Examples of removeMember()


Examples of org.osgi.service.useradmin.Group.removeMember()

        User user = getUser(username);
        if (user == null) {
            throw new UserNotFoundException(username);
        }
        Group group = getGroup(user);
        group.removeMember(user);
        m_useradmin.removeRole(user.getName());
    }

    @Override
    public List<UserDTO> getData() {
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.GroupRepository.removeMember()

  @Test
  public void shouldRegenerateGroupRepoWhenMemberRepoIsRemoved()
      throws Exception
  {
    final GroupRepository groupRepo = givenAYumGroupRepoWith2RPMs();
    groupRepo.removeMember(repositoryIdForTest("2")).save();

    waitForNexusToSettleDown();

    final String primaryXml = getPrimaryXmlOf(groupRepo);
    assertThat(primaryXml, containsString("test-artifact"));
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenGroupRepository.removeMember()

    assertThat(repository.memberRepositories(), contains("central", "releases"));

    repository.addMember("snapshots");
    assertThat(repository.memberRepositories(), contains("central", "releases", "snapshots"));

    repository.removeMember("releases");
    assertThat(repository.memberRepositories(), contains("central", "snapshots"));
  }

  @Test
  public void removeGroup() {
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.