Oracle® WebCenter Interaction Development Kit 10.3.3.0.0

IRole.AddMember Method 

Adds a member to a role.

void AddMember(
   int memberID,
   MemberTypes memberType
);

Parameters

memberID
The ID of the member to be added to role; can be a portal user or a portal user group. Must be positive.
memberType
The type of member to be added; cannot be null.

Remarks

Adding a nonexistent member ID will succeed until the role has been updated via the Store method, at which time the role instance will get refreshed.
Note: Adding a single user to a role is NOT the same as adding a group with one or more users to a role. The ID of a user who is added with this method can be retrieved using GetMemberIDs with MemberQueryTypes.AllUsers. However, for users belonging to a group that is then added to a role, IDs of individual users in the group will NOT be retrievable using GetMemberIDs with MemberQueryTypes.AllUsers. Instead, MemberQueryTypes.AllGroups should be used to retrieve the group ID.

Exceptions

Exception Type Condition
ArgumentException The member ID is not positive.

See Also

IRole Interface | Plumtree.Remote.PRC.Collaboration.Security Namespace