public enum SiteContextType extends Enum<SiteContextType>
Enum Constant and Description |
---|
ALL
The site of the context can be any site.
|
AMONG
The site of the context can be one among the ones returned by
SiteContext.getSites() . |
CURRENT
The site of the context is the current one.
|
OTHERS
The site of the context can be any site but the current one.
|
Modifier and Type | Field and Description |
---|---|
private String |
_clientSideName |
Modifier and Type | Method and Description |
---|---|
String |
clientSideName()
Gets the client side name of the type of site context
|
static SiteContextType |
fromClientSideName(String clientSideName)
Gets a
SiteContextType from its client-side name |
static SiteContextType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SiteContextType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SiteContextType CURRENT
public static final SiteContextType AMONG
SiteContext.getSites()
.public static final SiteContextType ALL
public static final SiteContextType OTHERS
private String _clientSideName
public static SiteContextType[] values()
for (SiteContextType c : SiteContextType.values()) System.out.println(c);
public static SiteContextType 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 String clientSideName()
public static SiteContextType fromClientSideName(String clientSideName)
SiteContextType
from its client-side nameclientSideName
- the client-side nameSiteContextType