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 Summary
Modifier 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.IAttributeSupport
addAttribute, addAttributes, getAttribute, getAttributes, getExtendedAttributesMethods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IDirectory
getExternalId, isExternalMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IExternalSupport
getExternalClassName, getExternalNativeIdMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Method Details
-
getName
String getName()Gets the name of the group.- Returns:
- a String object.
-
getLabel
String getLabel()Returns the label of the group.- Returns:
- a String object.
-
getDescription
String getDescription()Gets the description of the group.- Returns:
- a String of the group.
-
getCreatedDate
Date getCreatedDate()Gets the created date.- Returns:
- a
Dateobject.
-
getCreatedBy
IUser getCreatedBy()Gets the creator of the group.- Returns:
- a
IUserobject.
-
getModifiedDate
Date getModifiedDate()Gets the modified date.- Returns:
- a
Dateobject.
-
getModifiedBy
IUser getModifiedBy()Gets the editor of the group.- Returns:
- a
IUserobject.
-
getParents
Collection<? extends IGroup> getParents()Gets the parents of the group.- Returns:
- A collection of
IGroupobjects.
-
getAllParents
Collection<? extends IGroup> getAllParents()Gets all the parents recursively.- Returns:
- A collection of
IGroupobjects.
-
getChildren
Collection<? extends IGroup> getChildren()Gets the children groups- Returns:
- A collection of
IGroupobjects.
-
getAllChildren
Collection<? extends IGroup> getAllChildren()Gets all the children groups recursively.- Returns:
- A collection of
IGroupobjects.
-
isChildOf
Checks 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.
-
getMembers
Collection<? extends IUser> getMembers()Gets all group members.- Returns:
- A collection of
IUserobjects.
-
getAllMembers
Collection<? extends IUser> getAllMembers()Gets all group members recursively.- Returns:
- A collection of
IUserobjects.
-
setName
Sets the name of the group.- Parameters:
name- the new name to set.
-
setLabel
Sets the label of the group- Parameters:
label-
-
setDescription
Sets the description of the group.- Parameters:
description- the new description to set.
-
addMember
Sets a user as member of a group.- Parameters:
user- The user to add to the group.
-
addChild
Adds a childIGroup.- Parameters:
group- The child group to add.
-
addMembers
Adds members as a collection ofIUserobjects.- Parameters:
members- The users to add.
-
addChildren
Adds children as a collection ofIGroupobjects.- Parameters:
children- The children to add.
-
addParents
Adds parents to the current group.- Parameters:
parents- The collection ofIGroupobjects to add.
-
removeMember
Removes a member from the group.- Parameters:
user- TheIUserobject to remove.
-
removeChild
Removes a child from the group.- Parameters:
group- TheIGroupobject to remove.
-
removeMembers
Removes a collection of members from the group.- Parameters:
members- The collection ofIUserobjects to remove.
-
removeChildren
Removes children groups from the group.- Parameters:
children- The collection ofIGroupobjects to remove.
-
getOrganization
IOrganization getOrganization()Gets the organization of the group.- Returns:
- A
IOrganizationobject.
-
setOrganization
Sets the organization of the group.- Parameters:
organization- TheIOrganizationobject.
-
isFromSystem
boolean isFromSystem()Checks if a group is created by the system.- Returns:
- True if the group is created by the system, false otherwise.
-
convertToSystemGroup
void convertToSystemGroup()Transforms a group into a system group (can not be deleted)
-