com.gentics.contentnode.rest.model
Enum PageStatus

java.lang.Object
  extended by java.lang.Enum<PageStatus>
      extended by com.gentics.contentnode.rest.model.PageStatus
All Implemented Interfaces:
Serializable, Comparable<PageStatus>

public enum PageStatus
extends Enum<PageStatus>

Stati of a page


Enum Constant Summary
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
 
Method Summary
 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.
 
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

published

public static final PageStatus published
Status of published pages


edited

public static final PageStatus edited
Status of pages currently being edited


offline

public static final PageStatus offline
Status of offline pages


queue

public static final PageStatus queue
Status of pages in the queue (workflow)


timeframe

public static final PageStatus timeframe
Status of pages currently out of timeframe


publishat

public static final PageStatus publishat
Status of pages that are scheduled to be published at a future time

Method Detail

values

public static PageStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PageStatus c : PageStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PageStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCodes

public List<Integer> getCodes()
Get the status codes

Returns:
status codes

getCodes

public static List<Integer> getCodes(List<PageStatus> stati)
Get the status codes for the given page stati

Parameters:
stati - list of page stati
Returns:
list of status codes

getStatus

public static PageStatus getStatus(int code)
Get the status text for a given code value

Parameters:
code - value
Returns:
status text or null for invalid codes


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.