Package com.cbe

Class Role

java.lang.Object
com.cbe.Role

public class Role extends Object
User role information.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • Role

      public Role(long cPtr, boolean cMemoryOwn)
    • Role

      public Role(DefaultCtor arg0)
      Default constructor.

      Construct a new object with
      the DefaultCtor to enable the
      operator bool()
      test
  • Method Details

    • getCPtr

      public static long getCPtr(Role obj)
    • finalize

      public void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • name

      public String 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

      public void listMembers(ListMembersDelegate delegate)
      Lists the members of this role,

      Parameters:
      delegate - Pointer to a delegate::ListMembersDelegate instance that is
      implemented by the user.
    • addRoleMember

      public void addRoleMember(long memberId, AddRoleMemberDelegate delegate)
      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

      public void removeRoleMember(long memberId, RemoveRoleMemberDelegate delegate)
      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.