Class AdminUserAndGroupLoader

java.lang.Object
org.opencastproject.userdirectory.AdminUserAndGroupLoader
All Implemented Interfaces:
org.opencastproject.security.api.OrganizationDirectoryListener

public class AdminUserAndGroupLoader extends Object implements org.opencastproject.security.api.OrganizationDirectoryListener
User and group loader to create a system administrator group for each tenant along with a user named after the organization.
  • Field Details

    • OPT_ADMIN_PASSWORD

      public static final String OPT_ADMIN_PASSWORD
      The administrator password configuration option
      See Also:
    • OPT_ADMIN_ROLES

      public static final String OPT_ADMIN_ROLES
      The administrator roles configuration option
      See Also:
    • SYSTEM_ADMIN_GROUP_SUFFIX

      public static final String SYSTEM_ADMIN_GROUP_SUFFIX
      The administrator group's suffix
      See Also:
    • userAndRoleProvider

      protected JpaUserAndRoleProvider userAndRoleProvider
      User and role provider
    • groupRoleProvider

      protected JpaGroupRoleProvider groupRoleProvider
      Group provider
    • organizationDirectoryService

      protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService
      The organization directory service
    • securityService

      protected org.opencastproject.security.api.SecurityService securityService
      The security service to use to run as the context for adding the groups
    • componentCtx

      protected org.osgi.service.component.ComponentContext componentCtx
      The component context
  • Constructor Details

    • AdminUserAndGroupLoader

      public AdminUserAndGroupLoader()
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext cc) throws Exception
      Callback for activation of this component.
      Parameters:
      cc - the component context
      Throws:
      Exception
    • organizationRegistered

      public void organizationRegistered(org.opencastproject.security.api.Organization organization)
      Specified by:
      organizationRegistered in interface org.opencastproject.security.api.OrganizationDirectoryListener
    • organizationUnregistered

      public void organizationUnregistered(org.opencastproject.security.api.Organization organization)
      Specified by:
      organizationUnregistered in interface org.opencastproject.security.api.OrganizationDirectoryListener
    • organizationUpdated

      public void organizationUpdated(org.opencastproject.security.api.Organization organization)
      Specified by:
      organizationUpdated in interface org.opencastproject.security.api.OrganizationDirectoryListener