Class StudipUserProviderFactory

java.lang.Object
org.opencastproject.userdirectory.studip.StudipUserProviderFactory
All Implemented Interfaces:
org.osgi.service.cm.ManagedServiceFactory

public class StudipUserProviderFactory extends Object implements org.osgi.service.cm.ManagedServiceFactory
Studip implementation of the spring UserDetailsService, taking configuration information from the component context.
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
      The logger
    • PID

      public static final String PID
      This service factory's PID
      See Also:
    • bundleContext

      protected org.osgi.framework.BundleContext bundleContext
      The OSGI bundle context
  • Constructor Details

    • StudipUserProviderFactory

      public StudipUserProviderFactory()
  • Method Details

    • setOrgDirectory

      public void setOrgDirectory(OrganizationDirectoryService orgDirectory)
      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

      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