public interface IGroup extends IElement, ISecuritySupport, IDeletionSupport, IAttributeSupport, IExternalSupport, ISearchSupport, IProtocolSupport
IUser, 
ILocalization, 
IOrganization| Modifier and Type | Method and Description | 
|---|---|
void | 
addChild(IGroup group)
Adds a child  
IGroup. | 
void | 
addChildren(Collection<? extends IGroup> children)
Adds children as a collection of  
IGroup objects. | 
void | 
addMember(IUser user)
Sets a user as member of a group. 
 | 
void | 
addMembers(Collection<? extends IUser> members)
Adds members as a collection of  
IUser objects. | 
void | 
addParents(Collection<? extends IGroup> parents)
Adds parents to the current group. 
 | 
Collection<? extends IGroup> | 
getAllChildren()
Gets all the children groups recursively. 
 | 
Collection<? extends IUser> | 
getAllMembers()
Gets all group members recursively. 
 | 
Collection<? extends IGroup> | 
getAllParents()
Gets all the parents recursively. 
 | 
Collection<? extends IGroup> | 
getChildren()
Gets the children groups 
 | 
IUser | 
getCreatedBy()
Gets the creator of the group. 
 | 
Date | 
getCreatedDate()
Gets the created date. 
 | 
String | 
getDescription()
Gets the description of the group. 
 | 
String | 
getLabel()
Returns the label of the group. 
 | 
Collection<? extends IUser> | 
getMembers()
Gets all group members. 
 | 
IUser | 
getModifiedBy()
Gets the editor of the group. 
 | 
Date | 
getModifiedDate()
Gets the modified date. 
 | 
String | 
getName()
Gets the name of the group. 
 | 
IOrganization | 
getOrganization()
Gets the organization of the group. 
 | 
Collection<? extends IGroup> | 
getParents()
Gets the parents of the group. 
 | 
boolean | 
isChildOf(IGroup parent,
         boolean recursive)
Checks if a group is child of another group. 
 | 
void | 
removeChild(IGroup group)
Removes a child from the group. 
 | 
void | 
removeChildren(Collection<? extends IGroup> children)
Removes children groups from the group. 
 | 
void | 
removeMember(IUser user)
Removes a member from the group. 
 | 
void | 
removeMembers(Collection<? extends IUser> members)
Removes a collection of members from the group. 
 | 
void | 
setDescription(String description)
Sets the description of the group. 
 | 
void | 
setLabel(String label)
Sets the label of the group 
 | 
void | 
setName(String name)
Sets the name of the group. 
 | 
void | 
setOrganization(IOrganization organization)
Sets the organization of the group. 
 | 
getId, getModule, getNativeObject, getPath, savegetProtocolURI, getProtocolURIdeleteaddAttribute, addAttributes, getAttribute, getAttributes, getExtendedAttributesgetExternalClassName, getExternalNativeIdString getName()
String getLabel()
String getDescription()
Collection<? extends IGroup> getParents()
IGroup objects.Collection<? extends IGroup> getAllParents()
IGroup objects.Collection<? extends IGroup> getChildren()
IGroup objects.Collection<? extends IGroup> getAllChildren()
IGroup objects.boolean isChildOf(IGroup parent, boolean recursive)
parent - The parent group.recursive - Boolean flag to check recursively or not.Collection<? extends IUser> getMembers()
IUser objects.Collection<? extends IUser> getAllMembers()
IUser objects.void setName(String name)
name - the new name to set.void setLabel(String label)
label - void setDescription(String description)
description - the new description to set.void addMember(IUser user)
user - The user to add to the group.void addChild(IGroup group)
IGroup.group - The child group to add.void addMembers(Collection<? extends IUser> members)
IUser objects.members - The users to add.void addChildren(Collection<? extends IGroup> children)
IGroup objects.children - The children to add.void addParents(Collection<? extends IGroup> parents)
parents - The collection of IGroup objects to add.void removeMember(IUser user)
user - The IUser object to remove.void removeChild(IGroup group)
group - The IGroup object to remove.void removeMembers(Collection<? extends IUser> members)
members - The collection of IUser objects to remove.void removeChildren(Collection<? extends IGroup> children)
children - The collection of IGroup objects to remove.IOrganization getOrganization()
IOrganization object.void setOrganization(IOrganization organization)
organization - The IOrganization object.Copyright © 2019 Visiativ Software. All rights reserved.