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 TypeMethodDescriptionvoid
Adds a groupIGroup
.void
addGroups
(Collection<? extends IGroup> groups) Adds groups as a collection ofIGroup
objects.void
Sets a user as member of a group.void
addMembers
(Collection<? extends IUser> members) Adds members as a collection ofIUser
objects.void
addProfile
(IProfile profile) Adds a sub-profile in the profile.void
addProfiles
(Collection<? extends IProfile> profiles) Adds sub-profiles as a collection ofIProfile
objects.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.boolean
isSystem()
Checks if the profile is system and is not associated with a link.void
setDescription
(String description) Sets the description of the profile.void
Sets the label of the profile.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
delete
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
Methods 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:
getDescription
in 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:IRole
The catalog of the role.- Specified by:
getCatalog
in 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:
getMembers
in interfaceIRole
- Returns:
- A collection of
IUser
objects.
-
getAllMembers
Collection<? extends IUser> getAllMembers()Gets all the members of the profile recursively.- Specified by:
getAllMembers
in interfaceIRole
- Returns:
- A collection of
IUser
objects.
-
addMember
Sets a user as member of a group. -
addGroup
Adds a groupIGroup
. -
addMembers
Adds members as a collection ofIUser
objects.- Specified by:
addMembers
in interfaceIRole
- Parameters:
members
- The users to add.
-
addGroups
Adds groups as a collection ofIGroup
objects. -
getProfiles
Collection<? extends IProfile> getProfiles()Gets the sub-profiles of the profile.- Returns:
- A collection of
IProfile
objects.
-
getParentProfiles
Collection<? extends IProfile> getParentProfiles()Gets the parent profiles of the profile.- Returns:
- A collection of
IProfile
objects.
-
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 ofIProfile
objects.- 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
-