Package com.netscape.cmscore.profile
Class LDAPProfileSubsystem
- java.lang.Object
-
- com.netscape.cmscore.profile.AbstractProfileSubsystem
-
- com.netscape.cmscore.profile.ProfileSubsystem
-
- com.netscape.cmscore.profile.LDAPProfileSubsystem
-
- All Implemented Interfaces:
ISubsystem
,java.lang.Runnable
public class LDAPProfileSubsystem extends ProfileSubsystem implements java.lang.Runnable
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Fields inherited from class com.netscape.cmscore.profile.ProfileSubsystem
ID
-
Fields inherited from class com.netscape.cmscore.profile.AbstractProfileSubsystem
mConfig, mProfileClassIds, mProfiles, PROP_CHECK_OWNER, PROP_ENABLE, PROP_ENABLE_BY
-
-
Constructor Summary
Constructors Constructor Description LDAPProfileSubsystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
commitConfigStore(java.lang.String id, IConfigStore configStore)
Commit the configStore and track the resulting entryUSN and (in case of add) the nsUniqueIdProfile
createProfile(java.lang.String id, java.lang.String classid, java.lang.String className)
Creates a profile instance.void
deleteProfile(java.lang.String id)
Profile
getProfile(java.lang.String id)
Retrieves a profile by id.java.util.Enumeration<java.lang.String>
getProfileIds()
Retrieves a list of profile ids.void
init(IConfigStore config)
Initializes this subsystem with the given configuration store.void
run()
void
shutdown()
Stops this system.void
startup()
Notifies this subsystem if owner is in running mode.-
Methods inherited from class com.netscape.cmscore.profile.AbstractProfileSubsystem
checkOwner, commitProfile, disableProfile, enableProfile, getConfigStore, getId, getProfileAuthenticator, getProfileClassId, getProfileEnableBy, isProfileEnable, setId
-
-
-
-
Method Detail
-
init
public void init(IConfigStore config) throws EBaseException
Initializes this subsystem with the given configuration store.- Specified by:
init
in interfaceISubsystem
- Overrides:
init
in classProfileSubsystem
- Parameters:
config
- configuration store- Throws:
EBaseException
- failed to initialize
-
getProfile
public Profile getProfile(java.lang.String id) throws EProfileException
Description copied from class:AbstractProfileSubsystem
Retrieves a profile by id.- Overrides:
getProfile
in classAbstractProfileSubsystem
- Throws:
EProfileException
-
getProfileIds
public java.util.Enumeration<java.lang.String> getProfileIds()
Description copied from class:AbstractProfileSubsystem
Retrieves a list of profile ids. The return list is of type String.- Overrides:
getProfileIds
in classAbstractProfileSubsystem
-
createProfile
public Profile createProfile(java.lang.String id, java.lang.String classid, java.lang.String className) throws EProfileException
Description copied from class:ProfileSubsystem
Creates a profile instance.- Overrides:
createProfile
in classProfileSubsystem
- Throws:
EProfileException
-
deleteProfile
public void deleteProfile(java.lang.String id) throws EBaseException
- Overrides:
deleteProfile
in classProfileSubsystem
- Throws:
EBaseException
-
commitConfigStore
protected void commitConfigStore(java.lang.String id, IConfigStore configStore) throws EProfileException
Commit the configStore and track the resulting entryUSN and (in case of add) the nsUniqueId- Overrides:
commitConfigStore
in classAbstractProfileSubsystem
- Throws:
EProfileException
-
startup
public void startup() throws EBaseException
Notifies this subsystem if owner is in running mode.- Specified by:
startup
in interfaceISubsystem
- Overrides:
startup
in classProfileSubsystem
- Throws:
EBaseException
- failed to start up
-
shutdown
public void shutdown()
Stops this system. The owner may call shutdown anytime after initialization.- Specified by:
shutdown
in interfaceISubsystem
- Overrides:
shutdown
in classProfileSubsystem
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-