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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.osgi.service.component.ComponentContextThe component contextprotected JpaGroupRoleProviderGroup providerstatic final StringThe administrator password configuration optionstatic final StringThe administrator roles configuration optionprotected org.opencastproject.security.api.OrganizationDirectoryServiceThe organization directory serviceprotected org.opencastproject.security.api.SecurityServiceThe security service to use to run as the context for adding the groupsstatic final StringThe administrator group's suffixprotected JpaUserAndRoleProviderUser and role provider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) Callback for activation of this component.voidorganizationRegistered(org.opencastproject.security.api.Organization organization) voidorganizationUnregistered(org.opencastproject.security.api.Organization organization) voidorganizationUpdated(org.opencastproject.security.api.Organization organization)
-
Field Details
-
OPT_ADMIN_PASSWORD
The administrator password configuration option- See Also:
-
OPT_ADMIN_ROLES
The administrator roles configuration option- See Also:
-
SYSTEM_ADMIN_GROUP_SUFFIX
The administrator group's suffix- See Also:
-
userAndRoleProvider
User and role provider -
groupRoleProvider
Group provider -
organizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryServiceThe organization directory service -
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service to use to run as the context for adding the groups -
componentCtx
protected org.osgi.service.component.ComponentContext componentCtxThe component context
-
-
Constructor Details
-
AdminUserAndGroupLoader
public AdminUserAndGroupLoader()
-
-
Method Details
-
activate
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:
organizationRegisteredin interfaceorg.opencastproject.security.api.OrganizationDirectoryListener
-
organizationUnregistered
public void organizationUnregistered(org.opencastproject.security.api.Organization organization) - Specified by:
organizationUnregisteredin interfaceorg.opencastproject.security.api.OrganizationDirectoryListener
-
organizationUpdated
public void organizationUpdated(org.opencastproject.security.api.Organization organization) - Specified by:
organizationUpdatedin interfaceorg.opencastproject.security.api.OrganizationDirectoryListener
-