public interface Group
permission service
.GroupRoot
Modifier and Type | Method and Description |
---|---|
Group |
appendChild(String name)
Creates a new group with the given name as child of this group
and appends it to the list of
children . |
Group |
appendChild(String id,
String name)
Creates a new group with the given name and id as child of this group
and appends it to the list of
children . |
void |
clearChildren()
Removes all children of this group.
|
void |
clearChilds()
Deprecated.
since 4.2.200 - use
clearChildren() instead |
List<Group> |
getAllChildren()
Returns a list of all (recursive) group children of this group.
|
List<Group> |
getAllChilds()
Deprecated.
since 4.2.200 - use
getAllChildren() instead |
List<Group> |
getAllParents()
Returns a list of all parents existing on the parent path
of this group.
|
Collection<? extends Group> |
getChildren()
Returns a collection of all direct sub group children.
|
Group[] |
getChilds()
Deprecated.
since 4.2.200 - use
getChildren() instead |
String |
getId()
Returns the id of this group.
|
int |
getLevel()
Returns the depth level of this group.
|
String |
getName()
Returns the name of this group or
null if not set |
Group |
getParent()
Returns the parent group of this group or
null if this group is the root group |
boolean |
hasId()
Indicates whether this group has an id or not.
|
boolean |
isSelectable()
Indicates whether this group is selectable in the permission editor component
or not.
|
void |
removeChild(Group group)
Removes the given group from the list
|
void |
removeId()
Removes the id of this group.
|
void |
setId(String id)
Sets the id of this group.
|
void |
setName(String name)
Sets the name for this group.
|
void |
setSelectable(boolean selectable)
Make this group selectable in the permission editor component (
true ) or not false . |
@Deprecated Group[] getChilds()
getChildren()
insteadCollection<? extends Group> getChildren()
@Nullable Group getParent()
null
if this group is the root group
null
in case of the group root
int getLevel()
root group
the level is 0
String getId()
GroupRoot.getGroupById(String)
void setId(String id)
id
- the new idGroupRoot.getGroupById(String)
void removeId()
boolean hasId()
true
if this group has an id, false
otherwiseString getName()
null
if not setnull
setName(String)
void setName(String name)
name
- the name to be used for this group.getName()
void removeChild(Group group)
group
- the group to remove@Deprecated void clearChilds()
clearChildren()
insteadvoid clearChildren()
@Deprecated List<Group> getAllChilds()
getAllChildren()
instead@NotNull List<Group> getAllChildren()
getChildren()
List<Group> getAllParents()
direct parent
and the last
element is the root group
this group belongs to.Group appendChild(String name)
children
.name
- the name for the new groupGroup appendChild(String id, String name)
children
.name
- the name for the new groupid
- the id for the new groupboolean isSelectable()
true
if this group is selectable in permission editor, false
otherwisesetSelectable(boolean)
void setSelectable(boolean selectable)
true
) or not false
.selectable
- use true
to make this group selectable in permission editor, false
otherwiseisSelectable()
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500