Class UserIdRoleProvider
java.lang.Object
org.opencastproject.userdirectory.UserIdRoleProvider
- All Implemented Interfaces:
org.opencastproject.security.api.RoleProvider,org.osgi.service.cm.ManagedService
public class UserIdRoleProvider
extends Object
implements org.opencastproject.security.api.RoleProvider, org.osgi.service.cm.ManagedService
The user id role provider assigns the user id role.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opencastproject.security.api.SecurityServiceThe security serviceprotected org.opencastproject.security.api.UserDirectoryServiceThe user directory service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterator<org.opencastproject.security.api.Role> List<org.opencastproject.security.api.Role> getRolesForUser(String userName) static StringgetUserIdRole(String userName) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Sets the user directory servicevoidupdated(Dictionary properties)
-
Field Details
-
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service -
userDirectoryService
protected org.opencastproject.security.api.UserDirectoryService userDirectoryServiceThe user directory service
-
-
Constructor Details
-
UserIdRoleProvider
public UserIdRoleProvider()
-
-
Method Details
-
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) - Parameters:
securityService- the securityService to set
-
setUserDirectoryService
public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService) Sets the user directory service- Parameters:
userDirectoryService- the userDirectoryService to set
-
getUserIdRole
-
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:
-
updated
- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-