Class MoodleUserProviderInstance

java.lang.Object
org.opencastproject.userdirectory.moodle.MoodleUserProviderInstance
All Implemented Interfaces:
CachingUserProviderMXBean, RoleProvider, UserProvider

public class MoodleUserProviderInstance extends Object implements UserProvider, RoleProvider, CachingUserProviderMXBean
A UserProvider that reads user roles from Moodle.
  • Constructor Details

    • MoodleUserProviderInstance

      public MoodleUserProviderInstance(String pid, MoodleWebService client, Organization organization, String coursePattern, String userPattern, String groupPattern, boolean groupRoles, int cacheSize, int cacheExpiration, String adminUserName, boolean lowercaseUsername, String contextRolePrefix)
      Constructs an Moodle user provider with the needed settings.
      Parameters:
      pid - The pid of this service.
      client - The Moodle web service client.
      organization - The organization.
      coursePattern - The pattern of a Moodle course ID.
      userPattern - The pattern of a Moodle user ID.
      groupPattern - The pattern of a Moodle group ID.
      groupRoles - Whether to activate groupRoles
      cacheSize - The number of users to cache.
      cacheExpiration - The number of minutes to cache users.
      adminUserName - Name of the global admin user.
      contextRolePrefix - Prefix to prepend to context roles like 1234_Learner
  • Method Details