| Modifier and Type | Field and Description |
|---|---|
protected String |
email
The user's email address
|
protected boolean |
isManageable |
protected String |
name
The user's name
|
protected JaxbOrganization |
organization
The user's home organization identifier
|
protected String |
password
The optional password.
|
protected String |
provider
The user's provider
|
protected Set<JaxbRole> |
roles
The roles
|
protected String |
userName
The user name
|
| Constructor and Description |
|---|
JaxbUser()
No-arg constructor needed by JAXB
|
JaxbUser(String userName,
String provider,
JaxbOrganization organization,
JaxbRole... roles)
Constructs a user which is a member of the given organization that has the specified roles and no password set.
|
JaxbUser(String userName,
String provider,
JaxbOrganization organization,
Set<JaxbRole> roles)
Constructs a user which is a member of the given organization that has the specified roles and no password set.
|
JaxbUser(String userName,
String password,
String provider,
JaxbOrganization organization,
JaxbRole... roles)
Constructs a user which is a member of the given organization that has the specified roles.
|
JaxbUser(String userName,
String password,
String provider,
JaxbOrganization organization,
Set<JaxbRole> roles)
Constructs a user which is a member of the given organization that has the specified roles.
|
JaxbUser(String userName,
String password,
String name,
String email,
String provider,
JaxbOrganization organization,
Set<JaxbRole> roles)
Constructs a user which is a member of the given organization that has the specified roles.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static JaxbUser |
fromUser(User user)
Creates a JAXB user from a regular user object.
|
static JaxbUser |
fromUser(User user,
Collection<? extends Role> extraRoles)
Creates a JAXB user from a regular user object with an additional set of roles.
|
String |
getEmail()
Gets the user's email address.
|
String |
getName()
Gets the user's name.
|
Organization |
getOrganization()
Returns the user's organization identifier.
|
String |
getPassword()
Gets this user's password, if available.
|
String |
getProvider()
Gets the provider where the user is coming from.
|
Set<Role> |
getRoles()
Gets the user's roles.
|
String |
getUsername()
Gets this user's unique account name.
|
int |
hashCode() |
boolean |
hasRole(String roleName)
Returns whether the user is in a specific role.
|
boolean |
isManageable()
Returns
true if this user object can be managed by Opencast. |
void |
setManageable(boolean isManageable) |
void |
setProvider(String provider) |
String |
toString() |
protected String userName
protected String name
protected String email
protected String provider
protected boolean isManageable
protected String password
protected JaxbOrganization organization
public JaxbUser()
public JaxbUser(String userName, String provider, JaxbOrganization organization, JaxbRole... roles) throws IllegalArgumentException
userName - the usernameprovider - the providerorganization - the organizationroles - the set of roles for this userIllegalArgumentException - if userName or organization is nullpublic JaxbUser(String userName, String password, String provider, JaxbOrganization organization, JaxbRole... roles) throws IllegalArgumentException
userName - the usernamepassword - the passwordprovider - the providerorganization - the organizationroles - the set of roles for this userIllegalArgumentException - if userName or organization is nullpublic JaxbUser(String userName, String password, String provider, JaxbOrganization organization, Set<JaxbRole> roles) throws IllegalArgumentException
userName - the usernamepassword - the passwordprovider - the providerorganization - the organizationroles - the set of roles for this userIllegalArgumentException - if userName or organization is nullpublic JaxbUser(String userName, String provider, JaxbOrganization organization, Set<JaxbRole> roles) throws IllegalArgumentException
userName - the usernameprovider - the providerorganization - the organizationroles - the set of roles for this userIllegalArgumentException - if userName or organization is nullpublic JaxbUser(String userName, String password, String name, String email, String provider, JaxbOrganization organization, Set<JaxbRole> roles) throws IllegalArgumentException
userName - the usernamepassword - the passwordname - the nameemail - the emailprovider - the providerorganization - the organizationroles - the set of roles for this userIllegalArgumentException - if userName or organization is nullpublic static JaxbUser fromUser(User user)
user - the userpublic static JaxbUser fromUser(User user, Collection<? extends Role> extraRoles)
user - the userpublic String getUsername()
UsergetUsername in interface UserUser.getUsername()public String getPassword()
UsergetPassword in interface UserUser.getPassword()public Organization getOrganization()
UsergetOrganization in interface UserUser.getOrganization()public Set<Role> getRoles()
UsergetRoles in interface UserUser.getRoles()public boolean hasRole(String roleName)
UserhasRole in interface UserroleName - the role to checkUser.hasRole(java.lang.String)public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()public String getEmail()
Userpublic String getProvider()
UsergetProvider in interface Userpublic void setProvider(String provider)
public boolean isManageable()
Usertrue if this user object can be managed by Opencast.isManageable in interface Usertrue if this user is manageablepublic void setManageable(boolean isManageable)
Copyright © 2009–2021 Opencast Project. All rights reserved.