java.lang.Object
org.genesys.filerepository.service.ftp.FtpUser
All Implemented Interfaces:
org.apache.ftpserver.ftplet.User

public class FtpUser extends Object implements org.apache.ftpserver.ftplet.User
The Class FtpUser.
  • Constructor Details

    • FtpUser

      public FtpUser()
      Instantiates a new ftp user.
    • FtpUser

      public FtpUser(String username)
      Instantiates a new ftp user.
      Parameters:
      username - the username
    • FtpUser

      public FtpUser(org.genesys.blocks.security.model.BasicUser<?> user)
      Instantiates a new ftp user.
      Parameters:
      user - the user
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.ftpserver.ftplet.User
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.apache.ftpserver.ftplet.User
    • getAuthorities

      public List<? extends org.apache.ftpserver.ftplet.Authority> getAuthorities()
      Specified by:
      getAuthorities in interface org.apache.ftpserver.ftplet.User
    • getAuthorities

      public List<? extends org.apache.ftpserver.ftplet.Authority> getAuthorities(Class<? extends org.apache.ftpserver.ftplet.Authority> clazz)
      Specified by:
      getAuthorities in interface org.apache.ftpserver.ftplet.User
    • authorize

      public org.apache.ftpserver.ftplet.AuthorizationRequest authorize(org.apache.ftpserver.ftplet.AuthorizationRequest request)
      Specified by:
      authorize in interface org.apache.ftpserver.ftplet.User
    • getMaxIdleTime

      public int getMaxIdleTime()
      Specified by:
      getMaxIdleTime in interface org.apache.ftpserver.ftplet.User
    • getEnabled

      public boolean getEnabled()
      Specified by:
      getEnabled in interface org.apache.ftpserver.ftplet.User
    • getHomeDirectory

      public String getHomeDirectory()
      Specified by:
      getHomeDirectory in interface org.apache.ftpserver.ftplet.User
    • setName

      public final void setName(String name)
      Sets the name.
      Parameters:
      name - the name to set
    • setPassword

      public final void setPassword(String password)
      Sets the password.
      Parameters:
      password - the password to set
    • setAuthorities

      public final void setAuthorities(List<? extends org.apache.ftpserver.ftplet.Authority> authorities)
      Sets the authorities.
      Parameters:
      authorities - the authorities to set
    • setMaxIdleTime

      public final void setMaxIdleTime(int maxIdleTime)
      Sets the max idle time.
      Parameters:
      maxIdleTime - the maxIdleTime to set
    • setEnabled

      public final void setEnabled(boolean enabled)
      Sets the enabled.
      Parameters:
      enabled - the enabled to set
    • setHomeDirectory

      public final void setHomeDirectory(String homeDirectory)
      Sets the home directory.
      Parameters:
      homeDirectory - the homeDirectory to set