コード例 #1
0
  @Override
  public boolean moveContent(String fromPath, String toPath, String newName) {
    ContentRepository fromRepo = lookupRepo(fromPath);
    ContentRepository toRepo = lookupRepo(toPath);

    if (fromRepo != toRepo) {
      logger.error(
          "From repository for path '{0}' and To repository for path '{1}' do not match",
          fromPath, toPath);
      throw new RuntimeException("cross repo move operation not supported");
    }

    return fromRepo.moveContent(fromPath, toPath, newName);
  }
コード例 #2
0
 @Override
 public Date getModifiedDate(String path) {
   ContentRepository repo = lookupRepo(path);
   return repo.getModifiedDate(path);
 }
コード例 #3
0
 @Override
 public void unLockItem(String site, String path) {
   ContentRepository repo = lookupRepo(path);
   repo.unLockItem(site, path);
 }
コード例 #4
0
 @Override
 public boolean revertContent(String path, String label, boolean major, String comment) {
   ContentRepository repo = lookupRepo(path);
   return repo.revertContent(path, label, major, comment);
 }
コード例 #5
0
 @Override
 public String createVersion(String path, String comment, boolean majorVersion) {
   ContentRepository repo = lookupRepo(path);
   return repo.createVersion(path, comment, majorVersion);
 }
コード例 #6
0
 @Override
 public VersionTO[] getContentVersionHistory(String path) {
   ContentRepository repo = lookupRepo(path);
   return repo.getContentVersionHistory(path);
 }
コード例 #7
0
 @Override
 public RepositoryItem[] getContentChildren(String path) {
   ContentRepository repo = lookupRepo(path);
   return repo.getContentChildren(path);
 }
コード例 #8
0
 @Override
 public boolean deleteContent(String path) {
   ContentRepository repo = lookupRepo(path);
   return repo.deleteContent(path);
 }
コード例 #9
0
 @Override
 public boolean createFolder(String path, String name) {
   ContentRepository repo = lookupRepo(path);
   return repo.createFolder(path, name);
 }
コード例 #10
0
 @Override
 public boolean writeContent(String path, InputStream content) {
   ContentRepository repo = lookupRepo(path);
   return repo.writeContent(path, content);
 }
コード例 #11
0
 @Override
 public boolean contentExists(String path) {
   ContentRepository repo = lookupRepo(path);
   return repo.contentExists(path);
 }
コード例 #12
0
 @Override
 public InputStream getContent(String path) throws ContentNotFoundException {
   ContentRepository repo = lookupRepo(path);
   return repo.getContent(path);
 }