public class RoleCreator extends Object implements Serializable
Role. Chaining is possible with this creator to ease the Role creation.
Role,
Serialized Form| Modifier 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 |
|---|---|
boolean |
equals(Object o) |
Map<RoleCreator.RoleField,Serializable> |
getFields() |
int |
hashCode() |
RoleCreator |
setDescription(String description) |
RoleCreator |
setDisplayName(String displayName) |
RoleCreator |
setIcon(String filename,
byte[] content)
set the icon on the role to be created
|
RoleCreator |
setIconName(String iconName)
Deprecated.
since 7.3.0 use #setIcon
|
RoleCreator |
setIconPath(String iconPath)
Deprecated.
since 7.3.0 use #setIcon
|
String |
toString() |
public RoleCreator(String name)
name - The name of the role to createpublic RoleCreator setDisplayName(String displayName)
displayName - The role's display name to createRoleCreatorpublic RoleCreator setDescription(String description)
description - The role's description to createRoleCreator@Deprecated public RoleCreator setIconName(String iconName)
iconName - The role's icon name to createRoleCreator@Deprecated public RoleCreator setIconPath(String iconPath)
iconPath - The role's icon path to createRoleCreatorpublic RoleCreator setIcon(String filename, byte[] content)
filename - the filename of the iconcontent - the content of the iconpublic Map<RoleCreator.RoleField,Serializable> getFields()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.