summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/dbs
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-09-11 15:10:46 -0400
committerEndi S. Dewata <edewata@redhat.com>2013-09-17 12:57:11 -0400
commitb5796dfde426414ac81614751c33f23aa356eae4 (patch)
treed5c73173c3fb02ff35e1064efe23ca8879a33ea0 /base/common/src/com/netscape/certsrv/dbs
parent3446e2ff830bf9f37bdc621f3e5969a1daa60798 (diff)
downloadpki-b5796dfde426414ac81614751c33f23aa356eae4.tar.gz
pki-b5796dfde426414ac81614751c33f23aa356eae4.tar.xz
pki-b5796dfde426414ac81614751c33f23aa356eae4.zip
Fixed dependency issue on RenewableCertificateCollection.
The RenewableCertificateCollection class is in the server package but it's used by ICertificateRepository in the base package, so the class has been moved into the base package.
Diffstat (limited to 'base/common/src/com/netscape/certsrv/dbs')
-rw-r--r--base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java1
-rw-r--r--base/common/src/com/netscape/certsrv/dbs/certdb/RenewableCertificateCollection.java54
2 files changed, 54 insertions, 1 deletions
diff --git a/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java b/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java
index 40d22d614..066043b13 100644
--- a/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java
+++ b/base/common/src/com/netscape/certsrv/dbs/certdb/ICertificateRepository.java
@@ -30,7 +30,6 @@ import com.netscape.certsrv.base.EBaseException;
import com.netscape.certsrv.base.MetaInfo;
import com.netscape.certsrv.dbs.ModificationSet;
import com.netscape.certsrv.dbs.repository.IRepository;
-import com.netscape.cmscore.dbs.CertificateRepository.RenewableCertificateCollection;
/**
* An interface represents a CMS certificate repository.
diff --git a/base/common/src/com/netscape/certsrv/dbs/certdb/RenewableCertificateCollection.java b/base/common/src/com/netscape/certsrv/dbs/certdb/RenewableCertificateCollection.java
new file mode 100644
index 000000000..98ebbc567
--- /dev/null
+++ b/base/common/src/com/netscape/certsrv/dbs/certdb/RenewableCertificateCollection.java
@@ -0,0 +1,54 @@
+// --- BEGIN COPYRIGHT BLOCK ---
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; version 2 of the License.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License along
+// with this program; if not, write to the Free Software Foundation, Inc.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+//
+// (C) 2013 Red Hat, Inc.
+// All rights reserved.
+// --- END COPYRIGHT BLOCK ---
+package com.netscape.certsrv.dbs.certdb;
+
+import java.util.Vector;
+
+/**
+ * @author thomask
+ * @author kanda
+ * @version $Revision$, $Date$
+ */
+public class RenewableCertificateCollection {
+ Vector<Object> mToRenew = null;
+ Vector<Object> mToNotify = null;
+
+ public RenewableCertificateCollection() {
+ }
+
+ public Vector<Object> getRenewable() {
+ return mToRenew;
+ }
+
+ public Vector<Object> getNotifiable() {
+ return mToNotify;
+ }
+
+ public void addCertificate(String renewalFlag, Object o) {
+ if (renewalFlag.equals(ICertRecord.AUTO_RENEWAL_ENABLED)) {
+ if (mToRenew == null)
+ mToRenew = new Vector<Object>();
+ mToRenew.addElement(o);
+ }
+ if (renewalFlag.equals(ICertRecord.AUTO_RENEWAL_DISABLED)) {
+ if (mToNotify == null)
+ mToNotify = new Vector<Object>();
+ mToNotify.addElement(o);
+ }
+ }
+} \ No newline at end of file