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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodegetData()Form data in JSON formatForm descriptionOptional external IDFolder ID of the formForm typeForm type nameForm languagescom.gentics.contentnode.rest.model.UserUser, who locked the formintTimestamp, since when the form is lockedcom.gentics.contentnode.rest.model.ItemVersionPublished form versioncom.gentics.contentnode.rest.model.FormTimeManagementTime Managementcom.gentics.contentnode.rest.model.ItemVersionCurrent form versionbooleanisLocked()Whether the form is currently lockedbooleanWhether the form was modified after being publishedbooleanisOnline()Whether the form is currently onlinebooleanWhether the form has time management set or notvoidsetData(com.fasterxml.jackson.databind.JsonNode data) Set the form datavoidsetDescription(String description) Set the form descriptionvoidsetExternalId(String externalId) Set the external IDvoidsetFolderId(Integer folderId) Set the folder IDvoidsetFormType(String formType) Set the form typevoidsetFormTypeName(String formTypeName) Set the form type namevoidsetLanguages(List<String> languages) Set the form languagesvoidsetLocked(boolean locked) Set the locked flagvoidsetLockedBy(com.gentics.contentnode.rest.model.User lockedBy) Set the locking uservoidsetLockedSince(int lockedSince) Set lock timestampvoidsetModified(boolean modified) Set the modified flagvoidsetOnline(boolean online) Set the online flagvoidsetPlanned(boolean planned) Set the planned flagvoidsetPublishedVersion(com.gentics.contentnode.rest.model.ItemVersion publishedVersion) Set the published form versionvoidsetTimeManagement(com.gentics.contentnode.rest.model.FormTimeManagement timeManagement) Set time managementvoidsetVersion(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, setUnpublisherMethods 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
-
getExternalId
Optional external ID- Returns:
- external ID
-
setExternalId
Set the external ID- Parameters:
externalId- external ID
-
getFormType
Form type- Returns:
- form type
-
setFormType
Set the form type- Parameters:
formType- form type
-
getFormTypeName
Form type name- Returns:
- form type name
-
setFormTypeName
Set the form type name- Parameters:
formTypeName- name
-
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
-