Class Construct
java.lang.Object
com.gentics.contentnode.rest.model.Construct
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConstructInPackage
Construct
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFlag for automatically enabling new tags, which are created based on this constructFlag for automatically enabling new tags, which are created based on this constructCategory of the constructID of the category of this constructint
getCdate()
Creation Date of the constructDeprecated.use getId() insteadCreator of the constructDescription of this constructMap of translated descriptions (keys are the language codes)int
getEdate()
Last Edit Date of the constructLast Editor of the constructGet the placement mode for edit icons.External editor URLGlobal ID of the constructgetId()
ID of this constructKeyword for this constructHTML tag name, which is used when tags based on this construct are edited with the live editorWhether a tag of this construct may be inserted/nested in other tagsWhether a tag of this construct may be inserted/nested in other tagsWhether this construct may contain other tags.Whether this construct may contain other tags.getName()
Name of this constructMap of translated names (keys are the language codes)getParts()
Parts of the constructTrue if the construct shall be visible in the menu, false if notboolean
Whether the edit icons should be displayed inside the rendered construct.boolean
Whether the tag editor should be opened immediately when the construct is inserted.setAutoEnable
(Boolean autoEnable) Set autoEnable flagsetCategory
(ConstructCategory category) Set the categorysetCategoryId
(Integer categoryId) Set the category IDsetCdate
(int cdate) void
setConstructId
(Integer constructId) Deprecated.use setId() insteadsetCreator
(User creator) setDescription
(String description) Set the descriptionsetDescription
(String description, String language) Set the description in the given languagesetDescriptionI18n
(Map<String, String> i18nDescription) Set translated descriptionssetEdate
(int edate) setEditorControlsInside
(boolean editorControlsInside) Set Whether the edit icons should be displayed inside the rendered construct.setEditorControlStyle
(EditorControlStyle editorControlStyle) Set the placement mode for edit icons.setExternalEditorUrl
(String externalEditorUrl) Set the URL to the external editorsetGlobalId
(String globalId) Set the global IDSet the id of this constructsetKeyword
(String keyword) Sets the keyword for this constructsetLiveEditorTagName
(String liveEditorTagName) Set the live editor tagnamesetMayBeSubtag
(Boolean value) Sets whether a tag of this construct may be a nested in another tag.setMayContainSubtags
(Boolean value) Sets whether this construct may contain other tags.Sets the name for this constructSet the name in the given languagesetNameI18n
(Map<String, String> i18nName) Set translated namessetOpenEditorOnInsert
(boolean openEditorOnInsert) Set whether the tag editor should be opened immediately when the construct is inserted.Set the partssetVisibleInMenu
(Boolean visibleInMenu) Set whether the construct shall be visible in the menutoString()
-
Constructor Details
-
Construct
public Construct()
-
-
Method Details
-
getKeyword
Keyword for this construct- Returns:
- keyword
-
setKeyword
Sets the keyword for this construct- Returns:
- fluent API
-
setName
Sets the name for this construct- Parameters:
name
-- Returns:
- fluent API
-
getMayBeSubtag
Whether a tag of this construct may be inserted/nested in other tags- Returns:
- True or false
-
getMayBeSubtagOptional
Whether a tag of this construct may be inserted/nested in other tags- Returns:
- Optional of flag
-
setMayBeSubtag
Sets whether a tag of this construct may be a nested in another tag.- Parameters:
value
-- Returns:
- fluent API
-
getMayContainSubtags
Whether this construct may contain other tags.- Returns:
-
getMayContainSubtagsOptional
Whether this construct may contain other tags.- Returns:
- Optional of mayContainSubtags flag
-
setMayContainSubtags
Sets whether this construct may contain other tags. This means tags can be inserted into a tag from this construct- Parameters:
value
-- Returns:
- fluent API
-
setDescription
Set the description- Parameters:
description
-- Returns:
- fluent API
-
setConstructId
Deprecated.use setId() insteadSets the constructId for this construct- Parameters:
constructId
-
-
getConstructId
Deprecated.use getId() insteadConstruct id of this construct- Returns:
-
getId
ID of this construct- Returns:
- id
-
setId
Set the id of this construct- Parameters:
id
- id- Returns:
- fluent API
-
getGlobalId
Global ID of the construct- Returns:
- global ID
-
setGlobalId
Set the global ID- Parameters:
globalId
- global ID- Returns:
- fluent API
-
getName
Name of this construct- Returns:
-
getDescription
Description of this construct- Returns:
- description
-
getCreator
Creator of the construct- Returns:
- the creator
-
getCdate
public int getCdate()Creation Date of the construct- Returns:
- the cdate
-
getEditor
Last Editor of the construct- Returns:
- the editor
-
getEdate
public int getEdate()Last Edit Date of the construct- Returns:
- the edate
-
setCreator
- Parameters:
creator
- the creator to set- Returns:
- fluent API
-
setCdate
- Parameters:
cdate
- the cdate to set- Returns:
- fluent API
-
setEditor
- Parameters:
editor
- the editor to set- Returns:
- fluent API
-
setEdate
- Parameters:
edate
- the edate to set- Returns:
- fluent API
-
getCategory
Category of the construct- Returns:
- category
-
setCategory
Set the category- Parameters:
category
- category- Returns:
- fluent API
-
getExternalEditorUrl
External editor URL- Returns:
- URL
-
setExternalEditorUrl
Set the URL to the external editor- Parameters:
externalEditorUrl
- URL- Returns:
- fluent API
-
getParts
Parts of the construct- Returns:
- parts
-
setParts
Set the parts- Parameters:
parts
- parts- Returns:
- fluent API
-
getVisibleInMenu
True if the construct shall be visible in the menu, false if not- Returns:
- true for visible constructs, false for hidden
-
setVisibleInMenu
Set whether the construct shall be visible in the menu- Parameters:
visibleInMenu
- true for visible, false for hidden- Returns:
- fluent API
-
getNameI18n
Map of translated names (keys are the language codes)- Returns:
- name map
-
setNameI18n
Set translated names- Parameters:
i18nName
- map of translations- Returns:
- fluent API
-
setName
Set the name in the given language- Parameters:
name
- namelanguage
- language- Returns:
- fluent API
-
getDescriptionI18n
Map of translated descriptions (keys are the language codes)- Returns:
- description map
-
setDescriptionI18n
Set translated descriptions- Parameters:
i18nDescription
- map of translations- Returns:
- fluent API
-
setDescription
Set the description in the given language- Parameters:
description
- descriptionlanguage
- language- Returns:
- fluent API
-
getAutoEnable
Flag for automatically enabling new tags, which are created based on this construct- Returns:
- flag
-
getAutoEnableOptional
Flag for automatically enabling new tags, which are created based on this construct- Returns:
- Optional of flag
-
setAutoEnable
Set autoEnable flag- Parameters:
autoEnable
- flag- Returns:
- fluent API
-
getLiveEditorTagName
HTML tag name, which is used when tags based on this construct are edited with the live editor- Returns:
- tag name
-
setLiveEditorTagName
Set the live editor tagname- Parameters:
liveEditorTagName
- tag name- Returns:
- fluent API
-
isOpenEditorOnInsert
public boolean isOpenEditorOnInsert()Whether the tag editor should be opened immediately when the construct is inserted.- Returns:
- Whether the tag editor should be opened immediately when the construct is inserted.
-
setOpenEditorOnInsert
Set whether the tag editor should be opened immediately when the construct is inserted.- Parameters:
openEditorOnInsert
- Whether the tag editor should be opened immediately when the construct is inserted.- Returns:
- fluent API
-
getEditorControlStyle
Get the placement mode for edit icons.- Returns:
- The placement mode for edit icons.
-
setEditorControlStyle
Set the placement mode for edit icons.- Parameters:
editorControlStyle
- The placement mode for edit icons.- Returns:
- fluent API
-
isEditorControlsInside
public boolean isEditorControlsInside()Whether the edit icons should be displayed inside the rendered construct.- Returns:
- Whether the edit icons should be displayed inside the rendered construct.
-
setEditorControlsInside
Set Whether the edit icons should be displayed inside the rendered construct.- Parameters:
editorControlsInside
- Whether the edit icons should be displayed inside the rendered construct.- Returns:
- fluent API
-
toString
-
getCategoryId
ID of the category of this construct- Returns:
- category ID
-
setCategoryId
Set the category ID- Parameters:
categoryId
- ID- Returns:
- fluent API
-