Class JpaRole
java.lang.Object
org.opencastproject.security.impl.jpa.JpaRole
- All Implemented Interfaces:
Role
JPA-annotated role object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.security.api.Role
Role.Target, Role.Type -
Constructor Summary
ConstructorsConstructorDescriptionJpaRole()No-arg constructor needed by JPAJpaRole(String name, JpaOrganization organization) Constructs a role with the specified name and organization.JpaRole(String name, JpaOrganization organization, String description) Constructs a role with the specified name, organization and description.JpaRole(String name, JpaOrganization organization, String description, Role.Type type) Constructs a role with the specified name, organization and description. -
Method Summary
-
Constructor Details
-
JpaRole
public JpaRole()No-arg constructor needed by JPA -
JpaRole
Constructs a role with the specified name and organization.- Parameters:
name- the nameorganization- the organization
-
JpaRole
Constructs a role with the specified name, organization and description.- Parameters:
name- the nameorganization- the organizationdescription- the description
-
JpaRole
Constructs a role with the specified name, organization and description.- Parameters:
name- the nameorganization- the organizationdescription- the descriptiontype- the roleRole.Type
-
-
Method Details
-
getId
Gets the identifier.- Returns:
- the identifier
-
getName
Description copied from interface:RoleGets the role name -
getDescription
Description copied from interface:RoleGets the role description- Specified by:
getDescriptionin interfaceRole- Returns:
- the role description
-
setDescription
Sets the description- Parameters:
description- the description
-
getOrganizationId
Description copied from interface:RoleReturns the role's organization identifier.- Specified by:
getOrganizationIdin interfaceRole- Returns:
- the organization identifier
-
getJpaOrganization
-
getType
Description copied from interface:RoleReturns the role'sRole.Type -
hashCode
public int hashCode() -
equals
-
toString
-