Class RoleModel
java.lang.Object
com.gentics.contentnode.rest.model.RoleModel
Model for a role
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the description in the current languageDescription in all possible translationsgetId()
Role IDgetName()
Get name in the current languageName in all possible translationssetDescription
(String description) Set the description in the current languagesetDescriptionI18n
(Map<String, String> descriptionI18n) Set description mapSet the IDSet name in the current languagesetNameI18n
(Map<String, String> nameI18n) Set name map
-
Constructor Details
-
RoleModel
public RoleModel()
-
-
Method Details
-
getId
Role ID- Returns:
- id
-
setId
Set the ID- Parameters:
id
- ID- Returns:
- fluent API
-
getName
Get name in the current language- Returns:
- name
-
setName
Set name in the current language- Returns:
- fluent API
-
getDescription
Get the description in the current language- Returns:
- name
-
setDescription
Set the description in the current language- Returns:
- fluent API
-
getNameI18n
Name in all possible translations- Returns:
- name map
-
setNameI18n
Set name map- Parameters:
nameI18n
- name map- Returns:
- fluent API
-
getDescriptionI18n
Description in all possible translations- Returns:
- description map
-
setDescriptionI18n
Set description map- Parameters:
descriptionI18n
- description map- Returns:
- fluent API
-