public class AgentApprovals
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
mVector |
Constructor and Description |
---|
AgentApprovals() |
Modifier and Type | Method and Description |
---|---|
void |
addApproval(java.lang.String userName)
Adds an approval to approval's list.
|
java.util.Enumeration |
elements()
Returns an enumeration of the agent approvals
|
AgentApproval |
findApproval(java.lang.String userName)
Finds an existing AgentApproval for the named user.
|
static AgentApprovals |
fromStringVector(java.util.Vector stringVector)
Recreates an AgentApprovals instance from a Vector of strings that
was created by toStringVector().
|
void |
removeApproval(java.lang.String userName)
Removes an approval from approval's list.
|
java.util.Vector |
toStringVector()
Returns the AgentApprovals as a Vector of strings.
|
public void addApproval(java.lang.String userName)
If an approval is already present for this user, it is updated with a new date. Otherwise a new value is inserted.
userName
- user name of the approving agentpublic void removeApproval(java.lang.String userName)
If there is no approval for this userName, this call does nothing.
userName
- user name of the approving agentpublic AgentApproval findApproval(java.lang.String userName)
userName
- user name of the approving agentpublic java.util.Enumeration elements()
public java.util.Vector toStringVector()
This is used for serialization in Request.setExtData().
public static AgentApprovals fromStringVector(java.util.Vector stringVector)
stringVector
- The vector of strings to translate