Class JpaRole
java.lang.Object
org.opencastproject.security.impl.jpa.JpaRole
- All Implemented Interfaces:
org.opencastproject.security.api.Role
JPA-annotated role object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.security.api.Role
org.opencastproject.security.api.Role.Target, org.opencastproject.security.api.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, org.opencastproject.security.api.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
public JpaRole(String name, JpaOrganization organization, String description, org.opencastproject.security.api.Role.Type type) 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
- Specified by:
getNamein interfaceorg.opencastproject.security.api.Role
-
getDescription
- Specified by:
getDescriptionin interfaceorg.opencastproject.security.api.Role
-
setDescription
Sets the description- Parameters:
description- the description
-
getOrganizationId
- Specified by:
getOrganizationIdin interfaceorg.opencastproject.security.api.Role
-
getJpaOrganization
-
getType
public org.opencastproject.security.api.Role.Type getType()- Specified by:
getTypein interfaceorg.opencastproject.security.api.Role
-
hashCode
public int hashCode() -
equals
-
toString
-