diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-08-15 19:16:04 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-10-31 11:16:53 -0400 |
commit | 64a4b127aa134b21e79e2d38df5543681fa2ffe8 (patch) | |
tree | 25c8cfc17acd0dc6b20ddccf186f01564a675a83 /base/common/src/com/netscape/certsrv/request | |
parent | 2e54c85990e7969f7e36c324052b67f62debe4c2 (diff) | |
download | pki-64a4b127aa134b21e79e2d38df5543681fa2ffe8.tar.gz pki-64a4b127aa134b21e79e2d38df5543681fa2ffe8.tar.xz pki-64a4b127aa134b21e79e2d38df5543681fa2ffe8.zip |
Fixed tests dependencies.
The test classes have been moved from base/common/test to base/server/test
and into the cmscore package because they are dependent on server classes.
Diffstat (limited to 'base/common/src/com/netscape/certsrv/request')
-rw-r--r-- | base/common/src/com/netscape/certsrv/request/AgentApprovals.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/base/common/src/com/netscape/certsrv/request/AgentApprovals.java b/base/common/src/com/netscape/certsrv/request/AgentApprovals.java index cb3dd2ceb..e778837cf 100644 --- a/base/common/src/com/netscape/certsrv/request/AgentApprovals.java +++ b/base/common/src/com/netscape/certsrv/request/AgentApprovals.java @@ -44,17 +44,18 @@ public class AgentApprovals * * @param userName user name of the approving agent */ - public void addApproval(String userName) { + public AgentApproval addApproval(String userName) { AgentApproval a = findApproval(userName); // update existing approval if (a != null) { a.mDate = new Date(); /* CMS.getCurrentDate(); */ - return; + return a; } a = new AgentApproval(userName); mVector.addElement(a); + return a; } /** @@ -155,5 +156,13 @@ public class AgentApprovals return approvals; } + public int size() { + return mVector.size(); + } + + public AgentApproval get(int i) { + return mVector.get(i); + } + protected Vector<AgentApproval> mVector = new Vector<AgentApproval>(); } |