001/*
002 * The contents of this file are subject to the license and copyright
003 * detailed in the LICENSE and NOTICE files at the root of the source
004 * tree.
005 */
006package org.fcrepo.kernel.api.auth;
007
008import java.util.List;
009
010import org.fcrepo.kernel.api.models.FedoraResource;
011
012/**
013 * Class to hold the authorizations from an ACL and the resource that has the ACL.
014 *
015 * @author whikloj
016 */
017public interface ACLHandle {
018
019    /**
020     * Get the resource that contains the ACL.
021     *
022     * @return the fedora resource
023     */
024    FedoraResource getResource();
025
026    /**
027     * Get the list of authorizations from the ACL.
028     *
029     * @return the authorizations
030     */
031    List<WebACAuthorization> getAuthorizations();
032}