summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/profile
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2014-07-17 00:24:06 -0400
committerFraser Tweedale <frase@frase.id.au>2015-04-07 22:38:10 -0400
commit4785f08b9fa14e2abd60533542d763bdea8082a0 (patch)
tree94ed0549d16ef39e71b8f6d4349055de98ad44b8 /base/common/src/com/netscape/certsrv/profile
parent1b44dcbdac86f5545431be4f47e6d98a743225b8 (diff)
downloadpki-4785f08b9fa14e2abd60533542d763bdea8082a0.tar.gz
pki-4785f08b9fa14e2abd60533542d763bdea8082a0.tar.xz
pki-4785f08b9fa14e2abd60533542d763bdea8082a0.zip
Add LDAPProfileSubsystem to store profiles in LDAP
Add the LDAPProfileSubsystem as another IProfileSubsystem implementation that can be used instead of ProfileSubsystem (which stores profiles on the file system) to store files in LDAP so that changes can be replicated. Extract common behaviour in to new AbstractProfileSubsystem superclass. Also address the minor issue #1220.
Diffstat (limited to 'base/common/src/com/netscape/certsrv/profile')
-rw-r--r--base/common/src/com/netscape/certsrv/profile/EProfileException.java4
-rw-r--r--base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java19
2 files changed, 6 insertions, 17 deletions
diff --git a/base/common/src/com/netscape/certsrv/profile/EProfileException.java b/base/common/src/com/netscape/certsrv/profile/EProfileException.java
index 0363139cb..5ad254f74 100644
--- a/base/common/src/com/netscape/certsrv/profile/EProfileException.java
+++ b/base/common/src/com/netscape/certsrv/profile/EProfileException.java
@@ -44,4 +44,8 @@ public class EProfileException extends EBaseException {
public EProfileException(String msg) {
super(msg);
}
+
+ public EProfileException(String msg, Throwable cause) {
+ super(msg, cause);
+ }
}
diff --git a/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java b/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java
index 3238fb2e6..b7071fe75 100644
--- a/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java
+++ b/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java
@@ -61,33 +61,18 @@ public interface IProfileSubsystem extends ISubsystem {
* @param id profile id
* @param classid implementation id
* @param className class Name
- * @param configFile configuration file
* @exception EProfileException failed to create profile
*/
- public IProfile createProfile(String id, String classid,
- String className, String configFile)
+ public IProfile createProfile(String id, String classid, String className)
throws EProfileException;
/**
* Deletes profile.
*
* @param id profile id
- * @param configFile configuration file
* @exception EProfileException failed to delete profile
*/
- public void deleteProfile(String id, String configFile)
- throws EProfileException;
-
- /**
- * Creates a new profile configuration file.
- *
- * @param id profile id
- * @param classId implementation id
- * @param configPath location to create the configuration file
- * @exception failed to create profile
- */
- public void createProfileConfig(String id, String classId,
- String configPath) throws EProfileException;
+ public void deleteProfile(String id) throws EProfileException;
/**
* Enables a profile.