Class RoleModel
- java.lang.Object
-
- com.gentics.contentnode.rest.model.RoleModel
-
public class RoleModel extends Object
Model for a role
-
-
Constructor Summary
Constructors Constructor Description RoleModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Get the description in the current languageMap<String,String>
getDescriptionI18n()
Description in all possible translationsInteger
getId()
Role IDString
getName()
Get name in the current languageMap<String,String>
getNameI18n()
Name in all possible translationsRoleModel
setDescription(String description)
Set the description in the current languageRoleModel
setDescriptionI18n(Map<String,String> descriptionI18n)
Set description mapRoleModel
setId(Integer id)
Set the IDRoleModel
setName(String name)
Set name in the current languageRoleModel
setNameI18n(Map<String,String> nameI18n)
Set name map
-
-
-
Method Detail
-
getId
public Integer getId()
Role ID- Returns:
- id
-
getName
public String getName()
Get name in the current language- Returns:
- name
-
getDescription
public String getDescription()
Get the description in the current language- Returns:
- name
-
setDescription
public RoleModel setDescription(String description)
Set the description in the current language- Returns:
- fluent API
-
getNameI18n
public Map<String,String> getNameI18n()
Name in all possible translations- Returns:
- name map
-
setNameI18n
public RoleModel setNameI18n(Map<String,String> nameI18n)
Set name map- Parameters:
nameI18n
- name map- Returns:
- fluent API
-
getDescriptionI18n
public Map<String,String> getDescriptionI18n()
Description in all possible translations- Returns:
- description map
-
-