Package org.apache.jena.fuseki.access
Class SecurityContextView
java.lang.Object
org.apache.jena.fuseki.access.SecurityContextView
- All Implemented Interfaces:
SecurityContext
A
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().-
Field Summary
FieldsFields inherited from interface org.apache.jena.fuseki.access.SecurityContext
ALL, allGraphs, allGraphsStr, allNamedGraphs, allNamedGraphsStr -
Constructor Summary
ConstructorsConstructorDescriptionSecurityContextView(String... graphNames) SecurityContextView(Collection<org.apache.jena.graph.Node> visibleGraphs) SecurityContextView(org.apache.jena.graph.Node... graphNames) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.query.QueryExecutioncreateQueryExecution(String queryString, org.apache.jena.sparql.core.DatasetGraph dsg) org.apache.jena.query.QueryExecutioncreateQueryExecution(org.apache.jena.query.Query query, org.apache.jena.sparql.core.DatasetGraph dsg) voidfilterTDB(org.apache.jena.sparql.core.DatasetGraph dsg, org.apache.jena.query.QueryExecution qExec) Apply a filter suitable for the TDB-backedDatasetGraph, to theContextof theQueryExecution.Predicate<org.apache.jena.sparql.core.Quad>Quad filter to reflect the security policy of thisSecurityContext.toString()booleanCollection<org.apache.jena.graph.Node>Collection of visible graph names.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.fuseki.access.SecurityContext
visibleGraphNames
-
Field Details
-
NONE
-
DFT_GRAPH
-
-
Constructor Details
-
SecurityContextView
-
SecurityContextView
public SecurityContextView(org.apache.jena.graph.Node... graphNames) -
SecurityContextView
-
-
Method Details
-
visibleGraphs
Description copied from interface:SecurityContextCollection of visible graph names.This method returns null for "all" to avoid needing to calculate the current set of named graph names. A collection of no elements means no named graphs are visible.
- Specified by:
visibleGraphsin interfaceSecurityContext
-
visableDefaultGraph
public boolean visableDefaultGraph()- Specified by:
visableDefaultGraphin interfaceSecurityContext
-
createQueryExecution
public org.apache.jena.query.QueryExecution createQueryExecution(String queryString, org.apache.jena.sparql.core.DatasetGraph dsg) - Specified by:
createQueryExecutionin interfaceSecurityContext
-
createQueryExecution
public org.apache.jena.query.QueryExecution createQueryExecution(org.apache.jena.query.Query query, org.apache.jena.sparql.core.DatasetGraph dsg) - Specified by:
createQueryExecutionin interfaceSecurityContext
-
filterTDB
public void filterTDB(org.apache.jena.sparql.core.DatasetGraph dsg, org.apache.jena.query.QueryExecution qExec) Apply a filter suitable for the TDB-backedDatasetGraph, to theContextof theQueryExecution. This does not modify theDatasetGraph.- Specified by:
filterTDBin interfaceSecurityContext
-
predicateQuad
Quad filter to reflect the security policy of thisSecurityContext. It is better to callcreateQueryExecution(Query, DatasetGraph)which may be more efficient.- Specified by:
predicateQuadin interfaceSecurityContext
-
toString
-