Class TypePermissions

java.lang.Object
com.gentics.contentnode.rest.model.perm.TypePermissions
All Implemented Interfaces:
Serializable

public class TypePermissions extends Object implements Serializable
Permissions set on a type or instance
See Also:
  • Field Details

    • children

      protected boolean children
      Flag whether the type/instance has children
    • editable

      protected boolean editable
      Flag to mark editable
  • Constructor Details

    • TypePermissions

      public TypePermissions()
  • Method Details

    • getType

      public String getType()
      Type
      Returns:
      type
    • setType

      public TypePermissions setType(String type)
      Set type
      Parameters:
      type - type
      Returns:
      fluent API
    • getId

      public Integer getId()
      Optional instance ID
      Returns:
      instance ID (may be null)
    • setId

      public TypePermissions setId(Integer id)
      Set instance ID
      Parameters:
      id - ID
      Returns:
      fluent API
    • getChannelId

      public Integer getChannelId()
      Optional channel ID for folders
      Returns:
      channel ID (may be null)
    • setChannelId

      public TypePermissions setChannelId(Integer channelId)
      Set channel ID
      Parameters:
      channelId - channel ID
      Returns:
      fluent API
    • getLabel

      public String getLabel()
      Label of the type/instance
      Returns:
      label
    • setLabel

      public TypePermissions setLabel(String label)
      Set label
      Parameters:
      label - label
      Returns:
      fluent API
    • getDescription

      public String getDescription()
      Description
      Returns:
      description
    • setDescription

      public TypePermissions setDescription(String description)
      Set description
      Parameters:
      description - description
      Returns:
      fluent API
    • getPerms

      public List<TypePermissionItem> getPerms()
      List of permissions available for the type
      Returns:
      permission list
    • setPerms

      public TypePermissions setPerms(List<TypePermissionItem> perms)
      Set permissions
      Parameters:
      perms - permission list
      Returns:
      fluent API
    • getRoles

      public List<RoleItem> getRoles()
      List of available roles
      Returns:
      list of roles
    • setRoles

      public TypePermissions setRoles(List<RoleItem> roles)
      Set roles
      Parameters:
      roles - role list
      Returns:
      fluent API
    • isChildren

      public boolean isChildren()
      True if the type/instance has children
      Returns:
      flag
    • setChildren

      public TypePermissions setChildren(boolean children)
      Set child flag
      Parameters:
      children - flag
      Returns:
      fluent API
    • isEditable

      public boolean isEditable()
      True if the permissions can be changed by the current user
      Returns:
      editable flag
    • setEditable

      public TypePermissions setEditable(boolean editable)
      Set editable flag
      Parameters:
      editable - flag
      Returns:
      fluent API
    • toString

      public String toString()
      Overrides:
      toString in class Object