ZetaGrid v1.9

zeta.handler.approve
Class ApproveMessages

java.lang.Object
  |
  +--zeta.handler.approve.ApproveBase
        |
        +--zeta.handler.approve.ApproveMessages

public class ApproveMessages
extends ApproveBase

Approve a change request to subscribe or unsubscribe for messages.


Field Summary
 
Fields inherited from class zeta.handler.approve.ApproveBase
eMail, servlet, user, userId
 
Constructor Summary
ApproveMessages(ZetaServlet servlet, int userId, java.lang.String user, java.lang.String eMail)
           
 
Method Summary
 java.lang.String approve(java.sql.Statement stmt, java.lang.String value, long timeMillis)
          Returns a row name which will be need as an additional information in the approve process.
 java.lang.String getKey()
          Returns the key name of the change request.
 
Methods inherited from class zeta.handler.approve.ApproveBase
generateAddressToApprove, getServerId, getTimeMillis, getUserId, getValue, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApproveMessages

public ApproveMessages(ZetaServlet servlet,
                       int userId,
                       java.lang.String user,
                       java.lang.String eMail)
Parameters:
servlet - servlet which owns the approve handler.
userId - id of the user where the data will be changed.
user - name of the user.
eMail - e-mail address of the user.
Method Detail

getKey

public java.lang.String getKey()
Returns the key name of the change request. A key name should contains only alpha characters.

Specified by:
getKey in class ApproveBase
Returns:
the key name of the change request.

approve

public java.lang.String approve(java.sql.Statement stmt,
                                java.lang.String value,
                                long timeMillis)
                         throws java.sql.SQLException,
                                javax.servlet.ServletException
Returns a row name which will be need as an additional information in the approve process.

Specified by:
approve in class ApproveBase
Parameters:
stmt - statement object's database
value - which will be changed.
timeMillis - timestamp of the request.
Returns:
HTML text as information of the change.
java.sql.SQLException
javax.servlet.ServletException

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.