com.ibm.connections.spi.events.object
Enum ModerationData.ActorRole
java.lang.Object
java.lang.Enum<ModerationData.ActorRole>
com.ibm.connections.spi.events.object.ModerationData.ActorRole
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ModerationData.ActorRole>
- Enclosing interface:
- ModerationData
public static enum ModerationData.ActorRole
- extends java.lang.Enum<ModerationData.ActorRole>
Represents the role the event actor is in. Pre-moderation synchronous event handlers can change the content state based on the role of the actor.
EDITOR - Users that can edit content. e.g. a Blog author.
OWNER - The owner or manager of a resource. e.g. The owner of a Forum, Blogs.
MODERATOR - The moderator of content. e.g. A moderator of a Forum. Note, this is only supported in Forums in IBM Connections 3.0
CONTRIBUTOR - Users that can contribute content. e.g. Blogs Draft Author.
READER - Users who is allowed to read content, but without any direct edit/delete permissions. Readers may be able to contribute comments in some services.
| Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
EDITOR
public static final ModerationData.ActorRole EDITOR
OWNER
public static final ModerationData.ActorRole OWNER
MODERATOR
public static final ModerationData.ActorRole MODERATOR
CONTRIBUTOR
public static final ModerationData.ActorRole CONTRIBUTOR
READER
public static final ModerationData.ActorRole READER
values
public static ModerationData.ActorRole[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ModerationData.ActorRole c : ModerationData.ActorRole.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ModerationData.ActorRole valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null