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
ConstructorsConstructorDescriptionConstructor 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 savedbooleanFlag to clear the "offline At" data (time)booleanFlag to clear the "publish At" data (time and version)booleanTrue if a page version shall be created, false if not.booleanisUnlock()True if the page shall be unlocked after saving, false if not.voidsetClearOfflineAt(boolean clearOfflineAt) Set true to clear "offline At" datavoidsetClearPublishAt(boolean clearPublishAt) Set true to clear "publish At" datavoidsetCreateVersion(boolean createVersion) Set whether to create a page versionvoidSet the list of tags that need to be deletedvoidsetDeriveFileName(Boolean deriveFileName) Set whether the filename should be derived from the page name, when no filename is given in the request.voidsetFailOnDuplicate(Boolean failOnDuplicate) Set whether saving shall fail on duplicate namesvoidvoidsetUnlock(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:
trueif the filename will be derived from the page name, when the request filename is empty.falseotherwise.
-
setDeriveFileName
Set whether the filename should be derived from the page name, when no filename is given in the request.- Parameters:
deriveFileName- When set totrueand the request filename is empty, the filename will be derived from the page name. When set tofalseor 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
-