|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Group
Interface representing a group used in the permission service.
GroupRoot| Method Summary | |
|---|---|
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 Group.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 Group.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 Group.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. |
| Method Detail |
|---|
@Deprecated Group[] getChilds()
Group.getChildren() instead
Collection<? extends Group> getChildren()
@Nullable Group getParent()
null
if this group is the root group
null in case of the group rootint 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 set
nullGroup.setName(String)void setName(String name)
name - the name to be used for this group.Group.getName()void removeChild(Group group)
group - the group to remove@Deprecated void clearChilds()
Group.clearChildren() instead
void clearChildren()
@Deprecated List<Group> getAllChilds()
Group.getAllChildren() instead
@NotNull List<Group> getAllChildren()
Group.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 group
Group appendChild(String id,
String name)
children.
name - the name for the new groupid - the id for the new group
boolean isSelectable()
true if this group is selectable in permission editor, false otherwiseGroup.setSelectable(boolean)void setSelectable(boolean selectable)
true) or not false.
selectable - use true to make this group selectable in permission editor, false otherwiseGroup.isSelectable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||