public class TypePermissions extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
children
Flag whether the type/instance has children
|
protected boolean |
editable
Flag to mark editable
|
Constructor and Description |
---|
TypePermissions() |
Modifier and Type | Method and Description |
---|---|
Integer |
getChannelId()
Optional channel ID for folders
|
String |
getDescription()
Description
|
Integer |
getId()
Optional instance ID
|
String |
getLabel()
Label of the type/instance
|
List<TypePermissionItem> |
getPerms()
List of permissions available for the type
|
List<RoleItem> |
getRoles()
List of available roles
|
String |
getType()
Type
|
boolean |
isChildren()
True if the type/instance has children
|
boolean |
isEditable()
True if the permissions can be changed by the current user
|
TypePermissions |
setChannelId(Integer channelId)
Set channel ID
|
TypePermissions |
setChildren(boolean children)
Set child flag
|
TypePermissions |
setDescription(String description)
Set description
|
TypePermissions |
setEditable(boolean editable)
Set editable flag
|
TypePermissions |
setId(Integer id)
Set instance ID
|
TypePermissions |
setLabel(String label)
Set label
|
TypePermissions |
setPerms(List<TypePermissionItem> perms)
Set permissions
|
TypePermissions |
setRoles(List<RoleItem> roles)
Set roles
|
TypePermissions |
setType(String type)
Set type
|
String |
toString() |
protected boolean children
protected boolean editable
public String getType()
public TypePermissions setType(String type)
type
- typepublic Integer getId()
public TypePermissions setId(Integer id)
id
- IDpublic Integer getChannelId()
public TypePermissions setChannelId(Integer channelId)
channelId
- channel IDpublic String getLabel()
public TypePermissions setLabel(String label)
label
- labelpublic String getDescription()
public TypePermissions setDescription(String description)
description
- descriptionpublic List<TypePermissionItem> getPerms()
public TypePermissions setPerms(List<TypePermissionItem> perms)
perms
- permission listpublic TypePermissions setRoles(List<RoleItem> roles)
roles
- role listpublic boolean isChildren()
public TypePermissions setChildren(boolean children)
children
- flagpublic boolean isEditable()
public TypePermissions setEditable(boolean editable)
editable
- flagCopyright © 2019 Gentics Software. All rights reserved.