Example #1
0
 @Override
 public void deleteFolder(FolderModel folderModel, GroupPlusView groupPlusView)
     throws GWTException {
   String systemPath =
       MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId())
           + folderModel.getPath();
   deleteFolderInSystem(systemPath, folderModel.getPath());
 }
Example #2
0
 @Override
 public void renameFile(
     String pathName, String oldRelativeFile, String newRelativeFile, GroupPlusView groupPlusView)
     throws GWTException {
   String systemPath =
       MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId()) + pathName;
   renameFileInSystem(systemPath, oldRelativeFile, newRelativeFile);
 }
Example #3
0
 @Override
 public List<FileModel> getFolderChildren(FileModel folder, GroupPlusView groupPlusView) {
   try {
     FileUtil.createDirsIfNecessary(groupPlusView);
   } catch (IOException e) {
     Application.log.error("", e);
     throw new GWTException(e);
   }
   String rootDir = MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId());
   return getFolderChildren(folder, rootDir);
 }
Example #4
0
 @Override
 public void createFolder(String folder, GroupPlusView groupPlusView) {
   createFolder(
       folder, MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId()) + folder);
 }