Class WebACRolesProvider

java.lang.Object
org.fcrepo.auth.webac.WebACRolesProvider

@Component public class WebACRolesProvider extends Object
Since:
9/3/15
Author:
acoburn
  • Constructor Details

  • Method Details

    • setup

      @PostConstruct public void setup()
    • getRoles

      public Map<String,Collection<String>> getRoles(org.fcrepo.kernel.api.identifiers.FedoraId id, org.fcrepo.kernel.api.models.FedoraResource fedoraResource, org.fcrepo.kernel.api.Transaction transaction)
      Get the roles assigned to a FedoraId using the default authorization. This allows non-resource transactions to retrieve an ACL without the need for a stub resource.
      Parameters:
      id - the subject id
      fedoraResource - the parent resource of the id, most likely info:fedora
      transaction - the transaction being acted upon
      Returns:
      a mapping of each principal to a set of its roles
    • getRoles

      public Map<String,Collection<String>> getRoles(org.fcrepo.kernel.api.models.FedoraResource resource, org.fcrepo.kernel.api.Transaction transaction)
      Get the roles assigned to this Node.
      Parameters:
      resource - the subject resource
      transaction - the transaction being acted upon
      Returns:
      a set of roles for each principal
    • setUserBaseUri

      public void setUserBaseUri(String userBaseUri)
      Parameters:
      userBaseUri - the user base uri
    • setGroupBaseUri

      public void setGroupBaseUri(String groupBaseUri)
      Parameters:
      groupBaseUri - the group base uri