public enum WikiComponentScope extends Enum<WikiComponentScope>
WikiComponent
, i.e. whether it's registered for the current user only, for the current wiki
only, or for all the wikis.Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final WikiComponentScope USER
public static final WikiComponentScope WIKI
public static final WikiComponentScope GLOBAL
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 nameNullPointerException
- if the argument is nullpublic static WikiComponentScope fromString(String scopeAsString)
scopeAsString
- the scope as a stringCopyright © 2004–2019 XWiki. All rights reserved.