Class FtpUser
java.lang.Object
org.genesys.filerepository.service.ftp.FtpUser
- All Implemented Interfaces:
org.apache.ftpserver.ftplet.User
The Class FtpUser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.ftpserver.ftplet.AuthorizationRequestauthorize(org.apache.ftpserver.ftplet.AuthorizationRequest request) List<? extends org.apache.ftpserver.ftplet.Authority>List<? extends org.apache.ftpserver.ftplet.Authority>getAuthorities(Class<? extends org.apache.ftpserver.ftplet.Authority> clazz) booleanintgetName()final voidsetAuthorities(List<? extends org.apache.ftpserver.ftplet.Authority> authorities) Sets the authorities.final voidsetEnabled(boolean enabled) Sets the enabled.final voidsetHomeDirectory(String homeDirectory) Sets the home directory.final voidsetMaxIdleTime(int maxIdleTime) Sets the max idle time.final voidSets the name.final voidsetPassword(String password) Sets the password.
-
Constructor Details
-
FtpUser
public FtpUser()Instantiates a new ftp user. -
FtpUser
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
- Specified by:
getNamein interfaceorg.apache.ftpserver.ftplet.User
-
getPassword
- Specified by:
getPasswordin interfaceorg.apache.ftpserver.ftplet.User
-
getAuthorities
- Specified by:
getAuthoritiesin interfaceorg.apache.ftpserver.ftplet.User
-
getAuthorities
public List<? extends org.apache.ftpserver.ftplet.Authority> getAuthorities(Class<? extends org.apache.ftpserver.ftplet.Authority> clazz) - Specified by:
getAuthoritiesin interfaceorg.apache.ftpserver.ftplet.User
-
authorize
public org.apache.ftpserver.ftplet.AuthorizationRequest authorize(org.apache.ftpserver.ftplet.AuthorizationRequest request) - Specified by:
authorizein interfaceorg.apache.ftpserver.ftplet.User
-
getMaxIdleTime
public int getMaxIdleTime()- Specified by:
getMaxIdleTimein interfaceorg.apache.ftpserver.ftplet.User
-
getEnabled
public boolean getEnabled()- Specified by:
getEnabledin interfaceorg.apache.ftpserver.ftplet.User
-
getHomeDirectory
- Specified by:
getHomeDirectoryin interfaceorg.apache.ftpserver.ftplet.User
-
setName
Sets the name.- Parameters:
name- the name to set
-
setPassword
Sets the password.- Parameters:
password- the password to set
-
setAuthorities
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
Sets the home directory.- Parameters:
homeDirectory- the homeDirectory to set
-