Examples of LockData


Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

    * {@inheritDoc}
    */
   @Override
   protected synchronized void internalUnLock(String sessionId, String nodeIdentifier) throws LockException
   {
      LockData lData = getLockDataById(nodeIdentifier);

      if (lData != null)
      {
         doRemove(lData);

View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

   protected synchronized void internalLock(String sessionId, String nodeIdentifier) throws LockException
   {
      CacheableSessionLockManager session = sessionLockManagers.get(sessionId);
      if (session != null && session.containsPendingLock(nodeIdentifier))
      {
         LockData lockData = session.getPendingLock(nodeIdentifier);

         // this will return null if success. And old data if something exists...
         LockData oldLockData = doPut(lockData);

         if (oldLockData != null)
         {
            throw new LockException("Unable to write LockData. Node [" + lockData.getNodeIdentifier()
               + "] already has LockData!");
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

    * {@inheritDoc}
    */
   @Override
   protected synchronized void internalUnLock(String sessionId, String nodeIdentifier) throws LockException
   {
      LockData lData = getLockDataById(nodeIdentifier);

      if (lData != null)
      {
         doRemove(lData);

View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

   protected synchronized void internalLock(String sessionId, String nodeIdentifier) throws LockException
   {
      CacheableSessionLockManager session = sessionLockManagers.get(sessionId);
      if (session != null && session.containsPendingLock(nodeIdentifier))
      {
         LockData lockData = session.getPendingLock(nodeIdentifier);

         // this will return null if success. And old data if something exists...
         LockData oldLockData = doPut(lockData);

         if (oldLockData != null)
         {
            throw new LockException("Unable to write LockData. Node [" + lockData.getNodeIdentifier()
               + "] already has LockData!");
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

    * {@inheritDoc}
    */
   @Override
   protected synchronized void internalUnLock(String sessionId, String nodeIdentifier) throws LockException
   {
      LockData lData = getLockDataById(nodeIdentifier);

      if (lData != null)
      {
         doRemove(lData);

View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

            Set<Object> nodesId = cache.getChildrenNames(lockRoot);

            List<LockData> locksData = new ArrayList<LockData>();
            for (Object nodeId : nodesId)
            {
               LockData lockData = (LockData)cache.get(makeLockFqn((String)nodeId), LOCK_DATA);
               if (lockData != null)
               {
                  locksData.add(lockData);
               }
            }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.cacheable.LockData

   protected synchronized void internalLock(String sessionId, String nodeIdentifier) throws LockException
   {
      CacheableSessionLockManager session = sessionLockManagers.get(sessionId);
      if (session != null && session.containsPendingLock(nodeIdentifier))
      {
         LockData lockData = session.getPendingLock(nodeIdentifier);

         // this will return null if success. And old data if something exists...
         LockData oldLockData = doPut(lockData);

         if (oldLockData != null)
         {
            throw new LockException("Unable to write LockData. Node [" + lockData.getNodeIdentifier()
               + "] already has LockData!");
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.jbosscache.LockData

   private synchronized void internalLock(String sessionId, String nodeIdentifier) throws RepositoryException
   {
      CacheableSessionLockManager sessionLockManager = sessionLockManagers.get(sessionId);
      if (sessionLockManager != null && sessionLockManager.containsPendingLock(nodeIdentifier))
      {
         LockData lockData = sessionLockManager.getPendingLock(nodeIdentifier);

         // add to DB for first
         LockJDBCConnection connection = null;
         try
         {
            // write to database
            connection = this.lockJDBCContainer.openConnection();
            connection.addLockData(lockData);
            connection.commit();

            // if any SQL exception, that nothing should be placed to cache
            Fqn<String> lockPath = makeLockFqn(lockData.getNodeIdentifier());

            cache.put(lockPath, LOCK_DATA, lockData);

            sessionLockManager.notifyLockPersisted(nodeIdentifier);
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.jbosscache.LockData

    * @param nodeIdentifier
    * @throws LockException
    */
   private synchronized void internalUnLock(String sessionId, String nodeIdentifier) throws RepositoryException
   {
      LockData lData = getLockDataById(nodeIdentifier);

      if (lData != null)
      {
         LockJDBCConnection connection = null;
         try
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.lock.jbosscache.LockData

    */
   public LockData getExactNodeOrCloseParentLock(NodeData node) throws RepositoryException
   {
      if (node == null)
         return null;
      LockData retval = null;
      retval = getLockDataById(node.getIdentifier());
      if (retval == null)
      {
         NodeData parentData = (NodeData)dataManager.getItemData(node.getParentIdentifier());
         if (parentData != null)
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.