Class IwcmFsVolume

java.lang.Object
sk.iway.iwcm.system.elfinder.IwcmFsVolume
All Implemented Interfaces:
cn.bluejoe.elfinder.service.FsVolume
Direct Known Subclasses:
IwcmActualPageFsVolume, IwcmLibraryFsVolume

public class IwcmFsVolume extends Object implements cn.bluejoe.elfinder.service.FsVolume
IwcmFsVolume.java - volume objekt pre elFinder (cn.bluejoe.elfinder)
  • Field Details

  • Constructor Details

    • IwcmFsVolume

      public IwcmFsVolume(String name, String rootUrl)
    • IwcmFsVolume

      public IwcmFsVolume(String name, IwcmFile rootDir)
  • Method Details

    • asFile

      protected IwcmFile asFile(cn.bluejoe.elfinder.service.FsItem fsi)
    • createFile

      public void createFile(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      createFile in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • createFolder

      public void createFolder(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      createFolder in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • deleteFile

      public boolean deleteFile(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      deleteFile in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • deleteFolder

      public boolean deleteFolder(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      deleteFolder in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • exists

      public boolean exists(cn.bluejoe.elfinder.service.FsItem newFile)
      Specified by:
      exists in interface cn.bluejoe.elfinder.service.FsVolume
    • fromFile

      protected IwcmFsItem fromFile(IwcmFile file)
    • fromPath

      public cn.bluejoe.elfinder.service.FsItem fromPath(String relativePath)
      Specified by:
      fromPath in interface cn.bluejoe.elfinder.service.FsVolume
    • getDimensions

      public String getDimensions(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getDimensions in interface cn.bluejoe.elfinder.service.FsVolume
    • getLastModified

      public long getLastModified(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getLastModified in interface cn.bluejoe.elfinder.service.FsVolume
    • getMimeType

      public String getMimeType(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getMimeType in interface cn.bluejoe.elfinder.service.FsVolume
    • getName

      public String getName()
      Specified by:
      getName in interface cn.bluejoe.elfinder.service.FsVolume
    • getName

      public String getName(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getName in interface cn.bluejoe.elfinder.service.FsVolume
    • getParent

      public cn.bluejoe.elfinder.service.FsItem getParent(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getParent in interface cn.bluejoe.elfinder.service.FsVolume
    • getPath

      public String getPath(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      getPath in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • getRoot

      public cn.bluejoe.elfinder.service.FsItem getRoot()
      Specified by:
      getRoot in interface cn.bluejoe.elfinder.service.FsVolume
    • getRootDir

      public IwcmFile getRootDir()
    • getSize

      public long getSize(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getSize in interface cn.bluejoe.elfinder.service.FsVolume
    • getThumbnailFileName

      public String getThumbnailFileName(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      getThumbnailFileName in interface cn.bluejoe.elfinder.service.FsVolume
    • hasChildFolder

      public boolean hasChildFolder(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      hasChildFolder in interface cn.bluejoe.elfinder.service.FsVolume
    • isFolder

      public boolean isFolder(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      isFolder in interface cn.bluejoe.elfinder.service.FsVolume
    • isRoot

      public boolean isRoot(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      isRoot in interface cn.bluejoe.elfinder.service.FsVolume
    • listChildren

      public cn.bluejoe.elfinder.service.FsItem[] listChildren(cn.bluejoe.elfinder.service.FsItem fsi)
      Specified by:
      listChildren in interface cn.bluejoe.elfinder.service.FsVolume
    • openInputStream

      public IwcmInputStream openInputStream(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      openInputStream in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • openOutputStream

      public IwcmOutputStream openOutputStream(cn.bluejoe.elfinder.service.FsItem fsi) throws IOException
      Specified by:
      openOutputStream in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • rename

      public void rename(cn.bluejoe.elfinder.service.FsItem src, cn.bluejoe.elfinder.service.FsItem dst) throws IOException
      Specified by:
      rename in interface cn.bluejoe.elfinder.service.FsVolume
      Throws:
      IOException
    • setName

      public void setName(String name)
    • setRootDir

      public void setRootDir(IwcmFile rootDir)
    • getVirtualPath

      public String getVirtualPath(cn.bluejoe.elfinder.controller.executor.FsItemEx item) throws IOException
      Vrati URL adresu pre subor
      Parameters:
      item -
      Returns:
      Throws:
      IOException
    • getDomainNameFileAliasAppend

      @Deprecated public static String getDomainNameFileAliasAppend()
      Deprecated.
      use AdminTools.getDomainNameFileAliasAppend()
      Ak je pre domenu definovany alias suborov vrati /alias pre jednoduche vlozenie do cesty
      Returns:
    • removeSpecialChars

      public static String removeSpecialChars(String name, cn.bluejoe.elfinder.controller.executor.FsItemEx fsi) throws IOException
      For files/dir in /files and /images directories, remove diacritics and convert to lowercase
      Parameters:
      name -
      fsi -
      Returns:
      Throws:
      IOException