Package org.exoplatform.services.jcr.impl.core

Examples of org.exoplatform.services.jcr.impl.core.NodeImpl.unlock()


                  ((NodeImpl)sessionImpl.getTransientNodesManager()
                     .getItemByIdentifier(lock.getNodeIdentifier(), false));

               if (node != null)
               {
                  node.unlock();
               }

            }
            catch (UnsupportedRepositoryOperationException e)
            {
View Full Code Here


                  ((NodeImpl)sessionImpl.getTransientNodesManager()
                     .getItemByIdentifier(lock.getNodeIdentifier(), false));

               if (node != null)
               {
                  node.unlock();
               }

            }
            catch (UnsupportedRepositoryOperationException e)
            {
View Full Code Here

                  ((NodeImpl)sessionImpl.getTransientNodesManager()
                     .getItemByIdentifier(lock.getNodeIdentifier(), false));

               if (node != null)
               {
                  node.unlock();
               }

            }
            catch (UnsupportedRepositoryOperationException e)
            {
View Full Code Here

                  ((NodeImpl)sessionImpl.getTransientNodesManager()
                     .getItemByIdentifier(lock.getNodeIdentifier(), false));

               if (node != null)
               {
                  node.unlock();
               }

            }
            catch (UnsupportedRepositoryOperationException e)
            {
View Full Code Here

                     ((NodeImpl)sessionImpl.getTransientNodesManager()
                        .getItemByIdentifier(lock.getNodeIdentifier(), false));

                  if (node != null)
                  {
                     node.unlock();
                  }

               }
               catch (UnsupportedRepositoryOperationException e)
               {
View Full Code Here

      nodeToLockSession1.setPermissions(perm);
      session1.save();

      nodeToLockSession1.lock(true, false);// boolean isSessionScoped=false
      assertTrue(nodeToLockSession1.isLocked());
      nodeToLockSession1.unlock();
      assertFalse(nodeToLockSession1.isLocked());

      Session session2 = repository.login(new CredentialsImpl("john", "exo".toCharArray()), "ws");
      session2.checkPermission(nodeToLockSession1.getPath(), PermissionType.READ);
      try
View Full Code Here

      }
      finally
      {
         if (nodeToLockSession1.isLocked())
         {
            nodeToLockSession1.unlock();
         }
         session1.logout();
         session2.logout();
      }
   }
View Full Code Here

      nodeToLockSession1.setPermissions(perm);
      session1.save();

      nodeToLockSession1.lock(true, 100000);
      assertTrue(nodeToLockSession1.isLocked());
      nodeToLockSession1.unlock();
      assertFalse(nodeToLockSession1.isLocked());

      Session session2 = repository.login(new CredentialsImpl("john", "exo".toCharArray()), "ws");
      session2.checkPermission(nodeToLockSession1.getPath(), PermissionType.READ);
      try
View Full Code Here

         try
         {
            session2.addLockToken(lock.getLockToken());

            // trying to unlock
            nodeToLockSession2.unlock();
            fail("Node locked. An AccessDeniedException should be thrown on set property but doesn't");
         }
         catch (AccessDeniedException e)
         {
            // ok
View Full Code Here

                  ((NodeImpl)sessionImpl.getTransientNodesManager()
                     .getItemByIdentifier(lock.getNodeIdentifier(), false));

               if (node != null)
               {
                  node.unlock();
               }

            }
            catch (UnsupportedRepositoryOperationException e)
            {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.