summaryrefslogtreecommitdiffstats
path: root/base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java')
-rw-r--r--base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java b/base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java
index cf5d77f19..e93e090de 100644
--- a/base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java
+++ b/base/server/cmscore/src/com/netscape/cmscore/profile/AbstractProfileSubsystem.java
@@ -95,10 +95,6 @@ public abstract class AbstractProfileSubsystem implements IProfileSubsystem {
profile.getConfigStore().putString(PROP_ENABLE, "true");
profile.getConfigStore().putString(PROP_ENABLE_BY, enableBy);
- try {
- profile.getConfigStore().commit(false);
- } catch (EBaseException e) {
- }
}
/**
@@ -117,9 +113,19 @@ public abstract class AbstractProfileSubsystem implements IProfileSubsystem {
IProfile profile = mProfiles.get(id);
profile.getConfigStore().putString(PROP_ENABLE, "false");
+ }
+
+ /**
+ * Commits a profile.
+ */
+ public void commitProfile(String id)
+ throws EProfileException {
try {
- profile.getConfigStore().commit(false);
+ mProfiles.get(id).getConfigStore().commit(false);
} catch (EBaseException e) {
+ throw new EProfileException(
+ "Failed to commit config store of profile '" + id + ": " + e,
+ e);
}
}