com.jfw.authentication
Class UserServiceDB

java.lang.Object
  extended by com.jfw.authentication.UserServiceDB
All Implemented Interfaces:
QueryGatewayInterface

public class UserServiceDB
extends java.lang.Object
implements QueryGatewayInterface

Check if a service can be executed by a user.


Field Summary
static java.lang.String RESULT_KEY
          Output HashMap key for operation result.
static java.lang.String RESULT_KO_KEY
          Output HashMap KO value relative of key RESULT_KEY.
static java.lang.String RESULT_OK_KEY
          Output HashMap OK value relative of key RESULT_KEY.
static java.lang.String SERVICE_NAME_KEY
          Parameter key for service name.
static java.lang.String USER_ID_KEY
          Parameter key for user id.
 
Constructor Summary
UserServiceDB()
           
 
Method Summary
 void execute(java.util.HashMap outputdata)
          Execute the query.
 void setData(java.lang.Object data)
          Set attribute data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_ID_KEY

public static final java.lang.String USER_ID_KEY
Parameter key for user id.

See Also:
Constant Field Values

SERVICE_NAME_KEY

public static final java.lang.String SERVICE_NAME_KEY
Parameter key for service name.

See Also:
Constant Field Values

RESULT_KEY

public static final java.lang.String RESULT_KEY
Output HashMap key for operation result.

See Also:
Constant Field Values

RESULT_OK_KEY

public static final java.lang.String RESULT_OK_KEY
Output HashMap OK value relative of key RESULT_KEY.

See Also:
Constant Field Values

RESULT_KO_KEY

public static final java.lang.String RESULT_KO_KEY
Output HashMap KO value relative of key RESULT_KEY.

See Also:
Constant Field Values
Constructor Detail

UserServiceDB

public UserServiceDB()
Method Detail

setData

public void setData(java.lang.Object data)
Set attribute data.

Specified by:
setData in interface QueryGatewayInterface
Parameters:
data - contains parameters ued by the query.

execute

public void execute(java.util.HashMap outputdata)
             throws DatabaseException
Execute the query.

Specified by:
execute in interface QueryGatewayInterface
Parameters:
outputdata - set key RESULT_OK_KEY with value RESULT_OK_KEY if the user-group can execute the service or value RESULT_KO_KEY if can not.
Throws:
DatabaseException