|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.handler.approve.ApproveBase
Interface to approve a change request.
| Field Summary | |
protected java.lang.String |
eMail
|
protected ZetaServlet |
servlet
|
protected java.lang.String |
user
|
protected int |
userId
|
| Constructor Summary | |
ApproveBase(ZetaServlet servlet,
int userId,
java.lang.String user,
java.lang.String eMail)
|
|
| Method Summary | |
abstract 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 |
generateAddressToApprove(byte[] data)
Generates a link to approve the specified data. |
abstract java.lang.String |
getKey()
Returns the key name of the change request. |
static java.lang.Integer |
getServerId(java.lang.String text)
|
static long |
getTimeMillis(java.lang.String text)
|
static java.lang.Integer |
getUserId(java.lang.String text)
|
java.lang.String |
getValue(java.lang.String text)
Returns the value(s) of the change request. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ZetaServlet servlet
protected int userId
protected java.lang.String user
protected java.lang.String eMail
| Constructor Detail |
public ApproveBase(ZetaServlet servlet,
int userId,
java.lang.String user,
java.lang.String eMail)
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 |
public abstract java.lang.String getKey()
public java.lang.String getValue(java.lang.String text)
public abstract java.lang.String approve(java.sql.Statement stmt,
java.lang.String value,
long timeMillis)
throws java.sql.SQLException,
javax.servlet.ServletException
stmt - statement object's databasevalue - which will be changed.timeMillis - timestamp of the request.
java.sql.SQLException
javax.servlet.ServletException
public java.lang.String generateAddressToApprove(byte[] data)
throws java.sql.SQLException,
java.io.IOException,
javax.servlet.ServletException
data - data to encrypt
java.sql.SQLException - if a database access error occurs.
java.io.IOException - if an I/O error occurs.
javax.servlet.ServletExceptionpublic static java.lang.Integer getServerId(java.lang.String text)
public static java.lang.Integer getUserId(java.lang.String text)
public static long getTimeMillis(java.lang.String text)
public static void main(java.lang.String[] args)
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||