|
Awake File v1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AwakeFileConfigurator
Interface that defines the User Configuration for the Awake File Framework.
All the implemented methods will be called by the Awake Server programs when a client program asks for a file operation from the client, or when a client program asks for a RPC call of a Java.
A concrete implementation should be developed on the server side in order to:
DefaultAwakeFileConfigurator
.
Method Summary | |
---|---|
boolean |
allowCallAfterAnalysis(String username,
Connection connection,
String methodName,
List<Object> params)
Allows, for the passed client username, to define a specific piece of Java code to analyze the method name and it's parameter values before allowing or not it's execution. |
File |
getServerRoot()
Allows to define the Awake File Server root directory for the file storage & access. |
void |
runIfCallRefused(String username,
Connection connection,
String ipAddress,
String methodName,
List<Object> params)
Allows to implement specific a Java rule immediately after a call has been refused to a user and allowCallAfterAnalysis returned
false . |
boolean |
useOneRootPerUsername()
Allows to define if the Awake File Server must use a root directory per client username for the file storage & access. |
Method Detail |
---|
boolean allowCallAfterAnalysis(String username, Connection connection, String methodName, List<Object> params) throws IOException, SQLException
username
- the client username to check the rule forconnection
- the SQL Connection as configured in
AwakeCommonsConfigurator.getConnection()
implementation. Will be null if getConnection()
was no
configured.methodName
- the full method name to call in the format
org.acme.config.package.MyClass.myMethod
params
- the list of parameters passed to the method. Empty list if
none.
true
if the analyzed call is validated.
IOException
- if an IOException occurs
SQLException
- if a SQLException occursFile getServerRoot()
null
if there is no
server root to define (adress of files will be absolute when
uploading, downloading, etc.)void runIfCallRefused(String username, Connection connection, String ipAddress, String methodName, List<Object> params) throws IOException, SQLException
allowCallAfterAnalysis
returned
false
.
username
- the client usernameconnection
- the SQL Connection as configured in
AwakeCommonsConfigurator.getConnection()
implementation. Will be null if getConnection()
was no
configured.ipAddress
- the IP address of the client usermethodName
- the full method name to call in the format
org.acme.config.package.MyClass.myMethod
params
- the list of parameters passed to the method
IOException
- if an IOException occurs
SQLException
- if a SQLException occursboolean useOneRootPerUsername()
true
, the name of the username will be used as root
directory per user.
true
if there is one root directory per client
username
|
Awake File v1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |