|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.file.filesystembased.FilesystemBasedAuthImpl
public abstract class FilesystemBasedAuthImpl
Authentication implementation for Filesystem Based
Field Summary | |
---|---|
protected boolean |
isIdentified
Is Identified |
protected String |
password
Password |
protected String |
rootFromAuth
Relative Path after Authentication |
protected SessionInterface |
session
SessionInterface |
protected String |
user
User name |
Constructor Summary | |
---|---|
FilesystemBasedAuthImpl(SessionInterface session)
|
Method Summary | |
---|---|
protected abstract void |
businessClean()
Business implementation of clean |
void |
clear()
Clean object |
String |
getAbsolutePath(String path)
Return the full path as a String (with mount point). |
String |
getBusinessPath()
Return the relative path for this account according to the Business (without true root of mount). |
String |
getRelativePath(String file)
Return the relative path from a file (without mount point) |
SessionInterface |
getSession()
|
String |
getUser()
|
boolean |
isIdentified()
Is the current Authentication OK for full identification. |
protected abstract NextCommandReply |
setBusinessPassword(String password)
Set the password according to any implementation and could set the rootFromAuth. |
protected abstract String |
setBusinessRootFromAuth()
|
protected abstract NextCommandReply |
setBusinessUser(String user)
Set the user according to any implementation and could set the rootFromAuth. |
protected void |
setIsIdentified(boolean isIdentified)
Set the Authentication to Identified or Not |
NextCommandReply |
setPassword(String password)
|
NextCommandReply |
setUser(String user)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface goldengate.common.file.AuthInterface |
---|
getBaseDirectory, isAdmin, isBusinessPathValid |
Field Detail |
---|
protected String user
protected String password
protected boolean isIdentified
protected final SessionInterface session
protected String rootFromAuth
Constructor Detail |
---|
public FilesystemBasedAuthImpl(SessionInterface session)
session
- Method Detail |
---|
public SessionInterface getSession()
getSession
in interface AuthInterface
protected abstract NextCommandReply setBusinessUser(String user) throws Reply421Exception, Reply530Exception
user
-
Reply421Exception
- if there is a problem during the authentication
Reply530Exception
- if there is a problem during the authenticationpublic NextCommandReply setUser(String user) throws Reply421Exception, Reply530Exception
setUser
in interface AuthInterface
user
- the user to set
Reply421Exception
- if there is a problem during the authentication
Reply530Exception
- if there is a problem during the authenticationpublic String getUser()
getUser
in interface AuthInterface
protected abstract NextCommandReply setBusinessPassword(String password) throws Reply421Exception, Reply530Exception
password
-
Reply421Exception
- if there is a problem during the authentication
Reply530Exception
- if there is a problem during the authenticationpublic NextCommandReply setPassword(String password) throws Reply421Exception, Reply530Exception
setPassword
in interface AuthInterface
password
- the password to set
Reply421Exception
- if there is a problem during the authentication
Reply530Exception
- if there is a problem during the authenticationprotected void setIsIdentified(boolean isIdentified)
isIdentified
- public boolean isIdentified()
isIdentified
in interface AuthInterface
protected abstract String setBusinessRootFromAuth() throws Reply421Exception
Reply421Exception
- if the business root is not availablepublic String getBusinessPath()
AuthInterface
getBusinessPath
in interface AuthInterface
protected abstract void businessClean()
public void clear()
clear
in interface AuthInterface
public String getAbsolutePath(String path)
path
- relative path including business one (may be null or empty)
public String getRelativePath(String file)
getRelativePath
in interface AuthInterface
file
- (full path with mount point)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |