Class PagePublishRequest

java.lang.Object
com.gentics.contentnode.rest.model.request.PagePublishRequest
Direct Known Subclasses:
MultiPagePublishRequest

public class PagePublishRequest extends Object
Request for publishing a page
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the timestamp to publish the page at a specific time, 0 for publishing the page immediately
    Get the message
    boolean
    Get true if all languages shall be published, false if not
    boolean
    True if the currently set "publishAt" version shall be kept (and only the publishAt time shall be changed).
    void
    setAlllang(boolean alllang)
    Set whether all languages shall be published
    void
    setAt(int at)
    Set timestamp to publish the page at a specific timestamp, 0 for publishing the page immediately
    void
    setKeepVersion(boolean keepVersion)
    Set "keepVersion" flag
    void
    setMessage(String message)
    Set the message

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PagePublishRequest

      public PagePublishRequest()
      Empty constructor
  • Method Details

    • getMessage

      public String getMessage()
      Get the message
      Returns:
      message
    • isAlllang

      public boolean isAlllang()
      Get true if all languages shall be published, false if not
      Returns:
      true or false
    • getAt

      public int getAt()
      Get the timestamp to publish the page at a specific time, 0 for publishing the page immediately
      Returns:
      timestamp or 0
    • setMessage

      public void setMessage(String message)
      Set the message
      Parameters:
      message - message
    • setAlllang

      public void setAlllang(boolean alllang)
      Set whether all languages shall be published
      Parameters:
      alllang - true if all language variants shall be published, false if not
    • setAt

      public void setAt(int at)
      Set timestamp to publish the page at a specific timestamp, 0 for publishing the page immediately
      Parameters:
      at - timestamp or -1
    • isKeepVersion

      public boolean isKeepVersion()
      True if the currently set "publishAt" version shall be kept (and only the publishAt time shall be changed). If there is no publishAt set, or the page is published immediately, this parameter is ignored.
      Returns:
      flag to keep version
    • setKeepVersion

      public void setKeepVersion(boolean keepVersion)
      Set "keepVersion" flag
      Parameters:
      keepVersion - flag