-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The LDAPPublishingConfig has been modified to encapsulate ca.publish.ldappublish.* params.
- Loading branch information
Showing
4 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
base/ca/src/main/java/com/netscape/cmscore/ldap/LDAPPublishingConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// Copyright Red Hat, Inc. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
// | ||
package com.netscape.cmscore.ldap; | ||
|
||
import com.netscape.certsrv.base.EBaseException; | ||
import com.netscape.certsrv.common.Constants; | ||
import com.netscape.cmscore.base.ConfigStorage; | ||
import com.netscape.cmscore.base.ConfigStore; | ||
import com.netscape.cmscore.base.SimpleProperties; | ||
import com.netscape.cmscore.ldapconn.LDAPConfig; | ||
|
||
/** | ||
* Provides ca.publish.ldappublish.* parameters. | ||
*/ | ||
public class LDAPPublishingConfig extends ConfigStore { | ||
|
||
public LDAPPublishingConfig() { | ||
} | ||
|
||
public LDAPPublishingConfig(ConfigStorage storage) { | ||
super(storage); | ||
} | ||
|
||
public LDAPPublishingConfig(String name, SimpleProperties source) { | ||
super(name, source); | ||
} | ||
|
||
/** | ||
* Returns ca.publish.ldappublish.enable parameter. | ||
*/ | ||
public boolean isEnabled() throws EBaseException { | ||
return getBoolean("enable", false); | ||
} | ||
|
||
public String getEnable() throws EBaseException { | ||
return getString("enable", Constants.FALSE); | ||
} | ||
|
||
public void setEnable(String enable) throws EBaseException { | ||
putString("enable", enable); | ||
} | ||
|
||
/** | ||
* Returns ca.publish.ldappublish.ldap.* parameters. | ||
*/ | ||
public LDAPConfig getLDAPConfig() throws EBaseException { | ||
return getSubStore("ldap", LDAPConfig.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters