public class PageSaveRequest extends Object
Constructor and Description |
---|
PageSaveRequest()
Constructor used by JAXB
|
PageSaveRequest(Page page)
Creates a new PageSaveRequest with a specified page
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getDelete()
List of tag names of tags, that shall be deleted.
|
Boolean |
getDeriveFileName()
Indicates whether the filename should be derived from
the page name, when no filename is given in the request.
|
Boolean |
getFailOnDuplicate()
True if saving the page with a duplicate name will fail.
|
Page |
getPage()
Page to be saved
|
boolean |
isClearOfflineAt()
Flag to clear the "offline At" data (time)
|
boolean |
isClearPublishAt()
Flag to clear the "publish At" data (time and version)
|
boolean |
isCreateVersion()
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" data
|
void |
setClearPublishAt(boolean clearPublishAt)
Set true to clear "publish At" data
|
void |
setCreateVersion(boolean createVersion)
Set whether to create a page version
|
void |
setDelete(List<String> delete)
Set the list of tags that need to be deleted
|
void |
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 names
|
void |
setPage(Page page) |
void |
setUnlock(boolean unlock) |
public PageSaveRequest()
public PageSaveRequest(Page page)
page
- The page to savepublic Page getPage()
public void setPage(Page page)
public boolean isUnlock()
public void setUnlock(boolean unlock)
unlock
- the unlock to setpublic boolean isCreateVersion()
public void setCreateVersion(boolean createVersion)
createVersion
- true to create a page versionpublic List<String> getDelete()
public void setDelete(List<String> delete)
delete
- list of tags that need to be deletedpublic Boolean getFailOnDuplicate()
public void setFailOnDuplicate(Boolean failOnDuplicate)
failOnDuplicate
- true to fail on duplicate namespublic Boolean getDeriveFileName()
true
if the filename will be derived from
the page name, when the request filename is empty.
false
otherwise.public void setDeriveFileName(Boolean deriveFileName)
deriveFileName
- When set to true
and the request
filename is empty, the filename will be derived from the page name.
When set to false
or the filename is not
empty, the behavior while saving the page is not changed.public boolean isClearPublishAt()
public void setClearPublishAt(boolean clearPublishAt)
clearPublishAt
- flagpublic boolean isClearOfflineAt()
public void setClearOfflineAt(boolean clearOfflineAt)
clearOfflineAt
- flagCopyright © 2024 Gentics Software. All rights reserved.