Package org.fcrepo.auth.webac
Class WebACAuthorizationImpl
- java.lang.Object
-
- org.fcrepo.auth.webac.WebACAuthorizationImpl
-
- All Implemented Interfaces:
WebACAuthorization
public class WebACAuthorizationImpl extends Object implements WebACAuthorization
- Since:
- 2015-08-25
- Author:
- whikloj, acoburn
-
-
Constructor Summary
Constructors Constructor Description WebACAuthorizationImpl(Collection<String> agents, Collection<String> agentClasses, Collection<URI> modes, Collection<String> accessTo, Collection<String> accessToClass, Collection<String> agentGroups, Collection<String> defaults)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAccessToClassURIs()
Get the set of strings describing the rdf:types for this ACL, empty set if none.Set<String>
getAccessToURIs()
Get the set of strings directly linked from this ACL, empty set if none.Set<String>
getAgentClasses()
Get the set of acl:agentClasses, empty set if none.Set<String>
getAgentGroups()
Get the set of strings describing the agent groups for this ACL, empty set if none.Set<String>
getAgents()
Get the set of acl:agents, empty set if none.Set<String>
getDefaults()
Get the set of strings describing the defaults for this ACL, empty set if none.Set<URI>
getModes()
Get the set of acl:modes, empty set if none.
-
-
-
Constructor Detail
-
WebACAuthorizationImpl
public WebACAuthorizationImpl(Collection<String> agents, Collection<String> agentClasses, Collection<URI> modes, Collection<String> accessTo, Collection<String> accessToClass, Collection<String> agentGroups, Collection<String> defaults)
Constructor- Parameters:
agents
- The acl:agent valuesagentClasses
- the acl:agentClass valuesmodes
- the acl:mode valuesaccessTo
- the acl:accessTo valuesaccessToClass
- the acl:accessToClass valuesagentGroups
- the acl:agentGroup valuesdefaults
- the acl:default values
-
-
Method Detail
-
getAgents
public Set<String> getAgents()
Get the set of acl:agents, empty set if none.- Specified by:
getAgents
in interfaceWebACAuthorization
- Returns:
- set of acl:agents
-
getAgentClasses
public Set<String> getAgentClasses()
Get the set of acl:agentClasses, empty set if none.- Specified by:
getAgentClasses
in interfaceWebACAuthorization
- Returns:
- set of acl:agentClasses
-
getModes
public Set<URI> getModes()
Get the set of acl:modes, empty set if none.- Specified by:
getModes
in interfaceWebACAuthorization
- Returns:
- set of acl:modes
-
getAccessToURIs
public Set<String> getAccessToURIs()
Get the set of strings directly linked from this ACL, empty set if none.- Specified by:
getAccessToURIs
in interfaceWebACAuthorization
- Returns:
- set of String
-
getAccessToClassURIs
public Set<String> getAccessToClassURIs()
Get the set of strings describing the rdf:types for this ACL, empty set if none.- Specified by:
getAccessToClassURIs
in interfaceWebACAuthorization
- Returns:
- set of Strings
-
getAgentGroups
public Set<String> getAgentGroups()
Get the set of strings describing the agent groups for this ACL, empty set if none.- Specified by:
getAgentGroups
in interfaceWebACAuthorization
- Returns:
- set of Strings
-
getDefaults
public Set<String> getDefaults()
Get the set of strings describing the defaults for this ACL, empty set if none.- Specified by:
getDefaults
in interfaceWebACAuthorization
- Returns:
- set of Strings
-
-