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.Loggerlogger-
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 voidcommitConfigStore(java.lang.String id, IConfigStore configStore)Commit the configStore and track the resulting entryUSN and (in case of add) the nsUniqueIdProfilecreateProfile(java.lang.String id, java.lang.String classid, java.lang.String className)Creates a profile instance.voiddeleteProfile(java.lang.String id)ProfilegetProfile(java.lang.String id)Retrieves a profile by id.java.util.Enumeration<java.lang.String>getProfileIds()Retrieves a list of profile ids.voidinit(IConfigStore config)Initializes this subsystem with the given configuration store.voidrun()voidshutdown()Stops this system.voidstartup()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:
initin interfaceISubsystem- Overrides:
initin classProfileSubsystem- Parameters:
config- configuration store- Throws:
EBaseException- failed to initialize
-
getProfile
public Profile getProfile(java.lang.String id) throws EProfileException
Description copied from class:AbstractProfileSubsystemRetrieves a profile by id.- Overrides:
getProfilein classAbstractProfileSubsystem- Throws:
EProfileException
-
getProfileIds
public java.util.Enumeration<java.lang.String> getProfileIds()
Description copied from class:AbstractProfileSubsystemRetrieves a list of profile ids. The return list is of type String.- Overrides:
getProfileIdsin classAbstractProfileSubsystem
-
createProfile
public Profile createProfile(java.lang.String id, java.lang.String classid, java.lang.String className) throws EProfileException
Description copied from class:ProfileSubsystemCreates a profile instance.- Overrides:
createProfilein classProfileSubsystem- Throws:
EProfileException
-
deleteProfile
public void deleteProfile(java.lang.String id) throws EBaseException- Overrides:
deleteProfilein classProfileSubsystem- Throws:
EBaseException
-
commitConfigStore
protected void commitConfigStore(java.lang.String id, IConfigStore configStore) throws EProfileExceptionCommit the configStore and track the resulting entryUSN and (in case of add) the nsUniqueId- Overrides:
commitConfigStorein classAbstractProfileSubsystem- Throws:
EProfileException
-
startup
public void startup() throws EBaseExceptionNotifies this subsystem if owner is in running mode.- Specified by:
startupin interfaceISubsystem- Overrides:
startupin classProfileSubsystem- Throws:
EBaseException- failed to start up
-
shutdown
public void shutdown()
Stops this system. The owner may call shutdown anytime after initialization.- Specified by:
shutdownin interfaceISubsystem- Overrides:
shutdownin classProfileSubsystem
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
-