|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Affiliation>
tigase.muc.Affiliation
public enum Affiliation
A long-lived association or connection with a room; the possible affiliations are "owner", "admin", "member", and "outcast" (naturally it is also possible to have no affiliation); affiliation is distinct from role. An affiliation lasts across a user's visits to a room.
Created: 2007-01-26 16:30:15
| Enum Constant Summary | |
|---|---|
ADMIN
A user empowered by the room owner to perform administrative functions such as banning users; however, is not allowed to change defining room features. |
|
MEMBER
A user who is on the "whitelist" for a members-only room or who is registered with an open room. |
|
NONE
Absence of role. |
|
OUTCAST
A user who has been banned from a room. |
|
OWNER
The Jabber user who created the room or a Jabber user who has been designated by the room creator or owner as someone with owner privileges (if allowed); is allowed to change defining room features as well as perform all administrative functions. |
|
| Method Summary | |
|---|---|
int |
getWeight()
|
static Affiliation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Affiliation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Affiliation OWNER
public static final Affiliation ADMIN
public static final Affiliation MEMBER
public static final Affiliation NONE
public static final Affiliation OUTCAST
| Method Detail |
|---|
public static Affiliation[] values()
for (Affiliation c : Affiliation.values()) System.out.println(c);
public static Affiliation 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 name
java.lang.NullPointerException - if the argument is nullpublic int getWeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||