Package com.axemble.vdoc.sdk.interfaces
Interface IProfile
- All Superinterfaces:
IDeletionSupport,IElement,ILocalizationScope,IProtocolSupport,IRole,ISearchSupport,Serializable
This class allows to manipulate security profile objects.
- Since:
- 1.0, 01/04/2011
- Author:
- omenuel
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a groupIGroup.voidaddGroups(Collection<? extends IGroup> groups) Adds groups as a collection ofIGroupobjects.voidSets a user as member of a group.voidaddMembers(Collection<? extends IUser> members) Adds members as a collection ofIUserobjects.voidaddProfile(IProfile profile) Adds a sub-profile in the profile.voidaddProfiles(Collection<? extends IProfile> profiles) Adds sub-profiles as a collection ofIProfileobjects.Collection<? extends IUser> Gets all the members of the profile recursively.The catalog of the role.Gets the description of the profile.Collection<? extends IGroup> Gets the groups of the profile.getLabel()Gets the label of the profile.Gets the label of the profile.getLink()Get the link of the profileCollection<? extends IUser> Gets the members of the profile.getName()Gets the name of the profile.Collection<? extends IProfile> Gets the parent profiles of the profile.Collection<? extends IProfile> Gets the sub-profiles of the profile.booleanisSystem()Checks if the profile is system and is not associated with a link.voidsetDescription(String description) Sets the description of the profile.voidSets the label of the profile.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURIMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IRole
addChild, addChildren
-
Method Details
-
getName
String getName()Gets the name of the profile. -
getLabel
String getLabel()Gets the label of the profile. -
getLabel
Gets the label of the profile. -
setLabel
Sets the label of the profile.- Parameters:
label- The new label to use.
-
getDescription
String getDescription()Gets the description of the profile.- Specified by:
getDescriptionin interfaceIRole- Returns:
- The description of the profile
-
setDescription
Sets the description of the profile.- Parameters:
description- The new description to use.
-
getCatalog
ICatalog getCatalog()Description copied from interface:IRoleThe catalog of the role.- Specified by:
getCatalogin interfaceIRole
-
getGroups
Collection<? extends IGroup> getGroups()Gets the groups of the profile. -
getMembers
Collection<? extends IUser> getMembers()Gets the members of the profile.- Specified by:
getMembersin interfaceIRole- Returns:
- A collection of
IUserobjects.
-
getAllMembers
Collection<? extends IUser> getAllMembers()Gets all the members of the profile recursively.- Specified by:
getAllMembersin interfaceIRole- Returns:
- A collection of
IUserobjects.
-
addMember
Sets a user as member of a group. -
addGroup
Adds a groupIGroup. -
addMembers
Adds members as a collection ofIUserobjects.- Specified by:
addMembersin interfaceIRole- Parameters:
members- The users to add.
-
addGroups
Adds groups as a collection ofIGroupobjects. -
getProfiles
Collection<? extends IProfile> getProfiles()Gets the sub-profiles of the profile.- Returns:
- A collection of
IProfileobjects.
-
getParentProfiles
Collection<? extends IProfile> getParentProfiles()Gets the parent profiles of the profile.- Returns:
- A collection of
IProfileobjects.
-
addProfile
Adds a sub-profile in the profile.- Parameters:
profile- The sub-profile to add to the profile.
-
addProfiles
Adds sub-profiles as a collection ofIProfileobjects.- Parameters:
profiles- The sub-profiles to add.
-
isSystem
boolean isSystem()Checks if the profile is system and is not associated with a link.- Returns:
- true if the profile is system, false otherwise.
-
getLink
IProtocolSupport getLink()Get the link of the profile- Returns:
- IProtocolSupport
-