Class NewRole.Builder

java.lang.Object
ch.ivyteam.ivy.security.role.NewRole.Builder
Enclosing class:
NewRole

public static final class NewRole.Builder extends Object
Builder for NewRole
Since:
9.4
API:
This is a public API.
  • Method Details

    • toNewRole

      public NewRole toNewRole()
      Creates a new role object that can be used to create a new with IRoleRepository.create(NewRole)
      Returns:
      NewRole object
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • displayName

      public NewRole.Builder displayName(String displayName)
      Parameters:
      displayName - display name of the new role
      Returns:
      builder
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • description

      public NewRole.Builder description(String description)
      Parameters:
      description - description of the new role
      Returns:
      builder
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • externalName

      public NewRole.Builder externalName(String externalName)
      Parameters:
      externalName - external name of the new role
      Returns:
      builder
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.
    • parentRole

      public NewRole.Builder parentRole(IRole parentRole)
      Parameters:
      parentRole - parent role of the new role
      Returns:
      builder
      API:
      This public API is available in IvyScript and Java. It has the visibility EXPERT.