Class SmbFileInfo

java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<jcifs.smb.SmbFile>
org.springframework.integration.smb.session.SmbFileInfo
All Implemented Interfaces:
Comparable<org.springframework.integration.file.remote.FileInfo<jcifs.smb.SmbFile>>, org.springframework.integration.file.remote.FileInfo<jcifs.smb.SmbFile>

public class SmbFileInfo extends org.springframework.integration.file.remote.AbstractFileInfo<jcifs.smb.SmbFile>
A FileInfo implementation for SMB.
Since:
6.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmbFileInfo(jcifs.smb.SmbFile smbFile)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jcifs.smb.SmbFile
     
     
    long
     
    An Access Control Entry (ACE) is an element in a security descriptor such as those associated with files and directories.
    long
     
    boolean
     
    boolean
    Symbolic links are currently not supported in the JCIFS v2.x.x dependent library, so this method will always return false.

    Methods inherited from class org.springframework.integration.file.remote.AbstractFileInfo

    compareTo, getRemoteDirectory, setRemoteDirectory, toJson, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SmbFileInfo

      public SmbFileInfo(jcifs.smb.SmbFile smbFile)
  • Method Details

    • isDirectory

      public boolean isDirectory()
    • isLink

      public boolean isLink()
      Symbolic links are currently not supported in the JCIFS v2.x.x dependent library, so this method will always return false.
      Returns:
      false
    • getSize

      public long getSize()
    • getModified

      public long getModified()
    • getFilename

      public String getFilename()
    • getPermissions

      public String getPermissions()
      An Access Control Entry (ACE) is an element in a security descriptor such as those associated with files and directories. The Windows OS determines which users have the necessary permissions to access objects based on these entries. A readable, formatted list of security descriptor entries and associated permissions will be returned by this implementation.
       WNET\alice - Deny Write, Deny Modify, Direct - This folder only
       SYSTEM - Allow Read, Allow Write, Allow Modify, Allow Execute, Allow Delete, Inherited - This folder only
       WNET\alice - Allow Read, Allow Write, Allow Modify, Allow Execute, Allow Delete, Inherited - This folder only
       Administrators - Allow Read, Allow Write, Allow Modify, Allow Execute, Allow Delete, Inherited - This folder only
       
      Returns:
      a list of Access Control Entry (ACE) objects representing the security descriptor entry and permissions associated with this file or directory.
      See Also:
      • ACE
      • SID
    • getFileInfo

      public jcifs.smb.SmbFile getFileInfo()