Class OrganizationRoleProvider
java.lang.Object
org.opencastproject.userdirectory.OrganizationRoleProvider
- All Implemented Interfaces:
org.opencastproject.security.api.RoleProvider
public class OrganizationRoleProvider
extends Object
implements org.opencastproject.security.api.RoleProvider
The organization role provider returning the admin and anonymous role from the current organization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.security.api.SecurityServiceThe security service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.opencastproject.security.api.Role> List<org.opencastproject.security.api.Role> getRolesForUser(String userName) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService)
-
Field Details
-
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service
-
-
Constructor Details
-
OrganizationRoleProvider
public OrganizationRoleProvider()
-
-
Method Details
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) - Parameters:
securityService- the securityService to set
-
getRolesForUser
- Specified by:
getRolesForUserin interfaceorg.opencastproject.security.api.RoleProvider- See Also:
-
getOrganization
- Specified by:
getOrganizationin interfaceorg.opencastproject.security.api.RoleProvider- See Also:
-
findRoles
public Iterator<org.opencastproject.security.api.Role> findRoles(String query, org.opencastproject.security.api.Role.Target target, int offset, int limit) - Specified by:
findRolesin interfaceorg.opencastproject.security.api.RoleProvider- See Also:
-