Class AdminUserAndGroupLoader
java.lang.Object
org.opencastproject.userdirectory.AdminUserAndGroupLoader
- All Implemented Interfaces:
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 OrganizationDirectoryServiceThe organization directory serviceprotected 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(Organization organization) This callback notifies listeners about an organization that appeared in the organization directory.voidorganizationUnregistered(Organization organization) This callback notifies listeners about an organization that disappeared from the organization directory.voidorganizationUpdated(Organization organization) This callback notifies listeners about an organization that was updated.
-
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
The organization directory service -
securityService
The 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
Description copied from interface:OrganizationDirectoryListenerThis callback notifies listeners about an organization that appeared in the organization directory.- Specified by:
organizationRegisteredin interfaceOrganizationDirectoryListener- Parameters:
organization- the organization
-
organizationUnregistered
Description copied from interface:OrganizationDirectoryListenerThis callback notifies listeners about an organization that disappeared from the organization directory.- Specified by:
organizationUnregisteredin interfaceOrganizationDirectoryListener- Parameters:
organization- the organization
-
organizationUpdated
Description copied from interface:OrganizationDirectoryListenerThis callback notifies listeners about an organization that was updated.- Specified by:
organizationUpdatedin interfaceOrganizationDirectoryListener- Parameters:
organization- the organization
-