Package ch.entwine.weblounge.common.repository

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


      // Check if the resource has been moved
      String currentPath = currentResource.getURI().getPath();
      String newPath = StringUtils.trimToNull(resource.getURI().getPath());
      if (currentPath != null && newPath != null && !currentPath.equals(newPath)) {
        contentRepository.move(currentResource.getURI(), newPath, true);
      }
    } catch (IOException e) {
      logger.warn("Error reading udpated resource {} from request", resourceURI);
      throw new WebApplicationException(Status.INTERNAL_SERVER_ERROR);
    } catch (ParserConfigurationException 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.