org.apache.jackrabbit.api.security
Interface JackrabbitAccessControlEntry

All Superinterfaces:
AccessControlEntry
All Known Implementing Classes:
AccessControlEntryImpl

public interface JackrabbitAccessControlEntry
extends AccessControlEntry

JackrabbitAccessControlEntry is a Jackrabbit specific extension of the AccessControlEntry interface. It represents an single entry of a JackrabbitAccessControlList.


Method Summary
 Value getRestriction(String restrictionName)
          Return the value of the restriction with the specified name or null if no such restriction exists.
 String[] getRestrictionNames()
          Return the names of the restrictions present with this access control entry.
 boolean isAllow()
           
 
Methods inherited from interface javax.jcr.security.AccessControlEntry
getPrincipal, getPrivileges
 

Method Detail

isAllow

boolean isAllow()
Returns:
true if this entry adds Privileges for the principal; false otherwise.

getRestrictionNames

String[] getRestrictionNames()
                             throws RepositoryException
Return the names of the restrictions present with this access control entry.

Returns:
the names of the restrictions
Throws:
RepositoryException - if an error occurs.

getRestriction

Value getRestriction(String restrictionName)
                     throws RepositoryException
Return the value of the restriction with the specified name or null if no such restriction exists.

Parameters:
restrictionName - The of the restriction as obtained through getRestrictionNames().
Returns:
value of the restriction with the specified name or null if no such restriction exists
Throws:
RepositoryException - if an error occurs.


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.