Examples of removePermission()


Examples of appeng.api.implementations.items.IBiometricCard.removePermission()

      ItemStack a = configSlot.getStack();
      if ( a != null && a.getItem() instanceof IBiometricCard )
      {
        IBiometricCard bc = (IBiometricCard) a.getItem();
        if ( bc.hasPermission( a, permission ) )
          bc.removePermission( a, permission );
        else
          bc.addPermission( a, permission );
      }
    }
    catch (EnumConstantNotPresentException ex)
View Full Code Here

Examples of at.riemers.zero.base.model.Role.removePermission()

            }
            // remove deleted permissions
            for (Permission p : new ArrayList<Permission>(role.getPermissions())) {
                if (!permissions.contains(p)) {
                    log.debug("remove permission");
                    role.removePermission(p);
                }
            }


            boolean error = false;
View Full Code Here

Examples of br.com.visualmidia.business.Group.removePermission()

    protected void execute(PrevalentSystem system) throws BusinessException {
        Group group = system.groups.get(nameGroup);
        for (String permission : group.getPermissions()) {
            if (permission == removePermission) {
                group.removePermission(removePermission);
            }
        }
    }
}
View Full Code Here

Examples of calclavia.api.mffs.card.ICardIdentification.removePermission()

          {
            idCard.addPermission(this.getManipulatingCard(), permission);
          }
          else
          {
            idCard.removePermission(this.getManipulatingCard(), permission);
          }
        }
        else
        {
          ModularForceFieldSystem.LOGGER.severe("Error handling security station permission packet: " + id + " - " + permission);
View Full Code Here

Examples of com.dthielke.starburst.Group.removePermission()

            boolean value = !permission.startsWith("^");
            permission = value ? permission : permission.substring(1);

            if (g.hasPermission(permission, false)) {
                g.removePermission(permission, true);

                for (User user : gm.getAffectedUsers(g)) {
                    user.applyPermissions(gm.getFactory());
                }
                return true;
View Full Code Here

Examples of com.dthielke.starburst.User.removePermission()

        User user = set.getUser(op);

        boolean value = !permission.startsWith("^");
        permission = value ? permission : permission.substring(1);
        if (user.hasPermission(permission, false)) {
            user.removePermission(permission, true);
            if (user.isActive()) {
                user.applyPermissions(perms.getGroupManager().getFactory());
            }
            return true;
        } else {
View Full Code Here

Examples of com.onarandombox.MultiversePortals.MVPortal.removePermission()

        MVPortal removed = this.portals.remove(portalName);
        MultiverseWorld world = this.plugin.getCore().getMVWorldManager().getMVWorld(removed.getWorld());
        removeFromWorldChunkPortals(world, removed);

        removed.removePermission();
        Permission portalAccess = this.plugin.getServer().getPluginManager().getPermission("multiverse.portal.access.*");
        Permission exemptAccess = this.plugin.getServer().getPluginManager().getPermission("multiverse.portal.exempt.*");
        Permission portalFill = this.plugin.getServer().getPluginManager().getPermission("multiverse.portal.fill.*");
        if (exemptAccess != null) {
            exemptAccess.getChildren().remove(removed.getExempt().getName());
View Full Code Here

Examples of com.volantis.shared.security.acl.mutable.MutableACLEntry.removePermission()

        // The entry should contain the permission as it has just been added.
        assertTrue(entry.checkPermission(permission1Mock));

        // Removing permission2 should fail as it has not been added.
        assertFalse(entry.removePermission(permission2Mock));

        // Removing permission1 should work as it has been added.
        assertTrue(entry.removePermission(permission1Mock));

        // Entries should be positive by default.
View Full Code Here

Examples of com.volantis.shared.security.acl.mutable.MutableACLEntry.removePermission()

        // Removing permission2 should fail as it has not been added.
        assertFalse(entry.removePermission(permission2Mock));

        // Removing permission1 should work as it has been added.
        assertTrue(entry.removePermission(permission1Mock));

        // Entries should be positive by default.
        assertFalse(entry.isNegative());

        // Making them negative should be honoured.
View Full Code Here

Examples of it.hotel.model.role.Role.removePermission()

        }
      }
      Iterator roleIt = _roles.values().iterator();
      while (roleIt.hasNext()) {
        Role role = (Role) roleIt.next();
        role.removePermission(permissionName);
      }
    } catch (Throwable t) {
      SystemUtils.logThrowable(t, this, "removePermission");
      throw new SystemException("Errore in rimozione permesso", t);
    }
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.