public class FedoraEvaluationCtxBuilder extends Object
Constructor and Description |
---|
FedoraEvaluationCtxBuilder() |
Modifier and Type | Method and Description |
---|---|
FedoraEvaluationCtxBuilder |
addActions(String[] actions)
Adds actions as action ID and modify resource scope to handle remove.
|
FedoraEvaluationCtxBuilder |
addFinderModule(org.jboss.security.xacml.sunxacml.finder.AttributeFinderModule module)
Add a finder module to context.
|
FedoraEvaluationCtxBuilder |
addGroups(Principal user,
Set<Principal> allGroups)
This method adds group attributes to the subject-set.
|
void |
addOriginalRequestIP(String remoteAddr) |
FedoraEvaluationCtxBuilder |
addResourceID(String rawModeShapePath)
Add the node or property path as resource ID.
|
FedoraEvaluationCtxBuilder |
addSubject(String username,
Set<String> roles)
Adds a basic Fedora subject to the context.
|
FedoraEvaluationCtxBuilder |
addWorkspace(String name)
Add the workspace name.
|
org.jboss.security.xacml.sunxacml.EvaluationCtx |
build()
Build the evaluation context.
|
public FedoraEvaluationCtxBuilder()
public final org.jboss.security.xacml.sunxacml.EvaluationCtx build()
public final FedoraEvaluationCtxBuilder addFinderModule(org.jboss.security.xacml.sunxacml.finder.AttributeFinderModule module)
module
- module to addpublic final FedoraEvaluationCtxBuilder addSubject(String username, Set<String> roles)
username
- the user principal name, or nullroles
- the effective roles for user, or nullpublic final FedoraEvaluationCtxBuilder addResourceID(String rawModeShapePath)
rawModeShapePath
- the path to the node or propertypublic final FedoraEvaluationCtxBuilder addWorkspace(String name)
name
- name of workspacepublic final FedoraEvaluationCtxBuilder addActions(String[] actions)
actions
- the requested actionspublic void addOriginalRequestIP(String remoteAddr)
remoteAddr
- the remote addresspublic FedoraEvaluationCtxBuilder addGroups(Principal user, Set<Principal> allGroups)
user
- for arg groupsallGroups
- to be added to the subject-setCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.