Class FormModel
java.lang.Object
com.gentics.contentnode.rest.model.ContentNodeItem
com.gentics.contentnode.rest.model.PublishableContentItem
com.gentics.contentnode.rest.model.form.FormModel
- All Implemented Interfaces:
Serializable
public class FormModel
extends com.gentics.contentnode.rest.model.PublishableContentItem
REST Model of a form
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
com.gentics.contentnode.rest.model.ContentNodeItem.ItemType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
getData()
Form data in JSON formatForm descriptionFolder ID of the formForm languagescom.gentics.contentnode.rest.model.User
User, who locked the formint
Timestamp, since when the form is lockedcom.gentics.contentnode.rest.model.ItemVersion
Published form versionNode ID of the optional success pageID of the optional success pagecom.gentics.contentnode.rest.model.FormTimeManagement
Time Managementcom.gentics.contentnode.rest.model.ItemVersion
Current form versionboolean
isLocked()
Whether the form is currently lockedboolean
Whether the form was modified after being publishedboolean
isOnline()
Whether the form is currently onlineboolean
Whether the form has time management set or notvoid
setData
(com.fasterxml.jackson.databind.JsonNode data) Set the form datavoid
setDescription
(String description) Set the form descriptionvoid
setFolderId
(Integer folderId) Set the folder IDvoid
setLanguages
(List<String> languages) Set the form languagesvoid
setLocked
(boolean locked) Set the locked flagvoid
setLockedBy
(com.gentics.contentnode.rest.model.User lockedBy) Set the locking uservoid
setLockedSince
(int lockedSince) Set lock timestampvoid
setModified
(boolean modified) Set the modified flagvoid
setOnline
(boolean online) Set the online flagvoid
setPlanned
(boolean planned) Set the planned flagvoid
setPublishedVersion
(com.gentics.contentnode.rest.model.ItemVersion publishedVersion) Set the published form versionvoid
setSuccessNodeId
(Integer successNodeId) Set the success page node IDvoid
setSuccessPageId
(Integer successPageId) Set the success page IDvoid
setTimeManagement
(com.gentics.contentnode.rest.model.FormTimeManagement timeManagement) Set time managementvoid
setVersion
(com.gentics.contentnode.rest.model.ItemVersion version) Set the current form versionMethods inherited from class com.gentics.contentnode.rest.model.PublishableContentItem
getFuturePublisher, getFutureUnpublisher, getPdate, getPublisher, getUnpublishedDate, getUnpublisher, setFuturePublisher, setFutureUnpublisher, setPdate, setPublisher, setUnpublishedDate, setUnpublisher
Methods inherited from class com.gentics.contentnode.rest.model.ContentNodeItem
getCdate, getCreator, getDeleted, getEdate, getEditor, getFolderDeleted, getGlobalId, getId, getMasterDeleted, getName, getType, setCdate, setCreator, setDeleted, setEdate, setEditor, setFolderDeleted, setGlobalId, setId, setMasterDeleted, setName, setType
-
Constructor Details
-
FormModel
public FormModel()Constructor used by JAXB
-
-
Method Details
-
getDescription
Form description- Returns:
- the description
-
setDescription
Set the form description- Parameters:
description
- the description to set
-
getFolderId
Folder ID of the form- Returns:
- the folderId
-
setFolderId
Set the folder ID- Parameters:
folderId
- the folderId to set
-
getLanguages
Form languages- Returns:
- form languages
-
setLanguages
Set the form languages- Parameters:
languages
- form languages
-
getData
public com.fasterxml.jackson.databind.JsonNode getData()Form data in JSON format- Returns:
- form data
-
setData
public void setData(com.fasterxml.jackson.databind.JsonNode data) Set the form data- Parameters:
data
- form data
-
isOnline
public boolean isOnline()Whether the form is currently online- Returns:
- online flag
-
setOnline
public void setOnline(boolean online) Set the online flag- Parameters:
online
- flag
-
isModified
public boolean isModified()Whether the form was modified after being published- Returns:
- modified flag
-
setModified
public void setModified(boolean modified) Set the modified flag- Parameters:
modified
- flag
-
isPlanned
public boolean isPlanned()Whether the form has time management set or not- Returns:
- true for time management
-
setPlanned
public void setPlanned(boolean planned) Set the planned flag- Parameters:
planned
- flag
-
isLocked
public boolean isLocked()Whether the form is currently locked- Returns:
- locked flag
-
setLocked
public void setLocked(boolean locked) Set the locked flag- Parameters:
locked
- flag
-
getLockedSince
public int getLockedSince()Timestamp, since when the form is locked- Returns:
- locked timestamp
-
setLockedSince
public void setLockedSince(int lockedSince) Set lock timestamp- Parameters:
lockedSince
- timestamp
-
getLockedBy
public com.gentics.contentnode.rest.model.User getLockedBy()User, who locked the form- Returns:
- locking user
-
setLockedBy
public void setLockedBy(com.gentics.contentnode.rest.model.User lockedBy) Set the locking user- Parameters:
lockedBy
- user
-
getVersion
public com.gentics.contentnode.rest.model.ItemVersion getVersion()Current form version- Returns:
- the currentVersion
-
setVersion
public void setVersion(com.gentics.contentnode.rest.model.ItemVersion version) Set the current form version- Parameters:
version
- the version to set
-
getPublishedVersion
public com.gentics.contentnode.rest.model.ItemVersion getPublishedVersion()Published form version- Returns:
- the publishedVersion
-
setPublishedVersion
public void setPublishedVersion(com.gentics.contentnode.rest.model.ItemVersion publishedVersion) Set the published form version- Parameters:
publishedVersion
- the publishedVersion to set
-
getTimeManagement
public com.gentics.contentnode.rest.model.FormTimeManagement getTimeManagement()Time Management- Returns:
- the timeManagement
-
setTimeManagement
public void setTimeManagement(com.gentics.contentnode.rest.model.FormTimeManagement timeManagement) Set time management- Parameters:
timeManagement
- time management
-
getSuccessPageId
ID of the optional success page- Returns:
- page ID or null
-
setSuccessPageId
Set the success page ID- Parameters:
successPageId
- ID
-
getSuccessNodeId
Node ID of the optional success page- Returns:
- node ID or null
-
setSuccessNodeId
Set the success page node ID- Parameters:
successNodeId
- node ID
-