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 Details

    • LdapUserProviderFactory

      public LdapUserProviderFactory()
  • Method Details

    • setOrgDirectory

      public void setOrgDirectory(OrganizationDirectoryService orgDirectory)
      OSGi callback for setting the organization directory service.
    • setGroupRoleProvider

      public void setGroupRoleProvider(JpaGroupRoleProvider groupRoleProvider)
      OSGi callback for setting the role group service.
    • setSecurityService

      public void setSecurityService(SecurityService securityService)
      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

      public String getName()
      Specified by:
      getName in interface org.osgi.service.cm.ManagedServiceFactory
      See Also:
      • ManagedServiceFactory.getName()
    • updated

      public void updated(String pid, Dictionary properties) throws org.osgi.service.cm.ConfigurationException
      Specified by:
      updated in interface org.osgi.service.cm.ManagedServiceFactory
      Throws:
      org.osgi.service.cm.ConfigurationException
      See Also:
      • ManagedServiceFactory.updated(java.lang.String, java.util.Dictionary)
    • deleted

      public void deleted(String pid)
      Specified by:
      deleted in interface org.osgi.service.cm.ManagedServiceFactory
      See Also:
      • ManagedServiceFactory.deleted(java.lang.String)
    • 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:
      NullPointerException
      MalformedObjectNameException