Examples of Permission


Examples of de.fu_berlin.inf.dpp.User.Permission

            if (!user.isInSarosSession()) {
                throw new IllegalArgumentException(MessageFormat.format(
                    Messages.PermissionManager_buddy_no_participant,
                    user));
            }
            Permission permission = permissionActivity.getPermission();
            this.sarosSession.setPermission(user, permission);
        }
    }
View Full Code Here

Examples of evolaris.framework.sys.datamodel.Permission

    }
  } 
 
  @SuppressWarnings("unchecked")
  private AnonymousAccessRule getAnonymousPermission(AccessControlledEntry object, Long permission) {
    Permission p = (Permission)session.get(Permission.class, permission);   
    List<AnonymousAccessRule> list = session.createCriteria(AnonymousAccessRule.class)
                      .add(Restrictions.eq("accessControlEntry", object))
                      .add(Restrictions.eq("permission", p))
                      .list();
    return list != null && list.size() > 0 ? list.get(0) : null;
View Full Code Here

Examples of gabriel.Permission

  public void addPermission(Principal principal, List permissions) {
    AclEntry entry = new AclEntry(principal);

    Iterator iterator = permissions.iterator();
    while (iterator.hasNext()) {
      Permission permission = (Permission) iterator.next();
      entry.addPermission(permission);
    }
    addEntry(entry);
  }
View Full Code Here

Examples of it.hotel.model.permission.Permission

    SystemUtils.getLogger().finest("Invocato");
    try {
      this.getPermissionDAO().deletePermission(permissionName);
      List permissions = new ArrayList(_permissions);
      for (int i=0; i<permissions.size(); i++) {
        Permission currentPerm = (Permission) permissions.get(i);
        if (permissionName.equalsIgnoreCase(currentPerm.getName())) {
          _permissions.remove(currentPerm);
          break;
        }
      }
      Iterator roleIt = _roles.values().iterator();
View Full Code Here

Examples of java.security.Permission

      PermissionCollection storage = LDAPRealm.loadPermissions(ctx, dn);
      PermissionCollection altered = new Permissions();
     
      boolean found = false;
      for (Enumeration enu=storage.elements(); enu.hasMoreElements(); ) {
        Permission p = (Permission)enu.nextElement();
        if (perm.equals(p)) {
          found = true;
        } else {
          altered.add(p);
        }
View Full Code Here

Examples of java.security.acl.Permission

            if (permissions == EMPTY_SET) {
                permissions = new HashSet();
            }
            Iterator iterator = aclEntry.permissions();
            while (iterator.hasNext()) {
                Permission p = (Permission) iterator.next();
                permissions.add(p);
            }
        } else {
            if (permissions != EMPTY_SET) {
                Iterator iterator = aclEntry.permissions();
                while (iterator.hasNext()) {
                    Permission p = (Permission) iterator.next();
                    permissions.remove(p);
                }
            }
        }
        return permissions;
View Full Code Here

Examples of net.datacrow.core.objects.helpers.Permission

           
            if (!plugin.isAuthorizable())
                continue;
           
            for (DcObject child : user.getChildren()) {
                Permission p = (Permission) child;
                if (p.getPlugin() != null &&  plugin.getKey().equals(p.getPlugin())) {
                    permission = p;
                    break;
                }
            }
           
View Full Code Here

Examples of net.milkbowl.vault.permission.Permission

        hookPermission("rscPermissions", Permission_rscPermissions.class, ServicePriority.Normal, "ru.simsonic.rscPermissions.MainPluginClass");

        // Try to load KPerms
        hookPermission("KPerms", Permission_KPerms.class, ServicePriority.Normal, "com.lightniinja.kperms.KPermsPlugin");

        Permission perms = new Permission_SuperPerms(this);
        sm.register(Permission.class, perms, this, ServicePriority.Lowest);
        log.info(String.format("[Permission] SuperPermissions loaded as backup permission system."));

        this.perms = sm.getRegistration(Permission.class).getProvider();
    }
View Full Code Here

Examples of net.webpasswordsafe.common.model.Permission

    {
        if (clientSessionUtil.isAuthorized(Function.ADD_PASSWORD))
        {
            Password newPassword = new Password();
            newPassword.setMaxEffectiveAccessLevel(AccessLevel.GRANT);
            newPassword.addPermission(new Permission(clientSessionUtil.getLoggedInUser(), AccessLevel.GRANT));
            new PasswordDialog(newPassword, passwordSearchPanel).show();
        }
        else
        {
            MessageBox.alert(textMessages.error(), textMessages.notAuthorized(), null);
View Full Code Here

Examples of org.acegisecurity.acls.Permission

                recipient = new PrincipalSid(rs.getString("ACE_SID"));
            } else {
                recipient = new GrantedAuthoritySid(rs.getString("ACE_SID"));
            }

            Permission permission = BasePermission.buildFromMask(rs.getInt("MASK"));
            boolean granting = rs.getBoolean("GRANTING");
            boolean auditSuccess = rs.getBoolean("AUDIT_SUCCESS");
            boolean auditFailure = rs.getBoolean("AUDIT_FAILURE");

            AccessControlEntryImpl ace = new AccessControlEntryImpl(aceId, acl, recipient, permission, granting,
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.