Class PagePublishRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.PagePublishRequest
- Direct Known Subclasses:
MultiPagePublishRequest
Request for publishing a page
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getAt()
Get the timestamp to publish the page at a specific time, 0 for publishing the page immediatelyGet the messageboolean
Get true if all languages shall be published, false if notboolean
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 publishedvoid
setAt
(int at) Set timestamp to publish the page at a specific timestamp, 0 for publishing the page immediatelyvoid
setKeepVersion
(boolean keepVersion) Set "keepVersion" flagvoid
setMessage
(String message) Set the message
-
Constructor Details
-
PagePublishRequest
public PagePublishRequest()Empty constructor
-
-
Method Details
-
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
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
-