Package org.fcrepo.auth.webac
Class WebACRolesProvider
- java.lang.Object
-
- org.fcrepo.auth.webac.WebACRolesProvider
-
@Component public class WebACRolesProvider extends Object
- Since:
- 9/3/15
- Author:
- acoburn
-
-
Constructor Summary
Constructors Constructor Description WebACRolesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Collection<String>>
getRoles(FedoraResource resource, Transaction transaction)
Get the roles assigned to this Node.void
setGroupBaseUri(String groupBaseUri)
void
setup()
void
setUserBaseUri(String userBaseUri)
-
-
-
Constructor Detail
-
WebACRolesProvider
public WebACRolesProvider()
-
-
Method Detail
-
setup
@PostConstruct public void setup()
-
getRoles
public Map<String,Collection<String>> getRoles(FedoraResource resource, 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
public void setUserBaseUri(String userBaseUri)
- Parameters:
userBaseUri
- the user base uri
-
setGroupBaseUri
public void setGroupBaseUri(String groupBaseUri)
- Parameters:
groupBaseUri
- the group base uri
-
-