Class SecurityContextView

java.lang.Object
org.apache.jena.fuseki.access.SecurityContextView
All Implemented Interfaces:
SecurityContext

public class SecurityContextView extends Object implements 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 Details

  • Constructor Details

    • SecurityContextView

      public SecurityContextView(String... graphNames)
    • SecurityContextView

      public SecurityContextView(org.apache.jena.graph.Node... graphNames)
    • SecurityContextView

      public SecurityContextView(Collection<org.apache.jena.graph.Node> visibleGraphs)
  • Method Details

    • visibleGraphs

      public Collection<org.apache.jena.graph.Node> visibleGraphs()
      Description copied from interface: SecurityContext
      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.

      Specified by:
      visibleGraphs in interface SecurityContext
    • visableDefaultGraph

      public boolean visableDefaultGraph()
      Specified by:
      visableDefaultGraph in interface SecurityContext
    • createQueryExecution

      public org.apache.jena.query.QueryExecution createQueryExecution(String queryString, org.apache.jena.sparql.core.DatasetGraph dsg)
      Specified by:
      createQueryExecution in interface SecurityContext
    • createQueryExecution

      public org.apache.jena.query.QueryExecution createQueryExecution(org.apache.jena.query.Query query, org.apache.jena.sparql.core.DatasetGraph dsg)
      Specified by:
      createQueryExecution in interface SecurityContext
    • filterTDB

      public void filterTDB(org.apache.jena.sparql.core.DatasetGraph dsg, org.apache.jena.query.QueryExecution qExec)
      Apply a filter suitable for the TDB-backed DatasetGraph, to the Context of the QueryExecution. This does not modify the DatasetGraph.
      Specified by:
      filterTDB in interface SecurityContext
    • predicateQuad

      public Predicate<org.apache.jena.sparql.core.Quad> predicateQuad()
      Quad filter to reflect the security policy of this SecurityContext. It is better to call createQueryExecution(Query, DatasetGraph) which may be more efficient.
      Specified by:
      predicateQuad in interface SecurityContext
    • toString

      public String toString()
      Overrides:
      toString in class Object