Package org.apache.clerezza.platform.content.collections

Examples of org.apache.clerezza.platform.content.collections.CollectionCreator


    if (mGraph.contains(typeTriple)) {
      return Response.status(405) // Method Not Allowed
          .entity("Collection \"" + nodeUri.getUnicodeString()
          + "\" already exists.").build();
    }
    new CollectionCreator(mGraph).createContainingCollections(nodeUri);
    return Response.created(uriInfo.getAbsolutePath()).build();
  }
View Full Code Here


      try {
        node.replaceWith(targetUri);
      } finally {
        writeLock.unlock();
      }
      new CollectionCreator(mGraph).createContainingCollections(targetUri);
      try {
        return Response.created(new java.net.URI(targetUri.getUnicodeString())).build();
      } catch (URISyntaxException ex) {
        throw new IllegalArgumentException(ex);
      }
View Full Code Here

      byte[] data) {

    GraphNode infoDiscoBitNode;
    final LockableMGraph mGraph = (LockableMGraph) getMGraph();
    infoDiscoBitNode = new GraphNode(infoDiscoBitUri, mGraph);
    CollectionCreator collectionCreator = new CollectionCreator(mGraph);
    collectionCreator.createContainingCollections(infoDiscoBitUri);
    Lock writeLock = mGraph.getLock().writeLock();
    writeLock.lock();
    try {
      infoDiscoBitNode.addProperty(RDF.type, DISCOBITS.InfoDiscoBit);
      TypedLiteral dataLiteral = LiteralFactory.getInstance().createTypedLiteral(data);
View Full Code Here

TOP

Related Classes of org.apache.clerezza.platform.content.collections.CollectionCreator

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.