@Override public void deleteFolder(FolderModel folderModel, GroupPlusView groupPlusView) throws GWTException { String systemPath = MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId()) + folderModel.getPath(); deleteFolderInSystem(systemPath, folderModel.getPath()); }
@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); }
@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); }
@Override public void createFolder(String folder, GroupPlusView groupPlusView) { createFolder( folder, MessageFormat.format(Global.GROUPDIRTEMPLATE, groupPlusView.getId()) + folder); }