Package com.axemble.vdoc.sdk.interfaces
Interface IGroup
- All Superinterfaces:
- IAttributeSupport,- IDeletionSupport,- IDirectory,- IElement,- IExternalSupport,- IProtocolSupport,- ISearchSupport,- ISecuritySupport,- Serializable
public interface IGroup
extends IElement, ISecuritySupport, IDeletionSupport, IAttributeSupport, IExternalSupport, ISearchSupport, IProtocolSupport, IDirectory
The IGroup interface is part of the VDoc directory.
- Since:
- 1.0
- Version:
- 1.0, 28/10/2007
- Author:
- Vassyly Lygeros
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a childIGroup.voidaddChildren(Collection<? extends IGroup> children) Adds children as a collection ofIGroupobjects.voidSets a user as member of a group.voidaddMembers(Collection<? extends IUser> members) Adds members as a collection ofIUserobjects.voidaddParents(Collection<? extends IGroup> parents) Adds parents to the current group.voidTransforms a group into a system group (can not be deleted)Collection<? extends IGroup> Gets all the children groups recursively.Collection<? extends IUser> Gets all group members recursively.Collection<? extends IGroup> Gets all the parents recursively.Collection<? extends IGroup> Gets the children groupsGets the creator of the group.Gets the created date.Gets the description of the group.getLabel()Returns the label of the group.Collection<? extends IUser> Gets all group members.Gets the editor of the group.Gets the modified date.getName()Gets the name of the group.Gets the organization of the group.Collection<? extends IGroup> Gets the parents of the group.booleanChecks if a group is child of another group.booleanChecks if a group is created by the system.voidremoveChild(IGroup group) Removes a child from the group.voidremoveChildren(Collection<? extends IGroup> children) Removes children groups from the group.voidremoveMember(IUser user) Removes a member from the group.voidremoveMembers(Collection<? extends IUser> members) Removes a collection of members from the group.voidsetDescription(String description) Sets the description of the group.voidSets the label of the groupvoidSets the name of the group.voidsetOrganization(IOrganization organization) Sets the organization of the group.Methods inherited from interface com.axemble.vdoc.sdk.supports.IAttributeSupportaddAttribute, addAttributes, getAttribute, getAttributes, getExtendedAttributesMethods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupportdeleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IDirectorygetExternalId, isExternalMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElementgetId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IExternalSupportgetExternalClassName, getExternalNativeIdMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupportgetProtocolURI, getProtocolURI
- 
Method Details- 
getNameString getName()Gets the name of the group.- Returns:
- a String object.
 
- 
getLabelString getLabel()Returns the label of the group.- Returns:
- a String object.
 
- 
getDescriptionString getDescription()Gets the description of the group.- Returns:
- a String of the group.
 
- 
getCreatedDateDate getCreatedDate()Gets the created date.- Returns:
- a Dateobject.
 
- 
getCreatedByIUser getCreatedBy()Gets the creator of the group.- Returns:
- a IUserobject.
 
- 
getModifiedDateDate getModifiedDate()Gets the modified date.- Returns:
- a Dateobject.
 
- 
getModifiedByIUser getModifiedBy()Gets the editor of the group.- Returns:
- a IUserobject.
 
- 
getParentsCollection<? extends IGroup> getParents()Gets the parents of the group.- Returns:
- A collection of IGroupobjects.
 
- 
getAllParentsCollection<? extends IGroup> getAllParents()Gets all the parents recursively.- Returns:
- A collection of IGroupobjects.
 
- 
getChildrenCollection<? extends IGroup> getChildren()Gets the children groups- Returns:
- A collection of IGroupobjects.
 
- 
getAllChildrenCollection<? extends IGroup> getAllChildren()Gets all the children groups recursively.- Returns:
- A collection of IGroupobjects.
 
- 
isChildOfChecks if a group is child of another group.- Parameters:
- parent- The parent group.
- recursive- Boolean flag to check recursively or not.
- Returns:
- true if the group is child of the parent group, false otherwise.
 
- 
getMembersCollection<? extends IUser> getMembers()Gets all group members.- Returns:
- A collection of IUserobjects.
 
- 
getAllMembersCollection<? extends IUser> getAllMembers()Gets all group members recursively.- Returns:
- A collection of IUserobjects.
 
- 
setNameSets the name of the group.- Parameters:
- name- the new name to set.
 
- 
setLabelSets the label of the group- Parameters:
- label-
 
- 
setDescriptionSets the description of the group.- Parameters:
- description- the new description to set.
 
- 
addMemberSets a user as member of a group.- Parameters:
- user- The user to add to the group.
 
- 
addChildAdds a childIGroup.- Parameters:
- group- The child group to add.
 
- 
addMembersAdds members as a collection ofIUserobjects.- Parameters:
- members- The users to add.
 
- 
addChildrenAdds children as a collection ofIGroupobjects.- Parameters:
- children- The children to add.
 
- 
addParentsAdds parents to the current group.- Parameters:
- parents- The collection of- IGroupobjects to add.
 
- 
removeMemberRemoves a member from the group.- Parameters:
- user- The- IUserobject to remove.
 
- 
removeChildRemoves a child from the group.- Parameters:
- group- The- IGroupobject to remove.
 
- 
removeMembersRemoves a collection of members from the group.- Parameters:
- members- The collection of- IUserobjects to remove.
 
- 
removeChildrenRemoves children groups from the group.- Parameters:
- children- The collection of- IGroupobjects to remove.
 
- 
getOrganizationIOrganization getOrganization()Gets the organization of the group.- Returns:
- A IOrganizationobject.
 
- 
setOrganizationSets the organization of the group.- Parameters:
- organization- The- IOrganizationobject.
 
- 
isFromSystemboolean isFromSystem()Checks if a group is created by the system.- Returns:
- True if the group is created by the system, false otherwise.
 
- 
convertToSystemGroupvoid convertToSystemGroup()Transforms a group into a system group (can not be deleted)
 
-