Class MoodleUserProviderFactory
java.lang.Object
org.opencastproject.userdirectory.moodle.MoodleUserProviderFactory
- All Implemented Interfaces:
org.osgi.service.cm.ManagedServiceFactory
public class MoodleUserProviderFactory
extends Object
implements org.osgi.service.cm.ManagedServiceFactory
Moodle implementation of the spring UserDetailsService, taking configuration information from the component context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.framework.BundleContextThe OSGI bundle contextstatic final StringThis service factory's PID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) Callback for the activation of this componentvoidgetName()static ObjectNamegetObjectName(String pid) Builds a JMX object name for a given PIDvoidsetOrgDirectory(OrganizationDirectoryService orgDirectory) OSGi callback for setting the organization directory service.voidupdated(String pid, Dictionary properties)
-
Field Details
-
PID
This service factory's PID- See Also:
-
bundleContext
protected org.osgi.framework.BundleContext bundleContextThe OSGI bundle context
-
-
Constructor Details
-
MoodleUserProviderFactory
public MoodleUserProviderFactory()
-
-
Method Details
-
getObjectName
public static ObjectName getObjectName(String pid) throws MalformedObjectNameException, NullPointerException Builds a JMX object name for a given PID- Parameters:
pid- the PID- Returns:
- the object name
- Throws:
NullPointerExceptionMalformedObjectNameException
-
setOrgDirectory
OSGi callback for setting the organization directory service. -
activate
public void activate(org.osgi.service.component.ComponentContext cc) Callback for the activation of this component- Parameters:
cc- the component context
-
getName
- Specified by:
getNamein interfaceorg.osgi.service.cm.ManagedServiceFactory- See Also:
-
updated
public void updated(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException - Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedServiceFactory- Throws:
org.osgi.service.cm.ConfigurationException- See Also:
-
deleted
- Specified by:
deletedin interfaceorg.osgi.service.cm.ManagedServiceFactory- See Also:
-