public class RoleCreator extends Object implements Serializable
Role
. Chaining is possible with this creator to ease the Role
creation.
Role
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
RoleCreator.RoleField
represents the available
Role field |
Constructor and Description |
---|
RoleCreator(String name)
create a new creator instance with a given role name
|
Modifier and Type | Method and Description |
---|---|
Map<RoleCreator.RoleField,Serializable> |
getFields() |
RoleCreator |
setDescription(String description) |
RoleCreator |
setDisplayName(String displayName) |
RoleCreator |
setIconName(String iconName) |
RoleCreator |
setIconPath(String iconPath) |
public RoleCreator(String name)
name
- The name of the role to createpublic RoleCreator setDisplayName(String displayName)
displayName
- The role's display name to createRoleCreator
public RoleCreator setDescription(String description)
description
- The role's description to createRoleCreator
public RoleCreator setIconName(String iconName)
iconName
- The role's icon name to createRoleCreator
public RoleCreator setIconPath(String iconPath)
iconPath
- The role's icon path to createRoleCreator
public Map<RoleCreator.RoleField,Serializable> getFields()
Copyright © 2016 Bonitasoft S.A.. All rights reserved.