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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypePermissions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getChannelId()
Optional channel ID for foldersString
getDescription()
DescriptionInteger
getId()
Optional instance IDString
getLabel()
Label of the type/instanceList<TypePermissionItem>
getPerms()
List of permissions available for the typeList<RoleItem>
getRoles()
List of available rolesString
getType()
Typeboolean
isChildren()
True if the type/instance has childrenboolean
isEditable()
True if the permissions can be changed by the current userTypePermissions
setChannelId(Integer channelId)
Set channel IDTypePermissions
setChildren(boolean children)
Set child flagTypePermissions
setDescription(String description)
Set descriptionTypePermissions
setEditable(boolean editable)
Set editable flagTypePermissions
setId(Integer id)
Set instance IDTypePermissions
setLabel(String label)
Set labelTypePermissions
setPerms(List<TypePermissionItem> perms)
Set permissionsTypePermissions
setRoles(List<RoleItem> roles)
Set rolesTypePermissions
setType(String type)
Set typeString
toString()
-
-
-
Method Detail
-
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
-
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
-
-