Class PageSaveRequest
java.lang.Object
com.gentics.contentnode.rest.model.request.PageSaveRequest
Request used for saving a page. If not set otherwise, a new version will be created (if necessary) and the page will remain locked for the user.
- Author:
- floriangutmann
-
Constructor Summary
ConstructorDescriptionConstructor used by JAXBPageSaveRequest
(Page page) Creates a new PageSaveRequest with a specified page -
Method Summary
Modifier and TypeMethodDescriptionList of tag names of tags, that shall be deleted.Indicates whether the filename should be derived from the page name, when no filename is given in the request.True if saving the page with a duplicate name will fail.getPage()
Page to be savedboolean
Flag to clear the "offline At" data (time)boolean
Flag to clear the "publish At" data (time and version)boolean
True if a page version shall be created, false if not.boolean
isUnlock()
True if the page shall be unlocked after saving, false if not.void
setClearOfflineAt
(boolean clearOfflineAt) Set true to clear "offline At" datavoid
setClearPublishAt
(boolean clearPublishAt) Set true to clear "publish At" datavoid
setCreateVersion
(boolean createVersion) Set whether to create a page versionvoid
Set the list of tags that need to be deletedvoid
setDeriveFileName
(Boolean deriveFileName) Set whether the filename should be derived from the page name, when no filename is given in the request.void
setFailOnDuplicate
(Boolean failOnDuplicate) Set whether saving shall fail on duplicate namesvoid
void
setUnlock
(boolean unlock)
-
Constructor Details
-
PageSaveRequest
public PageSaveRequest()Constructor used by JAXB -
PageSaveRequest
Creates a new PageSaveRequest with a specified page- Parameters:
page
- The page to save
-
-
Method Details
-
getPage
Page to be saved- Returns:
- page to be saved
-
setPage
-
isUnlock
public boolean isUnlock()True if the page shall be unlocked after saving, false if not. The default is false.- Returns:
- the unlock
-
setUnlock
public void setUnlock(boolean unlock) - Parameters:
unlock
- the unlock to set
-
isCreateVersion
public boolean isCreateVersion()True if a page version shall be created, false if not. The default is true.- Returns:
- true for creating a page version
-
setCreateVersion
public void setCreateVersion(boolean createVersion) Set whether to create a page version- Parameters:
createVersion
- true to create a page version
-
getDelete
List of tag names of tags, that shall be deleted.- Returns:
- the delete
-
setDelete
Set the list of tags that need to be deleted- Parameters:
delete
- list of tags that need to be deleted
-
getFailOnDuplicate
True if saving the page with a duplicate name will fail. If false (default) the name will be made unique before saving- Returns:
- true or false
-
setFailOnDuplicate
Set whether saving shall fail on duplicate names- Parameters:
failOnDuplicate
- true to fail on duplicate names
-
getDeriveFileName
Indicates whether the filename should be derived from the page name, when no filename is given in the request. By default, the filename will not be derived from the page name. When the filename is provided in the request, this flag is ignored.- Returns:
true
if the filename will be derived from the page name, when the request filename is empty.false
otherwise.
-
setDeriveFileName
Set whether the filename should be derived from the page name, when no filename is given in the request.- Parameters:
deriveFileName
- When set totrue
and the request filename is empty, the filename will be derived from the page name. When set tofalse
or the filename is not empty, the behavior while saving the page is not changed.
-
isClearPublishAt
public boolean isClearPublishAt()Flag to clear the "publish At" data (time and version)- Returns:
- true to clear
-
setClearPublishAt
public void setClearPublishAt(boolean clearPublishAt) Set true to clear "publish At" data- Parameters:
clearPublishAt
- flag
-
isClearOfflineAt
public boolean isClearOfflineAt()Flag to clear the "offline At" data (time)- Returns:
- true to clear
-
setClearOfflineAt
public void setClearOfflineAt(boolean clearOfflineAt) Set true to clear "offline At" data- Parameters:
clearOfflineAt
- flag
-