|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<WikiComponentScope>
org.xwiki.component.wiki.WikiComponentScope
public enum WikiComponentScope
The scope of a WikiComponent, i.e. whether it's registered for the current user only, for the current wiki
only, or for all the wikis.
| Enum Constant Summary | |
|---|---|
GLOBAL
Component registered for all wikis in a farm. |
|
USER
Component registered for the current user only. |
|
WIKI
Component registered for the current wiki only. |
|
| Method Summary | |
|---|---|
static WikiComponentScope |
fromString(String scopeAsString)
Convert between a string representation of a Macro scope and its matching enum. |
static WikiComponentScope |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WikiComponentScope[] |
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 WikiComponentScope USER
public static final WikiComponentScope WIKI
public static final WikiComponentScope GLOBAL
| Method Detail |
|---|
public static WikiComponentScope[] values()
for (WikiComponentScope c : WikiComponentScope.values()) System.out.println(c);
public static WikiComponentScope valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static WikiComponentScope fromString(String scopeAsString)
scopeAsString - the scope as a string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||