Class TypePermissions
java.lang.Object
com.gentics.contentnode.rest.model.perm.TypePermissions
- All Implemented Interfaces:
Serializable
Permissions set on a type or instance
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional channel ID for foldersDescriptiongetId()
Optional instance IDgetLabel()
Label of the type/instancegetPerms()
List of permissions available for the typegetRoles()
List of available rolesgetType()
Typeboolean
True if the type/instance has childrenboolean
True if the permissions can be changed by the current usersetChannelId
(Integer channelId) Set channel IDsetChildren
(boolean children) Set child flagsetDescription
(String description) Set descriptionsetEditable
(boolean editable) Set editable flagSet instance IDSet labelsetPerms
(List<TypePermissionItem> perms) Set permissionsSet rolesSet typetoString()
-
Field Details
-
children
protected boolean childrenFlag whether the type/instance has children -
editable
protected boolean editableFlag to mark editable
-
-
Constructor Details
-
TypePermissions
public TypePermissions()
-
-
Method Details
-
getType
Type- Returns:
- type
-
setType
Set type- Parameters:
type
- type- Returns:
- fluent API
-
getId
Optional instance ID- Returns:
- instance ID (may be null)
-
setId
Set instance ID- Parameters:
id
- ID- Returns:
- fluent API
-
getChannelId
Optional channel ID for folders- Returns:
- channel ID (may be null)
-
setChannelId
Set channel ID- Parameters:
channelId
- channel ID- Returns:
- fluent API
-
getLabel
Label of the type/instance- Returns:
- label
-
setLabel
Set label- Parameters:
label
- label- Returns:
- fluent API
-
getDescription
Description- Returns:
- description
-
setDescription
Set description- Parameters:
description
- description- Returns:
- fluent API
-
getPerms
List of permissions available for the type- Returns:
- permission list
-
setPerms
Set permissions- Parameters:
perms
- permission list- Returns:
- fluent API
-
getRoles
List of available roles- Returns:
- list of roles
-
setRoles
Set roles- Parameters:
roles
- role list- Returns:
- fluent API
-
isChildren
public boolean isChildren()True if the type/instance has children- Returns:
- flag
-
setChildren
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
Set editable flag- Parameters:
editable
- flag- Returns:
- fluent API
-
toString
-