Package org.apache.jena.security

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


    {
      Triple[] retval = triples;
      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(perms, sg.getModelNode()))
        {
          if (!evaluator.evaluateAny(perms, sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            final List<Triple> list = wrapPermIterator(sg,
                Arrays.asList(triples).iterator(), perms)
                .toList();
View Full Code Here


    {
      Graph addGraph = added;
      if (g instanceof SecuredGraph)
      {
        final SecuredGraph sg = (SecuredGraph) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(SecuredGraphEventManager.ADD,
            sg.getModelNode()))
        {
          if (!evaluator.evaluateAny(SecuredGraphEventManager.ADD,
              sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            final List<Triple> lst = added.find(Triple.ANY)
                .toList();
View Full Code Here

    {

      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        // only report if we can write to the graph
        if (evaluator.evaluateAny(SecuredGraphEventManager.ADD,
            sg.getModelNode()))
        {
          final ExtendedIterator<Triple> iter = wrapPermIterator(sg,
              it, SecuredGraphEventManager.ADD);
          try
View Full Code Here

    {
      List<Triple> list = triples;
      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(SecuredGraphEventManager.ADD,
            sg.getModelNode()))
        {
          if (!evaluator.evaluateAny(SecuredGraphEventManager.ADD,
              sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            list = wrapPermIterator(sg, triples.iterator(),
                SecuredGraphEventManager.ADD).toList();
View Full Code Here

    {
      boolean notify = false;
      if (g instanceof SecuredGraph)
      {
        final SecuredGraph sg = (SecuredGraph) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        notify = evaluator.evaluateAny(SecuredGraphEventManager.ADD,
            sg.getModelNode());
        if (notify)
        {
          notify = evaluator.evaluateAny(
              SecuredGraphEventManager.ADD, sg.getModelNode(),
              SecuredItemImpl.convert(t));
        }
      }
      else
View Full Code Here

    {
      Triple[] deleted = triples;
      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
            sg.getModelNode()))
        {
          if (!evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
              sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            final List<Triple> list = wrapPermIterator(sg,
                Arrays.asList(triples).iterator(),
View Full Code Here

    public void notifyDeleteGraph( final Graph g, final Graph removed )
    {
      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
            sg.getModelNode()))
        {
          Graph g2 = removed;
          if (!evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
              sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            g2 = new CollectionGraph(
                removed.find(Triple.ANY)
View Full Code Here

    {
      Iterator<Triple> iter = it;
      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
            sg.getModelNode()))
        {

          if (!evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
              sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            iter = WrappedIterator.create(it).filterKeep(
                new PermTripleFilter(
View Full Code Here

    {
      List<Triple> list = triples;
      if (g instanceof SecuredGraphImpl)
      {
        final SecuredGraphImpl sg = (SecuredGraphImpl) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        if (evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
            sg.getModelNode()))
        {
          if (!evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
              sg.getModelNode(),
              SecuredItemImpl.convert(Triple.ANY)))
          {
            list = WrappedIterator
                .create(triples.iterator())
View Full Code Here

    {
      boolean notify = false;
      if (g instanceof SecuredGraph)
      {
        final SecuredGraph sg = (SecuredGraph) g;
        final SecurityEvaluator evaluator = CachedSecurityEvaluator
            .getInstance(sg.getSecurityEvaluator(), runAs);
        notify = evaluator.evaluateAny(SecuredGraphEventManager.DELETE,
            sg.getModelNode());
        if (notify)
        {
          notify = evaluator.evaluateAny(
              SecuredGraphEventManager.DELETE, sg.getModelNode(),
              SecuredItemImpl.convert(t));
        }
      }
      else
View Full Code Here

TOP

Related Classes of org.apache.jena.security.SecurityEvaluator$SecNode

Copyright © 2018 www.massapicom. 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.