Examples of checkPermission()


Examples of org.apache.wiki.auth.AuthorizationManager.checkPermission()

                gotPermission = mgr.checkPermission( session, new GroupPermission( groupName, action ) );
            }
        }
        else if ( ALL_PERMISSION.equals( permission ) )
        {
            gotPermission = mgr.checkPermission( session, new AllPermission( m_wikiContext.getEngine().getApplicationName() ) );
        }
        else if ( page != null )
        {
            //
            //  Edit tag also checks that we're not trying to edit an
View Full Code Here

Examples of org.apache.wiki.auth.AuthorizationManager.checkPermission()

                    return false;
                }
            }

            Permission p = PermissionFactory.getPagePermission( page, permission );
            gotPermission = mgr.checkPermission( session,
                                                  p );
        }
       
        return gotPermission;
    }
View Full Code Here

Examples of org.infinispan.security.AuthorizationManager.checkPermission()

   }

   private void ensureAccessPermissions(final AdvancedCache<?, ?> cache) {
      AuthorizationManager authorizationManager = SecurityActions.getCacheAuthorizationManager(cache);
      if (authorizationManager != null) {
         authorizationManager.checkPermission(AuthorizationPermission.EXEC);
      }
   }

   private void ensureProperCacheState(AdvancedCache<?, ?> cache) throws NullPointerException,
            IllegalStateException {
View Full Code Here

Examples of org.jresearch.gossip.am.model.IPermissionGuard.checkPermission()

        StrutsPermissionMapping spm = (StrutsPermissionMapping) permissionMapping
                .get(mapping.getPath());
        if (spm != null) {
            PermissionPoint point = new PermissionPoint(spm.getAmObjectId()
                    .intValue(), spm.getAmOperationId().intValue());
            return guard.checkPermission(point);
        }
        return true;

    }
View Full Code Here

Examples of org.sonatype.security.SecuritySystem.checkPermission()

    // this xml role

    PrincipalCollection jcohen = new SimplePrincipalCollection("jcohen", MockRealm.NAME);

    try {
      securitySystem.checkPermission(jcohen, "permissionOne:invalid");
      Assert.fail("Expected AuthorizationException");
    }
    catch (AuthorizationException e) {
      // expected
    }
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.