Package org.fcrepo.auth.webac
Class WebACRolesProvider
java.lang.Object
org.fcrepo.auth.webac.WebACRolesProvider
- Since:
- 9/3/15
- Author:
- acoburn
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRoles(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.getRoles(org.fcrepo.kernel.api.models.FedoraResource resource, org.fcrepo.kernel.api.Transaction transaction) Get the roles assigned to this Node.voidsetGroupBaseUri(String groupBaseUri) voidsetup()voidsetUserBaseUri(String userBaseUri)
-
Constructor Details
-
WebACRolesProvider
public WebACRolesProvider()
-
-
Method Details
-
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 idfedoraResource- the parent resource of the id, most likely info:fedoratransaction- 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 resourcetransaction- the transaction being acted upon- Returns:
- a set of roles for each principal
-
setUserBaseUri
- Parameters:
userBaseUri- the user base uri
-
setGroupBaseUri
- Parameters:
groupBaseUri- the group base uri
-