Role.Target, Role.Type| Modifier and Type | Field and Description |
|---|---|
protected String |
description
The description
|
protected String |
name
The role name
|
protected JaxbOrganization |
organization |
protected String |
organizationId |
protected Role.Type |
type |
| Constructor and Description |
|---|
JaxbRole()
No-arg constructor needed by JAXB
|
JaxbRole(String name,
JaxbOrganization organization)
Constructs a role with the specified name and organization.
|
JaxbRole(String name,
JaxbOrganization organization,
String description)
Constructs a role with the specified name, organization and description.
|
JaxbRole(String name,
JaxbOrganization organization,
String description,
Role.Type type)
Constructs a role with the specified name, organization, description, and persistence settings.
|
JaxbRole(String name,
String organizationId,
String description,
Role.Type type)
Constructs a role with the specified name, organization identifier, description, and persistence settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static JaxbRole |
fromRole(Role role) |
String |
getDescription()
Gets the role description
|
String |
getName()
Gets the role name
|
String |
getOrganizationId()
Returns the role's organization identifier.
|
Role.Type |
getType()
Returns the role's
Role.Type |
int |
hashCode() |
String |
toString() |
protected String name
protected String description
protected JaxbOrganization organization
protected String organizationId
protected Role.Type type
public JaxbRole()
public JaxbRole(String name, JaxbOrganization organization) throws IllegalArgumentException
name - the nameorganization - the organizationIllegalArgumentExceptionpublic JaxbRole(String name, JaxbOrganization organization, String description) throws IllegalArgumentException
name - the nameorganization - the organizationdescription - the descriptionIllegalArgumentExceptionpublic JaxbRole(String name, JaxbOrganization organization, String description, Role.Type type) throws IllegalArgumentException
name - the nameorganization - the organizationdescription - the descriptiontype - the role typeIllegalArgumentExceptionpublic JaxbRole(String name, String organizationId, String description, Role.Type type) throws IllegalArgumentException
name - the nameorganizationId - the organization identifierdescription - the descriptiontype - the role typeIllegalArgumentExceptionpublic String getName()
getName in interface RoleRole.getName()public String getDescription()
getDescription in interface RoleRole.getDescription()public String getOrganizationId()
getOrganizationId in interface Rolepublic Role.Type getType()
Role.TypegetType in interface RoleRole.getType()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright © 2009–2021 Opencast Project. All rights reserved.