summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-10-01 17:39:29 -0400
committerEndi S. Dewata <edewata@redhat.com>2013-10-01 19:26:24 -0400
commit7c0fb95b77f0f91c572e0242c09a88605497a455 (patch)
treedd387f97194f17d5f26d089cd72e0f81194e73ab /base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java
parentbcf463c6afb042543fec93759c02211f6d5c0a60 (diff)
downloadpki-7c0fb95b77f0f91c572e0242c09a88605497a455.tar.gz
pki-7c0fb95b77f0f91c572e0242c09a88605497a455.tar.xz
pki-7c0fb95b77f0f91c572e0242c09a88605497a455.zip
Added TPS profile mapping resource.
A new REST service and clients have been added to manage the profile mappings in the TPS configuration file. Ticket #652
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java
new file mode 100644
index 000000000..41270f6f9
--- /dev/null
+++ b/base/java-tools/src/com/netscape/cmstools/tps/profile/ProfileCLI.java
@@ -0,0 +1,40 @@
+// --- 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.cmstools.tps.profile;
+
+import com.netscape.cmstools.cli.CLI;
+
+/**
+ * @author Endi S. Dewata
+ */
+public class ProfileCLI extends CLI {
+
+ public ProfileCLI(CLI parent) {
+ super("profile", "Profile management commands", parent);
+
+ addModule(new ProfileMappingCLI(this));
+ }
+
+ public void execute(String[] args) throws Exception {
+
+ client = parent.getClient();
+
+ super.execute(args);
+ }
+}