Package ch.entwine.weblounge.common.repository

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


      // Check if the page has been moved
      String currentPath = currentPage.getURI().getPath();
      String newPath = page.getURI().getPath();
      if ((currentPath != null && !currentPath.equals(newPath) || (currentPath == null && newPath != null))) {
        contentRepository.moveAsynchronously(currentPage.getURI(), newPath, true);
      }
    } catch (SecurityException e) {
      logger.warn("Tried to update 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.