Examples of LockEvent


Examples of org.apache.jackrabbit.core.cluster.SimpleEventListener.LockEvent

    /**
     * Test producing and consuming a lock operation.
     * @throws Exception
     */
    public void testLockOperation() throws Exception {
        LockEvent event = new LockEvent(new NodeId(UUID.randomUUID()), true, "admin");

        master.createLockChannel(DEFAULT_WORKSPACE).create(event.getNodeId(),
                event.isDeep(), event.getUserId()).ended(true);

        SimpleEventListener listener = new SimpleEventListener();
        slave.createLockChannel(DEFAULT_WORKSPACE).setListener(listener);
        slave.sync();

View Full Code Here

Examples of org.apache.jackrabbit.core.cluster.SimpleEventListener.LockEvent

    /**
     * Test producing and consuming a lock operation.
     * @throws Exception
     */
    public void testLockOperation() throws Exception {
        LockEvent event = new LockEvent(new NodeId(UUID.randomUUID()), true, "admin");

        master.createLockChannel(DEFAULT_WORKSPACE).create(event.getNodeId(),
                event.isDeep(), event.getUserId()).ended(true);

        SimpleEventListener listener = new SimpleEventListener();
        slave.createLockChannel(DEFAULT_WORKSPACE).setListener(listener);
        slave.sync();

View Full Code Here

Examples of org.apache.slide.event.LockEvent

        } else {
            throw nestedException;
        }
       
        // Fire event
        if ( LockEvent.LOCK.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(LockEvent.LOCK, new LockEvent(this, slideToken, namespace, objectUri));
    }
View Full Code Here

Examples of org.apache.slide.event.LockEvent

        Uri lockedUri = namespace.getUri(slideToken, lockToken.getObjectUri(),
                                         true);
        lockedUri.getStore().removeLock(lockedUri, lockToken);

        // Fire event
        if ( LockEvent.UNLOCK.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(LockEvent.UNLOCK, new LockEvent(this, slideToken, namespace, lockedUri));

        return true;
    }
View Full Code Here

Examples of org.apache.slide.event.LockEvent

        lockToken.setExpirationDate(newExpirationDate);
        Uri lockedUri = namespace.getUri(slideToken, lockToken.getObjectUri());
        lockedUri.getStore().renewLock(lockedUri, lockToken);

        // Fire event
        if ( LockEvent.RENEW.isEnabled() ) EventDispatcher.getInstance().fireVetoableEvent(LockEvent.RENEW, new LockEvent(this, slideToken, namespace, lockedUri));
    }
View Full Code Here

Examples of org.hibernate.event.LockEvent


  // lock() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  public void lock(String entityName, Object object, LockMode lockMode) throws HibernateException {
    fireLock( new LockEvent(entityName, object, lockMode, this) );
  }
View Full Code Here

Examples of org.hibernate.event.LockEvent

  public void lock(String entityName, Object object, LockMode lockMode) throws HibernateException {
    fireLock( new LockEvent(entityName, object, lockMode, this) );
  }

  public void lock(Object object, LockMode lockMode) throws HibernateException {
    fireLock( new LockEvent(object, lockMode, this) );
  }
View Full Code Here

Examples of org.hibernate.event.LockEvent

  public void lock(Object object, LockMode lockMode) throws HibernateException {
    fireLock( new LockEvent(object, lockMode, this) );
  }

  private void fireLock(String entityName, Object object, LockOptions options) {
    fireLock( new LockEvent( entityName, object, options, this) );
  }
View Full Code Here

Examples of org.hibernate.event.LockEvent

  private void fireLock(String entityName, Object object, LockOptions options) {
    fireLock( new LockEvent( entityName, object, options, this) );
  }

  private void fireLock( Object object, LockOptions options) {
    fireLock( new LockEvent( object, options, this) );
  }
View Full Code Here

Examples of org.hibernate.event.LockEvent


  // lock() operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  public void lock(String entityName, Object object, LockMode lockMode) throws HibernateException {
    fireLock( new LockEvent(entityName, object, lockMode, this) );
  }
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.