Class AgentApprovals
java.lang.Object
com.netscape.certsrv.request.AgentApprovals
- All Implemented Interfaces:
Serializable
A collection of AgentApproval objects.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddApproval(String userName) Adds an approval to approval's list.elements()Returns an enumeration of the agent approvalsfindApproval(String userName) Finds an existing AgentApproval for the named user.static AgentApprovalsfromStringVector(Vector<String> stringVector) Recreates an AgentApprovals instance from a Vector of strings that was created by toStringVector().get(int i) voidremoveApproval(String userName) Removes an approval from approval's list.intsize()Returns the AgentApprovals as a Vector of strings.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mVector
-
-
Constructor Details
-
AgentApprovals
public AgentApprovals()
-
-
Method Details
-
addApproval
Adds an approval to approval's list.If an approval is already present for this user, it is updated with a new date. Otherwise a new value is inserted.
- Parameters:
userName- user name of the approving agent
-
removeApproval
Removes an approval from approval's list.If there is no approval for this userName, this call does nothing.
- Parameters:
userName- user name of the approving agent
-
findApproval
Finds an existing AgentApproval for the named user.- Parameters:
userName- user name of the approving agent- Returns:
- an AgentApproval object
-
elements
Returns an enumeration of the agent approvals- Returns:
- an enumeration of the agent approvals
-
toStringVector
-
fromStringVector
Recreates an AgentApprovals instance from a Vector of strings that was created by toStringVector().- Parameters:
stringVector- The vector of strings to translate- Returns:
- the AgentApprovals instance or null if it can't be translated.
-
size
public int size() -
get
-