Examples of remGroup()


Examples of net.ae97.totalpermissions.permission.PermissionUser.remGroup()

    @Override
    public boolean playerRemoveGroup(String world, String player, String group) {
        try {
            PermissionUser user = manager.getUser(player);
            user.remGroup(group, world);
            return true;
        } catch (IOException ex) {
            plugin.getLogger().log(Level.SEVERE,
                    String.format("[%s] An error occured while saving perms", totalperms.getDescription().getName()), ex);
            return false;
View Full Code Here

Examples of org.exist.security.Account.remGroup()

                @Override
                public Void withBroker(final DBBroker broker) throws EXistException, PermissionDeniedException {
                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                   
                    final Account account = sm.getAccount(member);
                    account.remGroup(group);
                    sm.updateAccount(account);
                   
                    return null;
                }
            });
View Full Code Here

Examples of org.exist.security.Account.remGroup()

        final Account u = manager.getAccount(name);
       
        for (final String g : groups) {
          if (g.equals(rgroup)) {
            u.remGroup(g);
          }
        }
       
        return manager.updateAccount(u);
View Full Code Here

Examples of org.exist.security.Account.remGroup()

            final SecurityManager sm = context.getBroker().getBrokerPool().getSecurityManager();

            final Account account = sm.getAccount(userName);

            account.remGroup(groupName);

            //TEMP - ESCALATE TO DBA :-(
            //START TEMP - Whilst we can remove the group from the user
            //we cannot update the user because we do not have sufficient permissions
            //in the real world we should not be able to do either. The modelling of group
View Full Code Here

Examples of org.exist.security.Account.remGroup()

                @Override
                public Void withBroker(final DBBroker broker) throws XMLDBException, LockException, PermissionDeniedException, IOException, EXistException, TriggerException, SyntaxException {
                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                   
                    final Account account = sm.getAccount(member);
                    account.remGroup(group);
                    sm.updateAccount(account);

                    return null;
                }
            });
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.