public enum ChatRoomMemberRole extends java.lang.Enum<ChatRoomMemberRole> implements java.lang.Comparable<ChatRoomMemberRole>
Enum Constant and Description |
---|
ADMINISTRATOR
A role implying administrative permissions.
|
GUEST
A role implying standard participant permissions.
|
MEMBER
A role implying standard participant permissions.
|
MODERATOR
A role implying moderator permissions.
|
OUTCAST
A role implying an explicit ban for the user to join the room.
|
OWNER
A role implying the full set of chat room permissions
|
SILENT_MEMBER
A role implying standard participant permissions without the right to
send messages/speak.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedRoleName()
Returns a localized (i18n) name role name.
|
int |
getRoleIndex()
Returns a role index that can be used to allow ordering of roles by
other modules (like the UI) that would not necessarily "know" all
possible roles.
|
java.lang.String |
getRoleName()
Returns the name of this role.
|
static ChatRoomMemberRole |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChatRoomMemberRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatRoomMemberRole OWNER
public static final ChatRoomMemberRole ADMINISTRATOR
public static final ChatRoomMemberRole MODERATOR
public static final ChatRoomMemberRole MEMBER
public static final ChatRoomMemberRole GUEST
public static final ChatRoomMemberRole SILENT_MEMBER
public static final ChatRoomMemberRole OUTCAST
public static ChatRoomMemberRole[] values()
for (ChatRoomMemberRole c : ChatRoomMemberRole.values()) System.out.println(c);
public static ChatRoomMemberRole valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getRoleName()
public java.lang.String getLocalizedRoleName()
public int getRoleIndex()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.