Package javax.jcr.lock

Examples of javax.jcr.lock.LockException


            }

            // Check locking
            if (!destNode.parent().checkLocking())
            {
               throw new LockException("Node " + destNode.getPath() + " is locked ");
            }
         }
         else
         {
            // Dest node not found
View Full Code Here


      checkValid();

      if (!session.getLockManager().holdsLock((NodeData)this.getData()))
      {
         throw new LockException("The node not locked " + getPath());
      }

      if (!session.getLockManager().isLockHolder(this))
      {
         throw new LockException("There are no permission to unlock the node " + getPath());
      }

      if (dataManager.hasPendingChanges(getInternalPath()))
      {
         throw new InvalidItemStateException("Node has pending unsaved changes " + getPath());
View Full Code Here

      }

      // Check locking
      if (!checkLocking())
      {
         throw new LockException("Node " + getPath() + " is locked ");
      }

      SessionChangesLog changes = new SessionChangesLog(session);

      String srcPath;
View Full Code Here

      }

      if (!checkLocking())
      {
         // Check locking
         throw new LockException("Node " + getPath() + " is locked ");
      }

   }
View Full Code Here

      {
         // locked, should be unlocked

         if (!session.getLockManager().isLockHolder(this))
         {
            throw new LockException("There are no permission to unlock the node " + getPath());
         }

         // remove mix:lockable properties (as the node is locked)
         doUnlock();
      }
View Full Code Here

      }

      // Check locking
      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }
      Map<String, Object> context = new HashMap<String, Object>();
      context.put(ContentImporter.RESPECT_PROPERTY_DEFINITIONS_CONSTRAINTS, true);
      return new ExportImportFactory().getImportHandler(((NodeData)node.getData()), uuidBehavior, session
         .getTransientNodesManager().getTransactManager(), session.getTransientNodesManager().getTransactManager(),
View Full Code Here

      }

      // Check locking
      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
         new ExportImportFactory().getStreamImporter(((NodeData)node.getData()), uuidBehavior, session
            .getTransientNodesManager().getTransactManager(), session.getTransientNodesManager().getTransactManager(),
View Full Code Here

            + " or its nearest ancestor is checked-in");
      }
      // Check locking
      if (!srcNode.checkLocking())
      {
         throw new LockException("Source parent node " + srcNode.getPath() + " is     locked ");
      }

      ItemDataMoveVisitor initializer =
         new ItemDataMoveVisitor((NodeData)destParentNode.getData(), destNodePath.getName().getInternalName(),
            (NodeData)srcParentNode.getData(), nodeTypeManager, session.getTransientNodesManager(), true);
View Full Code Here

      }

      // Check locking
      if (!parentNode.checkLocking())
      {
         throw new LockException("Node " + parent().getPath() + " is locked ");
      }

      // launch event
      session.getActionHandler().preRemoveItem(this);
View Full Code Here

      }

      // Check is locked
      if (!parentNode.checkLocking())
      {
         throw new LockException("Node " + parentNode.getPath() + " is locked ");
      }

      QPath qpath = QPath.makeChildPath(parentNode.getInternalPath(), propertyName);

      int state;
View Full Code Here

TOP

Related Classes of javax.jcr.lock.LockException

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.