summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/common
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-07-17 13:20:25 -0400
committerEndi S. Dewata <edewata@redhat.com>2013-07-22 09:55:10 -0400
commitdbf97dfa2f163094b5ce0af299ec4bd902ed3488 (patch)
treed7b745e776cbcd47889904d70c135fdc0627eb9d /base/common/src/com/netscape/certsrv/common
parent4aa89a9c421a08f7a1367343ced9dcdbcddd849e (diff)
downloadpki-dbf97dfa2f163094b5ce0af299ec4bd902ed3488.tar.gz
pki-dbf97dfa2f163094b5ce0af299ec4bd902ed3488.tar.xz
pki-dbf97dfa2f163094b5ce0af299ec4bd902ed3488.zip
Fixed dependency issue on CMSRequest.
The CMSRequest is a server class but it's used by the ICommandQueue that belongs in the base package. To fix the dependency issue the CMSRequest has been refactored to implement a new interface ICMSRequest in the base package. Some constants in CMSRequest have also been moved into ICMSRequest. All code referencing CMSRequest has been adjusted accordingly.
Diffstat (limited to 'base/common/src/com/netscape/certsrv/common')
-rw-r--r--base/common/src/com/netscape/certsrv/common/ICMSRequest.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/common/ICMSRequest.java b/base/common/src/com/netscape/certsrv/common/ICMSRequest.java
new file mode 100644
index 000000000..190755d50
--- /dev/null
+++ b/base/common/src/com/netscape/certsrv/common/ICMSRequest.java
@@ -0,0 +1,36 @@
+// --- 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.common;
+
+/**
+ * This represents a user request.
+ *
+ * @version $Revision$, $Date$
+ */
+public interface ICMSRequest {
+
+ // statuses. the first two are out of band.
+ public static final Integer UNAUTHORIZED = Integer.valueOf(1);
+ public static final Integer SUCCESS = Integer.valueOf(2);
+ public static final Integer PENDING = Integer.valueOf(3);
+ public static final Integer SVC_PENDING = Integer.valueOf(4);
+ public static final Integer REJECTED = Integer.valueOf(5);
+ public static final Integer ERROR = Integer.valueOf(6);
+ public static final Integer EXCEPTION = Integer.valueOf(7); // unexpected error.
+
+}