Package com.netscape.cmscore.profile
Class AbstractProfileSubsystem
- java.lang.Object
-
- com.netscape.cmscore.profile.AbstractProfileSubsystem
-
- All Implemented Interfaces:
ISubsystem
- Direct Known Subclasses:
ProfileSubsystem
public abstract class AbstractProfileSubsystem extends java.lang.Object implements ISubsystem
-
-
Field Summary
Fields Modifier and Type Field Description protected IConfigStoremConfigprotected java.util.Hashtable<java.lang.String,java.lang.String>mProfileClassIdsprotected java.util.LinkedHashMap<java.lang.String,Profile>mProfilesprotected static java.lang.StringPROP_CHECK_OWNERprotected static java.lang.StringPROP_ENABLEprotected static java.lang.StringPROP_ENABLE_BY
-
Constructor Summary
Constructors Constructor Description AbstractProfileSubsystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckOwner()Checks if owner id should be enforced during profile approval.protected voidcommitConfigStore(java.lang.String id, IConfigStore cs)voidcommitProfile(java.lang.String id)Commits a profile.voiddisableProfile(java.lang.String id)Disables a profile for execution.voidenableProfile(java.lang.String id, java.lang.String enableBy)Enables a profile for execution.IConfigStoregetConfigStore()Returns the root configuration storage of this system.java.lang.StringgetId()Retrieves the name of this subsystem.ProfilegetProfile(java.lang.String id)Retrieves a profile by id.ProfileAuthenticatorgetProfileAuthenticator(Profile profile)java.lang.StringgetProfileClassId(java.lang.String id)java.lang.StringgetProfileEnableBy(java.lang.String id)java.util.Enumeration<java.lang.String>getProfileIds()Retrieves a list of profile ids.booleanisProfileEnable(java.lang.String id)voidsetId(java.lang.String id)Sets specific to this subsystem.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.netscape.certsrv.base.ISubsystem
init, shutdown, startup
-
-
-
-
Field Detail
-
PROP_CHECK_OWNER
protected static final java.lang.String PROP_CHECK_OWNER
- See Also:
- Constant Field Values
-
PROP_ENABLE
protected static final java.lang.String PROP_ENABLE
- See Also:
- Constant Field Values
-
PROP_ENABLE_BY
protected static final java.lang.String PROP_ENABLE_BY
- See Also:
- Constant Field Values
-
mConfig
protected IConfigStore mConfig
-
mProfiles
protected java.util.LinkedHashMap<java.lang.String,Profile> mProfiles
-
mProfileClassIds
protected java.util.Hashtable<java.lang.String,java.lang.String> mProfileClassIds
-
-
Method Detail
-
getConfigStore
public IConfigStore getConfigStore()
Returns the root configuration storage of this system.- Specified by:
getConfigStorein interfaceISubsystem- Returns:
- configuration store of this subsystem
-
getId
public java.lang.String getId()
Retrieves the name of this subsystem.- Specified by:
getIdin interfaceISubsystem- Returns:
- subsystem identifier
-
setId
public void setId(java.lang.String id) throws EBaseExceptionSets specific to this subsystem.- Specified by:
setIdin interfaceISubsystem- Parameters:
id- subsystem identifier- Throws:
EBaseException- failed to set id
-
isProfileEnable
public boolean isProfileEnable(java.lang.String id) throws EBaseException- Throws:
EBaseException
-
getProfileEnableBy
public java.lang.String getProfileEnableBy(java.lang.String id) throws EBaseException- Throws:
EBaseException
-
enableProfile
public void enableProfile(java.lang.String id, java.lang.String enableBy) throws EProfileExceptionEnables a profile for execution.- Throws:
EProfileException
-
getProfile
public Profile getProfile(java.lang.String id) throws EProfileException
Retrieves a profile by id.- Throws:
EProfileException
-
disableProfile
public void disableProfile(java.lang.String id) throws EProfileExceptionDisables a profile for execution.- Throws:
EProfileException
-
commitProfile
public void commitProfile(java.lang.String id) throws EProfileExceptionCommits a profile.- Throws:
EProfileException
-
commitConfigStore
protected void commitConfigStore(java.lang.String id, IConfigStore cs) throws EProfileException- Throws:
EProfileException
-
getProfileClassId
public java.lang.String getProfileClassId(java.lang.String id)
-
getProfileAuthenticator
public ProfileAuthenticator getProfileAuthenticator(Profile profile) throws EBaseException
- Throws:
EBaseException
-
getProfileIds
public java.util.Enumeration<java.lang.String> getProfileIds()
Retrieves a list of profile ids. The return list is of type String.
-
checkOwner
public boolean checkOwner()
Checks if owner id should be enforced during profile approval.- Returns:
- true if approval should be checked
-
-