|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.engine.handler.AbstractProducer
jtge.engine.handler.AbstractHandler
jtge.engine.security.ValidationHandler
Implements a handler to filter out invalid commands.
It intercepts commands and checks that the registered user has the right to issue them before forwarding to the next consumer.
| Constructor Summary | |
ValidationHandler(IConsumer consumer,
IUser user)
Create a validation handler. |
|
ValidationHandler(IConsumer consumer,
IUser user,
ISecurityObserver observer)
Create a validation handler. |
|
| Method Summary | |
void |
handle(ICommand command)
Handle a command. |
| Methods inherited from class jtge.engine.handler.AbstractProducer |
forward |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ValidationHandler(IConsumer consumer,
IUser user,
ISecurityObserver observer)
consumer - the target consumeruser - the reference user for validationobserver - the (optional) security observer
public ValidationHandler(IConsumer consumer,
IUser user)
consumer - the target consumeruser - the reference user for validation| Method Detail |
public final void handle(ICommand command)
command - the command to handle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||