Package org.apache.clerezza.rdf.utils

Examples of org.apache.clerezza.rdf.utils.UnionMGraph$UnionLock


        }
      }
      resultGraph.add(new TripleImpl(node, CUSTOMPROPERTY.customfield,
          customField));
    }
    return new GraphNode(node, new UnionMGraph(resultGraph, contentGraph));
  }
View Full Code Here


    if (user != null) {
      resultGraph.add(new TripleImpl(userPermissionPage,
          USERMANAGER.user, user));
      Iterator<NonLiteral> permissions = userManager
          .getPermissionsOfUser(user);
      return new GraphNode(userPermissionPage, new UnionMGraph(
          resultGraph, systemGraph));
     
    }
    throw new WebApplicationException(Response.status(Status.NOT_FOUND)
        .entity("User " + userName + "does not exist in our database")
View Full Code Here

        } finally {
          readLock.unlock();
        }
      }
      GraphNode result = new GraphNode(updateUserPage,
          new UnionMGraph(resultGraph, systemGraph, contentGraph));
      addAvailableRoles(result);
      return result;
    }
    throw new WebApplicationException(Response.status(Status.NOT_FOUND).entity("User " + userName + " does not exist in our database").build());
  }
View Full Code Here

        USERMANAGER.RoleOverviewPage));
    resultGraph.add(new TripleImpl(roleOverviewPage, RDF.type,
        PLATFORM.HeadedPage));
   
    GraphNode result =  new GraphNode(roleOverviewPage,
        new UnionMGraph(resultGraph, systemGraph, cgProvider.getContentGraph()));
    addAvailableRoles(result);
    addBaseRoles(result);


View Full Code Here

    NonLiteral role = userManager.getRoleByTitle(title);
    if (role != null) {
      resultGraph.add(new TripleImpl(rolePermissionPage,
          USERMANAGER.role, role));
      return new GraphNode(rolePermissionPage, new UnionMGraph(
          resultGraph, systemGraph));

    }
    throw new WebApplicationException(Response.status(Status.NOT_FOUND)
        .entity("Role " + role + "does not exist in our database")
View Full Code Here

      resultGraph.add(new TripleImpl(customfield, USERMANAGER.role,
          new PlainLiteralImpl(role)));
      resultGraph.add(new TripleImpl(propertyManagementPage,
          CUSTOMPROPERTY.customfield, customfield));
    }
    return new GraphNode(propertyManagementPage, new UnionMGraph(
        resultGraph, contentGraph));
  }
View Full Code Here

    final UriRef indexUri = new UriRef(uriString+"index");
    if (contentGraph.filter(indexUri, null, null).hasNext()) {
      return new GraphNode(indexUri, contentGraph);
    }
    final UriRef uri = new UriRef(uriString);
    MGraph mGraph = new UnionMGraph(new SimpleMGraph(), contentGraph);
    final GraphNode graphNode = new GraphNode(uri, mGraph);
    graphNode.addProperty(RDF.type, PLATFORM.HeadedPage);

    UriRef collectionUri = new UriRef(uriInfo.getAbsolutePath().toString());
    return graphNode;
View Full Code Here

    List<Resource> resultList = new RdfList(userOverviewPage, resultGraph);
    for (int i = from; i < to; i++) {
      resultList.add(userList.get(i).getNode());
    }
   
    UnionMGraph unionGraph = new UnionMGraph(resultGraph, systemGraph);
   
    GraphNode result = new GraphNode(userOverviewPage, unionGraph);

    result.addProperty(RDF.type, USERMANAGER.UserOverviewPage);
    result.addProperty(RDF.type, PLATFORM.HeadedPage);
View Full Code Here

      }
    } finally {
      readLock.unlock();
    }

    GraphNode result = new GraphNode(addUserPage, new UnionMGraph(
        resultGraph, systemGraph, contentGraph));
    addAvailableRoles(result);
    return result;
  }
View Full Code Here

    resultGraph.add(new TripleImpl(resultResource,
        RDF.type,
        SCRIPTMANAGER.ScriptManagerOverviewPage));
    GraphNode scriptList = getScriptList(resultResource);

    UnionMGraph unionGraph = null;
    if(scriptNode != null){
      unionGraph = new UnionMGraph(resultGraph, scriptList.getGraph(),
          scriptNode.getGraph(), contentGraph);
    } else {
      unionGraph = new UnionMGraph(resultGraph, scriptList.getGraph(),
        contentGraph);
    }
   
    return new GraphNode(resultResource, unionGraph);
  }
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.utils.UnionMGraph$UnionLock

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.