Package ch.ivyteam.ivy.security.role
Class NewRole
java.lang.Object
ch.ivyteam.ivy.security.role.NewRole
Holds information about a new role to create.
Example:
import ch.ivyteam.ivy.security.role.NewRole;
NewRole newRole = NewRole
.create("Manager")
.displayName("HR Manager")
.description("The chief of the HR organization")
.toNewRole();
ivy.security.roles().create(newRole);
- Since:
- 9.4
- See Also:
- API:
- This is a public API.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NewRole.Builder
Creates a new role builder with the given name.
-
Method Details
-
create
Creates a new role builder with the given name.
Example:
import ch.ivyteam.ivy.security.role.NewRole; NewRole newRole = NewRole .create("Manager") .displayName("HR Manager") .description("The chief of the HR organization") .toNewRole(); ivy.security.roles().create(newRole);
- Parameters:
name
-- Returns:
- builder
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-