public class BlogRole extends Object implements Serializable
This enumeration represents the possible roles of blog member.
| Modifier and Type | Field and Description |
|---|---|
static BlogRole |
MANAGER
A blog member with the MANAGER role has read, write and management access to a blog.
|
static BlogRole |
MEMBER
A blog member with the MEMBER role has read and write access to a blog.
|
static BlogRole |
VIEWER
A blog member with the VIEWER role only has read access to a blog.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BlogRole()
The default constructor allowing super classes to access it.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object that) |
boolean |
equals(Object object) |
static BlogRole |
fromString(String value)
Creates an instance of BlogRole from
value. |
String |
getValue()
Gets the underlying value of this type safe enumeration.
|
int |
hashCode() |
static List<String> |
literals()
Returns an unmodifiable list containing the literals that are known by this enumeration.
|
static List<String> |
names()
Returns an unmodifiable list containing the names of the literals that are known by this
enumeration.
|
String |
toString() |
public static final BlogRole MANAGER
A blog member with the MANAGER role has read, write and management access to a blog.
public static final BlogRole VIEWER
A blog member with the VIEWER role only has read access to a blog.
public static final BlogRole MEMBER
A blog member with the MEMBER role has read and write access to a blog.
protected BlogRole()
public static BlogRole fromString(String value)
value.value - the value to create the BlogRole from.public static List<String> literals()
public static List<String> names()
public int compareTo(Object that)
Comparable.compareTo(Object)public boolean equals(Object object)
equals in class ObjectObject.equals(Object)public String getValue()
public int hashCode()
hashCode in class ObjectObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2019 Communote team. All rights reserved.