Class Factory


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

      • Factory

        public Factory()
    • Method Detail

      • getInstance

        public static SecuredGraph getInstance​(SecurityEvaluator securityEvaluator,
                                               java.lang.String graphIRI,
                                               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,
                                               java.lang.String modelIRI,
                                               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