Package org.apache.jena.fuseki.access
Class SecurityContextAllowNamedGraphs
java.lang.Object
org.apache.jena.fuseki.access.SecurityContextAllowNamedGraphs
- All Implemented Interfaces:
SecurityContext
A
SecurityContext that allows access to the default graph but not named graphs.-
Field Summary
Fields inherited from interface org.apache.jena.fuseki.access.SecurityContext
ALL, allGraphs, allGraphsStr, allNamedGraphs, allNamedGraphsStr, NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.query.QueryExecutioncreateQueryExecution(org.apache.jena.query.Query query, org.apache.jena.sparql.core.DatasetGraph dsg) Predicate<org.apache.jena.sparql.core.Quad>Quad filter to reflect the security policy of thisSecurityContextAllowNamedGraphs.booleanCollection<org.apache.jena.graph.Node>Collection of visible graph names.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.fuseki.access.SecurityContext
createQueryExecution, filterTDB, visibleGraphNames
-
Constructor Details
-
SecurityContextAllowNamedGraphs
public SecurityContextAllowNamedGraphs()
-
-
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(org.apache.jena.query.Query query, org.apache.jena.sparql.core.DatasetGraph dsg) - Specified by:
createQueryExecutionin interfaceSecurityContext
-
predicateQuad
Quad filter to reflect the security policy of thisSecurityContextAllowNamedGraphs. It is better to callcreateQueryExecution(Query, DatasetGraph)which may be more efficient.- Specified by:
predicateQuadin interfaceSecurityContext
-