org.dbforms.event
Class AbstractWebEvent

java.lang.Object
  extended by org.dbforms.event.AbstractWebEvent
Direct Known Subclasses:
AbstractDatabaseEvent, AbstractNavigationEvent, NoopEvent, PageReloadEvent

public abstract class AbstractWebEvent
extends Object

Abstract base class for all web-events.
Implementations of this class will be generated by the controller/EventEngine by dispatchting the incoming HTTP-request from the client. In fact, the WebEvent classes itselves may provide methods (constructors) to help parsing the request data.
WebEvents may be processed by the controller and/or by the custom tags at JSP-side.

Author:
Joe Peer

Constructor Summary
AbstractWebEvent(int tableId, HttpServletRequest request, DbFormsConfig config)
          Creates a new WebEvent object.
 
Method Summary
 DbFormsConfig getConfig()
          Gets the config attribute of the WebEvent object
 String getFollowUp()
          Gets the followUp attribute of the WebEvent object
 String getFollowUpOnError()
          Gets the followUpOnError attribute of the WebEvent object
 Properties getProperties()
          Gets the properties attribute of the WebEvent object
 HttpServletRequest getRequest()
          Gets the request attribute of the WebEvent object
 Table getTable()
          DOCUMENT ME!
 String getType()
          Get the string that defines the current event type
protected  boolean hasUserPrivileg(int privileg)
          Check if the current user has got the input privilege
 void setFollowUp(String followUp)
          Sets the followUp attribute of the WebEvent object
 void setFollowUpOnError(String followUpOnError)
          Sets the followUpOnError attribute of the WebEvent object
 void setProperties(Properties properties)
          Sets the properties attribute of the WebEvent object
 void setRequest(HttpServletRequest request)
          sets the request attribute of the WebEvent object
 void setTable(Table table)
          DOCUMENT ME!
 void setType(String type)
          Sets the event type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWebEvent

public AbstractWebEvent(int tableId,
                        HttpServletRequest request,
                        DbFormsConfig config)
Creates a new WebEvent object.

Parameters:
tableId - the table id
request - the request object
config - the configuration object
Method Detail

getConfig

public DbFormsConfig getConfig()
Gets the config attribute of the WebEvent object

Returns:
The config value

setFollowUp

public void setFollowUp(String followUp)
Sets the followUp attribute of the WebEvent object

Parameters:
followUp - The new followUp value

getFollowUp

public String getFollowUp()
Gets the followUp attribute of the WebEvent object

Returns:
The followUp value

setFollowUpOnError

public void setFollowUpOnError(String followUpOnError)
Sets the followUpOnError attribute of the WebEvent object

Parameters:
followUpOnError - The new followUpOnError value

getFollowUpOnError

public String getFollowUpOnError()
Gets the followUpOnError attribute of the WebEvent object

Returns:
The followUpOnError value

setProperties

public void setProperties(Properties properties)
Sets the properties attribute of the WebEvent object

Parameters:
properties - The new properties value

getProperties

public Properties getProperties()
Gets the properties attribute of the WebEvent object

Returns:
The properties value

setRequest

public void setRequest(HttpServletRequest request)
sets the request attribute of the WebEvent object

Parameters:
request - The new request value

getRequest

public HttpServletRequest getRequest()
Gets the request attribute of the WebEvent object

Returns:
The request value

setTable

public void setTable(Table table)
DOCUMENT ME!

Parameters:
table - DOCUMENT ME!

getTable

public Table getTable()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setType

public void setType(String type)
Sets the event type

Parameters:
type - The type to set

getType

public String getType()
Get the string that defines the current event type

Returns:
the string that defines the current event type

hasUserPrivileg

protected boolean hasUserPrivileg(int privileg)
Check if the current user has got the input privilege

Parameters:
privileg - the privilege value
Returns:
true if the current user has got the input privilege, false otherwise


Copyright © 2002-2006 DbForms. All Rights Reserved.