org.makumba.forms.responder
Class ResponderOperation

java.lang.Object
  extended by org.makumba.forms.responder.ResponderOperation
All Implemented Interfaces:
Serializable

public abstract class ResponderOperation
extends Object
implements Serializable

this class helps to differentiate between the different types of forms

Author:
Cristian Bogdan, Manuel Gay
See Also:
Serialized Form

Field Summary
static ResponderOperation addOp
           
static ResponderOperation addToNewOp
           
static ResponderOperation deleteFormOp
           
static ResponderOperation deleteLinkOp
           
static ResponderOperation editOp
           
static ResponderOperation newOp
           
static ResponderOperation simepleOp
           
 
Constructor Summary
ResponderOperation()
           
 
Method Summary
 DbConnectionProvider getConnectionProvider(HttpServletRequest req, Object controller)
          gets the transaction provider
abstract  FormOperationType getOperationType()
           
abstract  Object respondTo(HttpServletRequest req, Responder resp, String suffix, String parentSuffix)
          respond to the given request, with the data from the given responder, read using the given multiple form suffix
abstract  String verify(Responder resp)
          check the validity of the given responder data, return not-null if there is a problem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newOp

public static final ResponderOperation newOp

editOp

public static final ResponderOperation editOp

addToNewOp

public static final ResponderOperation addToNewOp

addOp

public static final ResponderOperation addOp

simepleOp

public static final ResponderOperation simepleOp

deleteLinkOp

public static final ResponderOperation deleteLinkOp

deleteFormOp

public static final ResponderOperation deleteFormOp
Constructor Detail

ResponderOperation

public ResponderOperation()
Method Detail

getOperationType

public abstract FormOperationType getOperationType()

respondTo

public abstract Object respondTo(HttpServletRequest req,
                                 Responder resp,
                                 String suffix,
                                 String parentSuffix)
                          throws LogicException
respond to the given request, with the data from the given responder, read using the given multiple form suffix

Throws:
LogicException

verify

public abstract String verify(Responder resp)
check the validity of the given responder data, return not-null if there is a problem


getConnectionProvider

public DbConnectionProvider getConnectionProvider(HttpServletRequest req,
                                                  Object controller)
gets the transaction provider