Examples of BasicAclEntry


Examples of org.springframework.security.acl.basic.BasicAclEntry

    AclEntry[] effectiveAcls = getEffectiveAcls( session, holder );
    if ( ( effectiveAcls == null ) || ( effectiveAcls.length == 0 ) ) {
      return false;
    }
    for ( AclEntry element : effectiveAcls ) {
      BasicAclEntry acl = (BasicAclEntry) element;
      if ( acl.isPermitted( mask ) ) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of org.springframework.security.acl.basic.BasicAclEntry

    }
    for ( AclEntry element : objectAcls ) {
      // First, search for the user name in the objectAcls. If it's there,
      // then that
      // overrides anything else. It's the only acl returned.
      BasicAclEntry entry = (BasicAclEntry) element;
      String recipient = entry.getRecipient().toString();
      // Found the user in there - That means that his/her access to the
      // object
      // has been spelled out. Therefore, we need to simply return that
      // ACL.
      if ( recipient.equals( userName ) ) {
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.