Examples of SecNode


Examples of org.apache.jena.security.SecurityEvaluator.SecNode

    {
      return SecNode.ANY;
    }
    if (jenaNode.isLiteral())
    {
      return new SecNode(Type.Literal, jenaNode.getLiteral().toString());
    }
    if (jenaNode.isBlank())
    {
      return new SecNode(Type.Anonymous, jenaNode.getBlankNodeLabel());
    }
    if (jenaNode.isVariable())
    {
      return SecNode.VARIABLE;
    }
    return new SecNode(Type.URI, jenaNode.getURI());
  }
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

  }

  protected void checkCreateReified( final String uri, final SecTriple t )
  {
    checkUpdate();
    final SecNode n = uri == null ? SecNode.FUTURE : new SecNode(Type.URI,
        uri);
    checkCreate(new SecTriple(n, SecuredItemImpl.convert(RDF.subject
        .asNode()), t.getSubject()));
    checkCreate(new SecTriple(n, SecuredItemImpl.convert(RDF.predicate
        .asNode()), t.getPredicate()));
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

    {
      return SecNode.ANY;
    }
    if (jenaNode.isLiteral())
    {
      return new SecNode(Type.Literal, jenaNode.getLiteral().toString());
    }
    if (jenaNode.isBlank())
    {
      return new SecNode(Type.Anonymous, jenaNode.getBlankNodeLabel());
    }
    if (jenaNode.isVariable())
    {
      return SecNode.VARIABLE;
    }
    return new SecNode(Type.URI, jenaNode.getURI());
  }
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

  }

  protected void checkCreateReified( final String uri, final SecTriple t )
  {
    checkUpdate();
    final SecNode n = uri == null ? SecNode.FUTURE : new SecNode(Type.URI,
        uri);
    checkCreate(new SecTriple(n, SecuredItemImpl.convert(RDF.subject
        .asNode()), t.getSubject()));
    checkCreate(new SecTriple(n, SecuredItemImpl.convert(RDF.predicate
        .asNode()), t.getPredicate()));
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

      graphIRI = sg.getModelNode();
      this.securityEvaluator = sg.getSecurityEvaluator();
    }
    else
    {
      graphIRI = new SecNode(Type.URI, "urn:x-arq:DefaultGraph");
      this.securityEvaluator = new SecurityEvaluator() {

        @Override
        public boolean evaluate( final Action action,
            final SecNode graphIRI )
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

   * @param graphIRI The IRI for the default graph.
   */
  public OpRewriter( final SecurityEvaluator securityEvaluator,
      final String graphIRI )
  {
    this(securityEvaluator, new SecNode(SecNode.Type.URI, graphIRI));
  }
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

   */
  public SecuredCapabilities( final SecurityEvaluator securityEvaluator,
      final String graphURI, final Capabilities capabilities )
  {
    this.securityEvaluator = securityEvaluator;
    this.graphIRI = new SecNode(Type.URI, graphURI);
    this.capabilities = capabilities;
  }
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

  private SecTriple createSecTriple( final Triple t, final Binding values )
  {
    int idx = variables.indexOf(t.getSubject());

    final SecNode s = SecuredItemImpl.convert(idx ==-1 ? t.getSubject()
        : values.get(Var.alloc( variables.get(idx))));

    idx = variables.indexOf(t.getPredicate());
    final SecNode p = SecuredItemImpl.convert(idx == -1 ? t
        .getPredicate()
        : values.get(Var.alloc( variables.get(idx))));
    idx = variables.indexOf(t.getObject());
    final SecNode o = SecuredItemImpl.convert(idx == -1 ? t.getObject()
        : values.get(Var.alloc( variables.get(idx))));
    return new SecTriple(s, p, o);
  }
View Full Code Here

Examples of org.apache.jena.security.SecurityEvaluator.SecNode

  private SecTriple createSecTriple( final Triple t, final Binding values )
  {
    int idx = variables.indexOf(t.getSubject());

    final SecNode s = SecuredItemImpl.convert(idx ==-1 ? t.getSubject()
        : values.get(Var.alloc( variables.get(idx))));

    idx = variables.indexOf(t.getPredicate());
    final SecNode p = SecuredItemImpl.convert(idx == -1 ? t
        .getPredicate()
        : values.get(Var.alloc( variables.get(idx))));
    idx = variables.indexOf(t.getObject());
    final SecNode o = SecuredItemImpl.convert(idx == -1 ? t.getObject()
        : values.get(Var.alloc( variables.get(idx))));
    return new SecTriple(s, p, o);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.