Class Role
java.lang.Object
co.yellowdog.platform.model.Role
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder that can be used to build a new Role that is automatically validated on build. -
Method Summary
Modifier and TypeMethodDescriptionstatic Role.Builder
builder()
protected boolean
boolean
getId()
Returns the IDgetName()
Set
<@NotNull Permission> int
hashCode()
void
setDescription
(String description) void
void
void
setPermissions
(Set<@NotNull Permission> permissions) toString()
-
Method Details
-
builder
-
getId
Description copied from interface:Identified
Returns the ID- Specified by:
getId
in interfaceIdentified
- Returns:
- the ID
-
getName
-
getDescription
-
getPermissions
-
setId
-
setName
-
setDescription
-
setPermissions
-
equals
-
canEqual
-
hashCode
-
toString
-