summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cms/servlet/profile/model/ProfileInputFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/cms/servlet/profile/model/ProfileInputFactory.java')
-rw-r--r--base/common/src/com/netscape/cms/servlet/profile/model/ProfileInputFactory.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/profile/model/ProfileInputFactory.java b/base/common/src/com/netscape/cms/servlet/profile/model/ProfileInputFactory.java
deleted file mode 100644
index 67d3e9a2c..000000000
--- a/base/common/src/com/netscape/cms/servlet/profile/model/ProfileInputFactory.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.netscape.cms.servlet.profile.model;
-
-import java.util.Enumeration;
-import java.util.Locale;
-
-import com.netscape.certsrv.base.IArgBlock;
-import com.netscape.certsrv.profile.EProfileException;
-import com.netscape.certsrv.profile.IProfileInput;
-import com.netscape.certsrv.request.IRequest;
-
-public class ProfileInputFactory {
-
- public static ProfileInput create(IProfileInput input, IRequest request, Locale locale) throws EProfileException {
- ProfileInput ret = new ProfileInput();
- ret.setInputId(input.getName(locale));
- Enumeration<String> names = input.getValueNames();
- while (names.hasMoreElements()) {
- String name = names.nextElement();
- String value = input.getValue(name, locale, request);
- if (value != null) {
- ret.setInputAttr(name, value);
- }
- }
- return ret;
- }
-
- public static ProfileInput create(IProfileInput input, IArgBlock params, Locale locale) throws EProfileException {
- ProfileInput ret = new ProfileInput();
- ret.setInputId(input.getName(locale));
- Enumeration<String> names = input.getValueNames();
- while (names.hasMoreElements()) {
- String name = names.nextElement();
- String value = params.getValueAsString(name, null);
- if (value != null) {
- ret.setInputAttr(name, value);
- }
- }
- return ret;
- }
-}