Class Construct

java.lang.Object
com.gentics.contentnode.rest.model.Construct
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConstructInPackage

public class Construct extends Object implements Serializable
Construct
See Also:
  • Constructor Details

    • Construct

      public Construct()
  • Method Details

    • getKeyword

      public String getKeyword()
      Keyword for this construct
      Returns:
      keyword
    • setKeyword

      public Construct setKeyword(String keyword)
      Sets the keyword for this construct
      Returns:
      fluent API
    • setName

      public Construct setName(String name)
      Sets the name for this construct
      Parameters:
      name -
      Returns:
      fluent API
    • getMayBeSubtag

      public Boolean getMayBeSubtag()
      Whether a tag of this construct may be inserted/nested in other tags
      Returns:
      True or false
    • getMayBeSubtagOptional

      public Optional<Boolean> getMayBeSubtagOptional()
      Whether a tag of this construct may be inserted/nested in other tags
      Returns:
      Optional of flag
    • setMayBeSubtag

      public Construct setMayBeSubtag(Boolean value)
      Sets whether a tag of this construct may be a nested in another tag.
      Parameters:
      value -
      Returns:
      fluent API
    • getMayContainSubtags

      public Boolean getMayContainSubtags()
      Whether this construct may contain other tags.
      Returns:
    • getMayContainSubtagsOptional

      public Optional<Boolean> getMayContainSubtagsOptional()
      Whether this construct may contain other tags.
      Returns:
      Optional of mayContainSubtags flag
    • setMayContainSubtags

      public Construct setMayContainSubtags(Boolean value)
      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

      public Construct setDescription(String description)
      Set the description
      Parameters:
      description -
      Returns:
      fluent API
    • setConstructId

      public void setConstructId(Integer constructId)
      Deprecated.
      use setId() instead
      Sets the constructId for this construct
      Parameters:
      constructId -
    • getConstructId

      public Integer getConstructId()
      Deprecated.
      use getId() instead
      Construct id of this construct
      Returns:
    • getId

      public Integer getId()
      ID of this construct
      Returns:
      id
    • setId

      public Construct setId(Integer id)
      Set the id of this construct
      Parameters:
      id - id
      Returns:
      fluent API
    • getGlobalId

      public String getGlobalId()
      Global ID of the construct
      Returns:
      global ID
    • setGlobalId

      public Construct setGlobalId(String globalId)
      Set the global ID
      Parameters:
      globalId - global ID
      Returns:
      fluent API
    • getName

      public String getName()
      Name of this construct
      Returns:
    • getDescription

      public String getDescription()
      Description of this construct
      Returns:
      description
    • getCreator

      public User getCreator()
      Creator of the construct
      Returns:
      the creator
    • getCdate

      public int getCdate()
      Creation Date of the construct
      Returns:
      the cdate
    • getEditor

      public User getEditor()
      Last Editor of the construct
      Returns:
      the editor
    • getEdate

      public int getEdate()
      Last Edit Date of the construct
      Returns:
      the edate
    • setCreator

      public Construct setCreator(User creator)
      Parameters:
      creator - the creator to set
      Returns:
      fluent API
    • setCdate

      public Construct setCdate(int cdate)
      Parameters:
      cdate - the cdate to set
      Returns:
      fluent API
    • setEditor

      public Construct setEditor(User editor)
      Parameters:
      editor - the editor to set
      Returns:
      fluent API
    • setEdate

      public Construct setEdate(int edate)
      Parameters:
      edate - the edate to set
      Returns:
      fluent API
    • getCategory

      public ConstructCategory getCategory()
      Category of the construct
      Returns:
      category
    • setCategory

      public Construct setCategory(ConstructCategory category)
      Set the category
      Parameters:
      category - category
      Returns:
      fluent API
    • getExternalEditorUrl

      public String getExternalEditorUrl()
      External editor URL
      Returns:
      URL
    • setExternalEditorUrl

      public Construct setExternalEditorUrl(String externalEditorUrl)
      Set the URL to the external editor
      Parameters:
      externalEditorUrl - URL
      Returns:
      fluent API
    • getParts

      public List<Part> getParts()
      Parts of the construct
      Returns:
      parts
    • setParts

      public Construct setParts(List<Part> parts)
      Set the parts
      Parameters:
      parts - parts
      Returns:
      fluent API
    • getVisibleInMenu

      public Boolean getVisibleInMenu()
      True if the construct shall be visible in the menu, false if not
      Returns:
      true for visible constructs, false for hidden
    • setVisibleInMenu

      public Construct setVisibleInMenu(Boolean visibleInMenu)
      Set whether the construct shall be visible in the menu
      Parameters:
      visibleInMenu - true for visible, false for hidden
      Returns:
      fluent API
    • getNameI18n

      public Map<String,String> getNameI18n()
      Map of translated names (keys are the language codes)
      Returns:
      name map
    • setNameI18n

      public Construct setNameI18n(Map<String,String> i18nName)
      Set translated names
      Parameters:
      i18nName - map of translations
      Returns:
      fluent API
    • setName

      public Construct setName(String name, String language)
      Set the name in the given language
      Parameters:
      name - name
      language - language
      Returns:
      fluent API
    • getDescriptionI18n

      public Map<String,String> getDescriptionI18n()
      Map of translated descriptions (keys are the language codes)
      Returns:
      description map
    • setDescriptionI18n

      public Construct setDescriptionI18n(Map<String,String> i18nDescription)
      Set translated descriptions
      Parameters:
      i18nDescription - map of translations
      Returns:
      fluent API
    • setDescription

      public Construct setDescription(String description, String language)
      Set the description in the given language
      Parameters:
      description - description
      language - language
      Returns:
      fluent API
    • getAutoEnable

      public Boolean getAutoEnable()
      Flag for automatically enabling new tags, which are created based on this construct
      Returns:
      flag
    • getAutoEnableOptional

      public Optional<Boolean> getAutoEnableOptional()
      Flag for automatically enabling new tags, which are created based on this construct
      Returns:
      Optional of flag
    • setAutoEnable

      public Construct setAutoEnable(Boolean autoEnable)
      Set autoEnable flag
      Parameters:
      autoEnable - flag
      Returns:
      fluent API
    • getLiveEditorTagName

      public String getLiveEditorTagName()
      HTML tag name, which is used when tags based on this construct are edited with the live editor
      Returns:
      tag name
    • setLiveEditorTagName

      public Construct setLiveEditorTagName(String liveEditorTagName)
      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

      public Construct setOpenEditorOnInsert(boolean openEditorOnInsert)
      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

      public EditorControlStyle getEditorControlStyle()
      Get the placement mode for edit icons.
      Returns:
      The placement mode for edit icons.
    • setEditorControlStyle

      public Construct setEditorControlStyle(EditorControlStyle editorControlStyle)
      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

      public Construct setEditorControlsInside(boolean editorControlsInside)
      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

      public String toString()
      Overrides:
      toString in class Object
    • getCategoryId

      public Integer getCategoryId()
      ID of the category of this construct
      Returns:
      category ID
    • setCategoryId

      public Construct setCategoryId(Integer categoryId)
      Set the category ID
      Parameters:
      categoryId - ID
      Returns:
      fluent API