Package com.cbe
Class Role
java.lang.Object
com.cbe.Role
User role information.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRole(long cPtr, boolean cMemoryOwn) Role(DefaultCtor arg0) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRoleMember(long memberId, AddRoleMemberDelegate delegate) Adds a member to this role.voiddelete()voidfinalize()static longlonggroupId()Id of the group the role belongs to.longid()Id of the role.voidlistMembers(ListMembersDelegate delegate) Lists the members of this role,
name()Name of the role.voidremoveRoleMember(long memberId, RemoveRoleMemberDelegate delegate) Removes a member to this role.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
Role
public Role(long cPtr, boolean cMemoryOwn) -
Role
-
-
Method Details
-
getCPtr
-
finalize
public void finalize() -
delete
public void delete() -
name
Name of the role. -
id
public long id()Id of the role. -
groupId
public long groupId()Id of the group the role belongs to. -
listMembers
Lists the members of this role,
- Parameters:
delegate- Pointer to a delegate::ListMembersDelegate instance that is
implemented by the user.
-
addRoleMember
Adds a member to this role.
- Parameters:
memberId- The id of the member to add to the role.
delegate- Pointer to a delegate::AddRoleMemberDelegate instance that is
implemented by the user.
-
removeRoleMember
Removes a member to this role.
- Parameters:
memberId- The id of the member to remove from the role.
delegate- Pointer to a delegate::RemoveRoleMember instance that
is implemented by the user.
-