com.jfw.authentication
Class GroupServiceDB

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

public class GroupServiceDB
extends java.lang.Object
implements QueryGatewayInterface

Check if a service can be executed by a user-group.


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
GroupServiceDB()
           
 
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

GroupServiceDB

public GroupServiceDB()
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