Package net.fckeditor.connector.exception

Examples of net.fckeditor.connector.exception.InvalidCurrentFolderException


    String absolutePath = getRealUserFilesAbsolutePath(RequestCycleHandler
        .getUserFilesAbsolutePath(ThreadLocalData.getRequest()));
    File typeDir = getOrCreateResourceTypeDir(absolutePath, type);
    File currentDir = new File(typeDir, currentFolder);
    if (!currentDir.exists() || !currentDir.isDirectory())
      throw new InvalidCurrentFolderException();

    File newFile = new File(currentDir, fileName);
    File fileToSave = UtilsFile.getUniqueFile(newFile.getAbsoluteFile());

    try {
View Full Code Here


    String absolutePath = getRealUserFilesAbsolutePath(RequestCycleHandler
        .getUserFilesAbsolutePath(ThreadLocalData.getRequest()));
    File typeDir = getOrCreateResourceTypeDir(absolutePath, type);
    File currentDir = new File(typeDir, currentFolder);
    if (!currentDir.exists() || !currentDir.isDirectory())
      throw new InvalidCurrentFolderException();

    File newDir = new File(currentDir, newFolder);
    if (newDir.exists())
      throw new FolderAlreadyExistsException();
    if (!newDir.mkdir())
View Full Code Here

    String absolutePath = getRealUserFilesAbsolutePath(RequestCycleHandler
        .getUserFilesAbsolutePath(ThreadLocalData.getRequest()));
    File typeDir = getOrCreateResourceTypeDir(absolutePath, type);
    File currentDir = new File(typeDir, currentFolder);
    if (!currentDir.exists() || !currentDir.isDirectory())
      throw new InvalidCurrentFolderException();

    // collect files
    List<Map<String, Object>> files;
    Map<String, Object> fileMap;
    File[] fileList = currentDir
View Full Code Here

    String absolutePath = getRealUserFilesAbsolutePath(RequestCycleHandler
        .getUserFilesAbsolutePath(ThreadLocalData.getRequest()));
    File typeDir = getOrCreateResourceTypeDir(absolutePath, type);
    File currentDir = new File(typeDir, currentFolder);
    if (!currentDir.exists() || !currentDir.isDirectory())
      throw new InvalidCurrentFolderException();

    String[] fileList = currentDir.list(DirectoryFileFilter.DIRECTORY);
    return Arrays.asList(fileList);
  }
View Full Code Here

TOP

Related Classes of net.fckeditor.connector.exception.InvalidCurrentFolderException

Copyright © 2018 www.massapicom. 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.