public enum PageStatus extends Enum<PageStatus>
Enum Constant and Description |
---|
edited
Status of pages currently being edited
|
offline
Status of offline pages
|
publishat
Status of pages that are scheduled to be published at a future time
|
published
Status of published pages
|
queue
Status of pages in the queue (workflow)
|
timeframe
Status of pages currently out of timeframe
|
Modifier and Type | Method and Description |
---|---|
List<Integer> |
getCodes()
Get the status codes
|
static List<Integer> |
getCodes(List<PageStatus> stati)
Get the status codes for the given page stati
|
static PageStatus |
getStatus(int code)
Get the status text for a given code value
|
static PageStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PageStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageStatus published
public static final PageStatus edited
public static final PageStatus offline
public static final PageStatus queue
public static final PageStatus timeframe
public static final PageStatus publishat
public static PageStatus[] values()
for (PageStatus c : PageStatus.values()) System.out.println(c);
public static PageStatus 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 List<Integer> getCodes(List<PageStatus> stati)
stati
- list of page statipublic static PageStatus getStatus(int code)
code
- valueCopyright © 2015 Gentics Software. All rights reserved.