Package org.apache.jena.fuseki.access
Interface SecurityContext
- All Known Implementing Classes:
SecurityContextAllowAll,SecurityContextAllowNamedGraphs,SecurityContextAllowNone,SecurityContextView
public interface SecurityContext
A
SecurityContext 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
FieldsModifier and TypeFieldDescriptionstatic final SecurityContextstatic final org.apache.jena.graph.Nodestatic final org.apache.jena.graph.Nodestatic final org.apache.jena.graph.Nodestatic final org.apache.jena.graph.Nodestatic final SecurityContext -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityContextALL_NG(org.apache.jena.sparql.core.DatasetGraph dsg) default org.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) default 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.booleandefault Collection<String>Collection of visible graph URI names.Collection<org.apache.jena.graph.Node>Collection of visible graph names.
-
Field Details
-
NONE
-
ALL
-
allGraphs
static final org.apache.jena.graph.Node allGraphs -
allNamedGraphs
static final org.apache.jena.graph.Node allNamedGraphs -
allNamedGraphsStr
static final org.apache.jena.graph.Node allNamedGraphsStr -
allGraphsStr
static final org.apache.jena.graph.Node allGraphsStr
-
-
Method Details
-
ALL_NG
-
visibleGraphs
Collection<org.apache.jena.graph.Node> visibleGraphs()Collection 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.
-
visibleGraphNames
Collection of visible graph URI 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.
-
visableDefaultGraph
boolean visableDefaultGraph() -
createQueryExecution
default org.apache.jena.query.QueryExecution createQueryExecution(String queryString, org.apache.jena.sparql.core.DatasetGraph dsg) -
createQueryExecution
org.apache.jena.query.QueryExecution createQueryExecution(org.apache.jena.query.Query query, org.apache.jena.sparql.core.DatasetGraph dsg) -
predicateQuad
Predicate<org.apache.jena.sparql.core.Quad> predicateQuad()Quad filter to reflect the security policy of thisSecurityContext. It is better to callcreateQueryExecution(Query, DatasetGraph)which may be more efficient. -
filterTDB
default 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. ThrowsIllegalArgumentExceptionifDatasetGraphis not a TDB1 or TDB2 backed dataset. May throwUnsupportedOperationException.
-