Examples of checkPermission()


Examples of anvil.server.Zone.checkPermission()

     
        Address target = dep.getAddress();
        if (hasPolicy) {
          String targetpath = target.getPathinfo();
          if (!ImportPermission.onSameDir(sourcepath, targetpath)) {
            if (!zone.checkPermission(new ImportPermission(targetpath))) {
              error(dep.getLocation(), "Access denied: "+targetpath);
            }
          }
        }
       
View Full Code Here

Examples of anvil.server.Zone.checkPermission()

      for(int j=0; j<c; j++) {
        if (zones[j] == zone) {
          continue alreadyChecked;
        }
      }
      if (zone.checkPermission(perm)) {
        return true;
      }
      zones[c++] = zone;
    }
   
View Full Code Here

Examples of be.c4j.ee.security.permission.GenericPermissionVoter.checkPermission()

        for (Object permissionConstant : AnnotationUtil.getPermissionValues(customNamedCheck)) {
            String beanName = nameFactory.generatePermissionBeanName(((NamedPermission) permissionConstant).name());

            GenericPermissionVoter voter = CDIUtil.getContextualReferenceByName(beanmanager, beanName
                    , GenericPermissionVoter.class);
            result.addAll(voter.checkPermission(invocationContext));

        }
        return result;
    }
View Full Code Here

Examples of com.ecyrd.jspwiki.auth.AuthorizationManager.checkPermission()

       
        if ( CREATE_GROUPS.equals( permission ) || CREATE_PAGES.equals( permission )
            || EDIT_PREFERENCES.equals( permission ) || EDIT_PROFILE.equals( permission )
            || LOGIN.equals( permission ) )
        {
            gotPermission = mgr.checkPermission( session, new WikiPermission( page.getWiki(), permission ) );
        }
        else if ( VIEW_GROUP.equals( permission )
            || EDIT_GROUP.equals( permission )
            || DELETE_GROUP.equals( permission ) )
        {
View Full Code Here

Examples of com.hazelcast.security.SecurityContext.checkPermission()

        private void checkPermissions(ClientEndpoint endpoint, ClientRequest request) {
            SecurityContext securityContext = getSecurityContext();
            if (securityContext != null) {
                Permission permission = request.getRequiredPermission();
                if (permission != null) {
                    securityContext.checkPermission(endpoint.getSubject(), permission);
                }
            }
        }

        private void initService(ClientRequest request) {
View Full Code Here

Examples of com.sk89q.craftbook.LocalPlayer.checkPermission()

            if (!verify(BukkitUtil.toChangedSign((Sign) event.getBlock().getState(), lines, player), player)) {
                block.breakNaturally();
                event.setCancelled(true);
                return;
            }
            player.checkPermission("craftbook.vehicles." + getName().toLowerCase(Locale.ENGLISH));
            event.setLine(lineNum, "[" + lineFound + "]");
            player.print(getName() + " Created!");
        } catch (InsufficientPermissionsException e) {
            player.printError("vehicles.create-permission");
            block.breakNaturally();
View Full Code Here

Examples of com.sun.enterprise.security.CachedPermission.checkPermission()

  String caller = null;
        SecurityContext sc = null;

  pcHandlerImpl.getHandlerData().setInvocation(inv);
  ret = cp.checkPermission();

  if (!ret) {

      sc = SecurityContext.getCurrent();
 
View Full Code Here

Examples of com.sun.enterprise.security.ee.CachedPermission.checkPermission()

        String caller = null;
        SecurityContext sc = null;

        pcHandlerImpl.getHandlerData().setInvocation(inv);
        ret = cp.checkPermission();

        if (!ret) {

            sc = SecurityContext.getCurrent();
            Set principalSet = sc.getPrincipalSet();
View Full Code Here

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

            throws Exception {

        MutableACLEntry entry = factory.createACLEntry(principalMock, false);

        // The permission is not contained as it is empty.
        assertFalse(entry.checkPermission(permission1Mock));

        // The permission should be added as the entry is empty.
        assertTrue(entry.addPermission(permission1Mock));

        // Adding it again does nothing.
View Full Code Here

Examples of de.iritgo.aktera.permissions.security.Acl.checkPermission()

    {
      return false;
    }

    Acl acl = aclByDomainObject.get(new Tuple2(objectType, objectId));
    if (acl != null && acl.checkPermission(principal, new SimplePermission(permission)))
    {
      return true;
    }

    return false;
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.