Package org.opencastproject.security.api
Interface User
- All Known Implementing Classes:
JaxbUser
public interface User
Represent a user in Opencast
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Gets the user's email address.getName()Gets the user's name.Returns the user's organization identifier.Gets this user's password, if available.Gets the provider where the user is coming from.getRoles()Gets the user's roles.Gets this user's unique account name.booleanReturns whether the user is in a specific role.booleanReturnstrueif this user object can be managed by Opencast.
-
Method Details
-
getUsername
String getUsername()Gets this user's unique account name.- Returns:
- the account name
-
getPassword
String getPassword()Gets this user's password, if available.- Returns:
- the password
-
getName
String getName()Gets the user's name.- Returns:
- the user name
-
getEmail
String getEmail()Gets the user's email address.- Returns:
- the user's email address
-
getProvider
String getProvider()Gets the provider where the user is coming from.- Returns:
- the provider where the user is coming from.
-
isManageable
boolean isManageable()Returnstrueif this user object can be managed by Opencast.- Returns:
trueif this user is manageable
-
getOrganization
Organization getOrganization()Returns the user's organization identifier.- Returns:
- the organization
-
getRoles
Gets the user's roles. For anonymous users, this will return Anonymous.- Returns:
- the user's roles
-
hasRole
Returns whether the user is in a specific role.- Parameters:
role- the role to check- Returns:
- whether the role is one of this user's roles
-