|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.system.usermanagement.Role.Builder
public static class Role.Builder
A builder class to construct Role
instances.
Constructor Summary | |
---|---|
Role.Builder(String name)
Create a new Builder. |
Method Summary | |
---|---|
Role |
build()
Finally build and return the Role instance. |
Role.Builder |
setImmutable(Boolean immutable)
Set the Role to be immutable. |
Role.Builder |
withDescription(String description)
Add a description text to the Role . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Role.Builder(String name)
name
- The name of the Role
IllegalArgumentException
- when name is null
or emptyMethod Detail |
---|
public Role.Builder withDescription(String description)
Role
.
description
- as String
public Role.Builder setImmutable(Boolean immutable)
Role
to be immutable.
immutable
- true
if immutable, otherwise
false
public Role build()
Role
instance.
Role
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |