Package org.apache.sling.bgservlets.impl

Examples of org.apache.sling.bgservlets.impl.DeepNodeCreator


            if(!node.getSession().isLive()) {
                log.warn("Session closed, unable to flush stream");
            } else {
                // Create node that will store the stream
                final String streamNodePath = node.getPath() + "/" + streamPath.getNodePath();
                final Node streamNode = new DeepNodeCreator().deepCreateNode(streamNodePath,
                        node.getSession(), STREAM_NODE_TYPE);

                streamNode.setProperty(NodeStreamPath.PROPERTY_NAME,
                        new ByteArrayInputStream(buffer.toByteArray()));
                log.debug("Saved {} bytes to Property {}", buffer.size(),
View Full Code Here


      String path = null;
      synchronized (this) {
          counter++;
          path = jobStoragePath + pathFormat.format(new Date()) + "/" + counter;
        }
      final Node result = new DeepNodeCreator().deepCreateNode(path, s, JOB_NODETYPE);
      result.addMixin(JobData.JOB_DATA_MIXIN);
      result.setProperty(BackgroundServletConstants.CREATION_TIME_PROPERTY, Calendar.getInstance());
      result.save();
      log.debug("Job node {} created", result.getPath());
      return result;
View Full Code Here

TOP

Related Classes of org.apache.sling.bgservlets.impl.DeepNodeCreator

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.