Package ch.entwine.weblounge.common.repository

Examples of ch.entwine.weblounge.common.repository.PutOperation


      if (r == null) {
        logger.debug("Version {} of {} has been removed in the meantime", u.getVersion(), u);
        continue;
      }
      r.lock(user);
      PutOperation putOp = new PutOperationImpl(r, false);
      try {
        CurrentOperation.set(putOp);
        put(r, false);
      } finally {
        CurrentOperation.set(lockOperation);
View Full Code Here


    Resource<?> resource = null;
    ContentRepositoryOperation<?> unlockOperation = CurrentOperation.get();
    for (ResourceURI u : getVersions(uri)) {
      Resource<?> r = get(u);
      r.unlock();
      PutOperation putOp = new PutOperationImpl(r, false);
      try {
        CurrentOperation.set(putOp);
        put(r, false);
      } finally {
        CurrentOperation.set(unlockOperation);
View Full Code Here

    if (!isStarted())
      throw new IllegalStateException("Content repository is not connected");

    // Create an asynchronous operation representation and return it
    PutOperation putOperation = new PutOperationImpl(resource, false);
    processor.enqueue(putOperation);
    return putOperation;
  }
View Full Code Here

    if (!isStarted())
      throw new IllegalStateException("Content repository is not connected");

    // Create an asynchronous operation representation and return it
    PutOperation putOperation = new PutOperationImpl(resource, updatePreviews);
    processor.enqueue(putOperation);
    return putOperation;
  }
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.repository.PutOperation

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.