Esempio n. 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());
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 @Override
 public void createFolder(String folder, GroupPlusView groupPlusView) {
   createFolder(
       folder, MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId()) + folder);
 }