Examples of lockAsynchronously()


Examples of ch.entwine.weblounge.common.repository.WritableContentRepository.lockAsynchronously()

      return Response.status(Status.FORBIDDEN).build();
    }

    // Finally, perform the lock operation (on all resource versions)
    try {
      contentRepository.lockAsynchronously(workURI, user);
      logger.info("Page {} has been locked by {}", workURI, user);
    } catch (SecurityException e) {
      logger.warn("Tried to lock page {} of site '{}' without permission", workURI, site);
      throw new WebApplicationException(Status.FORBIDDEN);
    } catch (IOException 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.