public class SecurityContextView extends Object implements SecurityContext
SecurityContextView is the things actor (user, role) is allowed to do.
Currently version: the set of graphs, by graph name, they can access.
It can be inverted into a "deny" policy with Predicate.negate().| Modifier and Type | Field and Description |
|---|---|
static SecurityContextView |
DFT_GRAPH |
static SecurityContextView |
NONE |
ALL, allGraphs, allGraphsStr, allNamedGraphs, allNamedGraphsStr| Constructor and Description |
|---|
SecurityContextView(Collection<Node> visibleGraphs) |
SecurityContextView(Node... graphNames) |
SecurityContextView(String... graphNames) |
| Modifier and Type | Method and Description |
|---|---|
QueryExecution |
createQueryExecution(Query query,
DatasetGraph dsg) |
QueryExecution |
createQueryExecution(String queryString,
DatasetGraph dsg) |
void |
filterTDB(DatasetGraph dsg,
QueryExecution qExec)
|
Predicate<Quad> |
predicateQuad()
Quad filter to reflect the security policy of this
SecurityContext. |
String |
toString() |
boolean |
visableDefaultGraph() |
Collection<Node> |
visibleGraphs()
Collection of visible graph names.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitALL_NG, visibleGraphNamespublic static SecurityContextView NONE
public static SecurityContextView DFT_GRAPH
public SecurityContextView(String... graphNames)
public SecurityContextView(Node... graphNames)
public SecurityContextView(Collection<Node> visibleGraphs)
public Collection<Node> visibleGraphs()
SecurityContextvisibleGraphs in interface SecurityContextpublic boolean visableDefaultGraph()
visableDefaultGraph in interface SecurityContextpublic QueryExecution createQueryExecution(String queryString, DatasetGraph dsg)
createQueryExecution in interface SecurityContextpublic QueryExecution createQueryExecution(Query query, DatasetGraph dsg)
createQueryExecution in interface SecurityContextpublic void filterTDB(DatasetGraph dsg, QueryExecution qExec)
DatasetGraph, to the Context of the
QueryExecution. This does not modify the DatasetGraph.filterTDB in interface SecurityContextpublic Predicate<Quad> predicateQuad()
SecurityContext. It is
better to call createQueryExecution(Query, DatasetGraph) which may be more
efficient.predicateQuad in interface SecurityContextLicensed under the Apache License, Version 2.0