Search in sources :

Example 1 with RemoteAccessControlEntry

use of org.apache.jackrabbit.rmi.remote.security.RemoteAccessControlEntry in project jackrabbit by apache.

the class ServerAccessControlList method removeAccessControlEntry.

public void removeAccessControlEntry(RemoteAccessControlEntry ace) throws RepositoryException {
    if (ace instanceof ServerAccessControlEntry) {
        AccessControlEntry lace = ((ServerAccessControlEntry) ace).getAccessControlEntry();
        ((AccessControlList) getAccessControlPolicy()).removeAccessControlEntry(lace);
    } else {
        throw new RepositoryException("Unsupported RemoteAccessControlEntry type " + ace.getClass());
    }
}
Also used : AccessControlList(javax.jcr.security.AccessControlList) RemoteAccessControlList(org.apache.jackrabbit.rmi.remote.security.RemoteAccessControlList) AccessControlEntry(javax.jcr.security.AccessControlEntry) RemoteAccessControlEntry(org.apache.jackrabbit.rmi.remote.security.RemoteAccessControlEntry) RepositoryException(javax.jcr.RepositoryException)

Aggregations

RepositoryException (javax.jcr.RepositoryException)1 AccessControlEntry (javax.jcr.security.AccessControlEntry)1 AccessControlList (javax.jcr.security.AccessControlList)1 RemoteAccessControlEntry (org.apache.jackrabbit.rmi.remote.security.RemoteAccessControlEntry)1 RemoteAccessControlList (org.apache.jackrabbit.rmi.remote.security.RemoteAccessControlList)1