java.lang.Object
org.apache.jena.permissions.Factory

public class Factory extends Object
The factory that can be used to create an instance of a SecuredGraph or a SecuredModel.
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • getInstance

      public static SecuredGraph getInstance(SecurityEvaluator securityEvaluator, String graphIRI, org.apache.jena.graph.Graph graph)
      Create an instance of the SecuredGraph
      Parameters:
      securityEvaluator - The security evaluator to use
      graphIRI - The IRI for the graph.
      graph - The graph that we are wrapping.
      Returns:
      the graph secured under the name graphIRI
    • getInstance

      public static SecuredModel getInstance(SecurityEvaluator securityEvaluator, String modelIRI, org.apache.jena.rdf.model.Model model)
      Get an instance of SecuredModel
      Parameters:
      securityEvaluator - The security evaluator to use
      modelIRI - The securedModel IRI (graph IRI) to evaluate against.
      model - The model to secure.
      Returns:
      the model secured under the name modelIRI