Class LdapUserProviderInstance

java.lang.Object
org.opencastproject.userdirectory.ldap.LdapUserProviderInstance
All Implemented Interfaces:
org.opencastproject.security.api.CachingUserProviderMXBean, org.opencastproject.security.api.UserProvider

public class LdapUserProviderInstance extends Object implements org.opencastproject.security.api.UserProvider, org.opencastproject.security.api.CachingUserProviderMXBean
A UserProvider that reads user roles from LDAP entries.
  • Field Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.opencastproject.security.api.UserProvider
    • registerMBean

      protected void registerMBean(String pid)
      Registers an MXBean.
    • getOrganization

      public String getOrganization()
      Specified by:
      getOrganization in interface org.opencastproject.security.api.UserProvider
      See Also:
      • UserProvider.getOrganization()
    • loadUser

      public org.opencastproject.security.api.User loadUser(String userName)
      Specified by:
      loadUser in interface org.opencastproject.security.api.UserProvider
      See Also:
      • UserProvider.loadUser(java.lang.String)
    • loadUserFromLdap

      protected org.opencastproject.security.api.User loadUserFromLdap(String userName)
      Loads a user from LDAP.
      Parameters:
      userName - the username
      Returns:
      the user
    • getCacheHitRatio

      public float getCacheHitRatio()
      Specified by:
      getCacheHitRatio in interface org.opencastproject.security.api.CachingUserProviderMXBean
      See Also:
      • CachingUserProviderMXBean.getCacheHitRatio()
    • findUsers

      public Iterator<org.opencastproject.security.api.User> findUsers(String query, int offset, int limit)
      Specified by:
      findUsers in interface org.opencastproject.security.api.UserProvider
    • getUsers

      public Iterator<org.opencastproject.security.api.User> getUsers()
      Specified by:
      getUsers in interface org.opencastproject.security.api.UserProvider
    • countUsers

      public long countUsers()
      Specified by:
      countUsers in interface org.opencastproject.security.api.UserProvider
    • invalidate

      public void invalidate(String userName)
      Specified by:
      invalidate in interface org.opencastproject.security.api.UserProvider