Examples of removeGroup()


Examples of br.com.visualmidia.business.User.removeGroup()

    @Override
    protected void execute(PrevalentSystem system) throws BusinessException {
        for (Person person : system.people.values()) {
            if (person.getName().equals(personName)){
                User usuario = (User) person.getPersonType("user");
                usuario.removeGroup(groupName);
            }
        }
    }

}
View Full Code Here

Examples of com.ecyrd.jspwiki.auth.authorize.GroupManager.removeGroup()

  protected void tearDown() throws Exception
  {
    GroupManager groupManager = m_engine.getGroupManager();
    if ( groupManager.findRole( m_groupName ) != null )
    {
        groupManager.removeGroup( m_groupName );
    }
  }

  /** Call this setup program to use the save-profile workflow. */
  protected void setUpWithWorkflow() throws Exception
View Full Code Here

Examples of com.ecyrd.jspwiki.auth.authorize.GroupManager.removeGroup()

     
      // CLEANUP: delete the profile; user and page; should be back to old counts
      m_db.deleteByLoginName( newLogin );
      assertEquals( oldUserCount, m_db.getWikiNames().length );
     
      groupManager.removeGroup( group.getName() );
      assertEquals( oldGroupCount, groupManager.getRoles().length );
     
      m_engine.deletePage( pageName );
      assertEquals( oldPageCount, pageManager.getTotalPageCount() );
  }
View Full Code Here

Examples of com.shop.cache.api.client.io.SCClient.removeGroup()

  public List<String> removeGroup(SCGroup group) throws Exception
  {
    SCClient       client = getClient();
    try
    {
      return (client != null) ? client.removeGroup(group) : new ArrayList<String>();
    }
    finally
    {
      releaseClient(client);
    }
View Full Code Here

Examples of com.vmware.vim25.mo.HostLocalAccountManager.removeGroup()

    }
   
    //delete the new user and group
    //Note: you have to delete the user before delete the group
    hlam.removeUser("vimaster");
    hlam.removeGroup("masters");
   
    si.getServerConnection().logout();
  }
}
View Full Code Here

Examples of cu.ftpd.user.User.removeGroup()

    public void execute(String[] parameterList, Connection connection, User user, FileSystem fs) {
        if (user.hasPermission(UserPermission.GROUPS)) { // gadmins can't remove users from their group
            try {
                User u = ServiceManager.getServices().getUserbase().getUser(parameterList[1]);
                u.removeGroup(parameterList[2]);
                // remove leech and allotments for the user in this group
                ServiceManager.getServices().getUserbase().setAllotmentForUser(0, u.getUsername(), parameterList[2], false);
                ServiceManager.getServices().getUserbase().setLeechForUser(false, u.getUsername(), parameterList[2], false);
                connection.respond("200 sucessfully removed user " + parameterList[1] + " from group " + parameterList[2] + '.');
            } catch (NoSuchUserException e) {
View Full Code Here

Examples of de.bananaco.permissions.interfaces.PermissionSet.removeGroup()

        PermissionSet set = perms.getPermissionSet(world);
        if (set == null) {
            return false;
        }

        set.removeGroup(player, group);
        return true;
    }

    @Override
    public String[] getPlayerGroups(String world, String player) {
View Full Code Here

Examples of javax.jdo.FetchPlan.removeGroup()

    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.removeGroup("all").addGroup("default");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
   
View Full Code Here

Examples of javax.jdo.FetchPlan.removeGroup()

    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.removeGroup("default").addGroup("none");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
   
View Full Code Here

Examples of javax.jdo.FetchPlan.removeGroup()

    children.add(child2);
    parent.setChildren(children);
   
    PersistenceManager pm = pmf.getPersistenceManager();
    FetchPlan fp = pm.getFetchPlan();
    fp.removeGroup("none").addGroup("values");
    pm.currentTransaction().begin();
    logger.log(BasicLevel.DEBUG, "make persistent the person " + parent.toString());
    pm.makePersistent(parent);
    pm.currentTransaction().commit();
   
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.