com.gentics.contentnode.rest.model.request
Class PageSaveRequest

java.lang.Object
  extended by com.gentics.contentnode.rest.model.request.PageSaveRequest

public class PageSaveRequest
extends Object

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
PageSaveRequest()
          Constructor used by JAXB
PageSaveRequest(Page page)
          Creates a new PageSaveRequest with a specified page
 
Method Summary
 List<String> getDelete()
          List of tag names of tags, that shall be deleted.
 Page getPage()
          Page to be saved
 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 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 setPage(Page page)
           
 void setUnlock(boolean unlock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageSaveRequest

public PageSaveRequest()
Constructor used by JAXB


PageSaveRequest

public PageSaveRequest(Page page)
Creates a new PageSaveRequest with a specified page

Parameters:
page - The page to save
Method Detail

getPage

public Page getPage()
Page to be saved

Returns:
page to be saved

setPage

public void setPage(Page page)

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

public List<String> getDelete()
List of tag names of tags, that shall be deleted.

Returns:
the delete

setDelete

public void setDelete(List<String> delete)
Set the list of tags that need to be deleted

Parameters:
delete - list of tags that need to be deleted


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.