Class LdapUserProviderFactory
java.lang.Object
org.opencastproject.userdirectory.ldap.LdapUserProviderFactory
- All Implemented Interfaces:
org.osgi.service.cm.ManagedServiceFactory
public class LdapUserProviderFactory
extends Object
implements org.osgi.service.cm.ManagedServiceFactory
LDAP implementation of the spring UserDetailsService, taking configuration information from the component context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) Callback for activation of this component.voidgetName()static final ObjectNamegetObjectName(String pid) Builds a JMX object name for a given PIDvoidsetGroupRoleProvider(JpaGroupRoleProvider groupRoleProvider) OSGi callback for setting the role group service.voidsetOrgDirectory(OrganizationDirectoryService orgDirectory) OSGi callback for setting the organization directory service.voidsetSecurityService(SecurityService securityService) OSGi callback for setting the security service.voidupdated(String pid, Dictionary properties)
-
Constructor Details
-
LdapUserProviderFactory
public LdapUserProviderFactory()
-
-
Method Details
-
setOrgDirectory
OSGi callback for setting the organization directory service. -
setGroupRoleProvider
OSGi callback for setting the role group service. -
setSecurityService
OSGi callback for setting the security service. -
activate
public void activate(org.osgi.service.component.ComponentContext cc) Callback for 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:
-
getObjectName
public static final 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
-