Class RoleModel

java.lang.Object
com.gentics.contentnode.rest.model.RoleModel

public class RoleModel extends Object
Model for a role
  • Constructor Details

    • RoleModel

      public RoleModel()
  • Method Details

    • getId

      public Integer getId()
      Role ID
      Returns:
      id
    • setId

      public RoleModel setId(Integer id)
      Set the ID
      Parameters:
      id - ID
      Returns:
      fluent API
    • getName

      public String getName()
      Get name in the current language
      Returns:
      name
    • setName

      public RoleModel setName(String name)
      Set name in the current language
      Returns:
      fluent API
    • 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
    • setDescriptionI18n

      public RoleModel setDescriptionI18n(Map<String,String> descriptionI18n)
      Set description map
      Parameters:
      descriptionI18n - description map
      Returns:
      fluent API