public class RoleDescriptor
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
java.lang.String | 
categoryId
Associated  
RoleCategory. | 
java.util.Set<java.lang.String> | 
childsRole
Child roles. 
 | 
java.util.Set<java.lang.String> | 
containerRoles
Role applies to containers. 
 | 
boolean | 
delegable
Role can be delegated. 
 | 
java.lang.String | 
description
Role description. 
 | 
BaseDirEntry.Kind | 
dirEntryKind
Role applies to specific directory entry kind. 
 | 
boolean | 
dirEntryPromote
Role applies to associated directory entry. 
 | 
java.lang.String | 
id
Unique identifier. 
 | 
java.lang.String | 
label
Label. 
 | 
java.lang.String | 
parentRoleId
Parent role, this role inherits all permissions of the parent role. 
 | 
int | 
priority
Role priority //FIXME unused 
 | 
boolean | 
selfPromote
Role applies to own roles only. 
 | 
java.lang.String | 
siblingRole
Sibling role //FIXME explain 
 | 
boolean | 
visible
Visible in administration. 
 | 
| Constructor and Description | 
|---|
RoleDescriptor()  | 
| Modifier and Type | Method and Description | 
|---|---|
static RoleDescriptor | 
create(java.lang.String id,
      java.lang.String categoryId,
      java.lang.String label,
      java.lang.String description)  | 
RoleDescriptor | 
delegable()
Make this role delegable. 
 | 
RoleDescriptor | 
forDirEntry(BaseDirEntry.Kind kind)  | 
RoleDescriptor | 
forDirEntry(BaseDirEntry.Kind kind,
           java.lang.String siblingRole,
           java.lang.String parentId)  | 
RoleDescriptor | 
giveRoles(java.lang.String... roles)
Assign child roles. 
 | 
RoleDescriptor | 
notVisible()
Hide this role. 
 | 
RoleDescriptor | 
priotity(int priority)
Assign a priority. 
 | 
RoleDescriptor | 
withContainerRoles(java.lang.String... roles)
Assign container roles. 
 | 
RoleDescriptor | 
withParent(java.lang.String parentRoleId)
Assign a parent role. 
 | 
RoleDescriptor | 
withSelfPromote(java.lang.String parentRoleId)
Assign permission to own a role in the context of the specific owner of this
 role. 
 | 
public java.lang.String id
public java.lang.String parentRoleId
public java.lang.String categoryId
RoleCategory.public java.lang.String label
public java.lang.String description
public boolean selfPromote
public boolean dirEntryPromote
public BaseDirEntry.Kind dirEntryKind
public java.lang.String siblingRole
public java.util.Set<java.lang.String> childsRole
public boolean visible
public boolean delegable
public java.util.Set<java.lang.String> containerRoles
public int priority
public static RoleDescriptor create(java.lang.String id, java.lang.String categoryId, java.lang.String label, java.lang.String description)
public RoleDescriptor giveRoles(java.lang.String... roles)
roles - Array of roles.public RoleDescriptor withParent(java.lang.String parentRoleId)
parentRoleId - Parent role id.public RoleDescriptor withSelfPromote(java.lang.String parentRoleId)
parentRoleId - Role identifier.public RoleDescriptor withContainerRoles(java.lang.String... roles)
roles - Array of roles.public RoleDescriptor notVisible()
public RoleDescriptor delegable()
public RoleDescriptor priotity(int priority)
priority - public RoleDescriptor forDirEntry(BaseDirEntry.Kind kind, java.lang.String siblingRole, java.lang.String parentId)
public RoleDescriptor forDirEntry(BaseDirEntry.Kind kind)
Copyright © 2023. All Rights Reserved.