java.lang.Object
com.gentics.contentnode.rest.model.Part
All Implemented Interfaces:
Serializable

public class Part extends Object implements Serializable
Rest Model for parts
See Also:
  • Constructor Details

    • Part

      public Part()
      Empty constructor
  • Method Details

    • getName

      public String getName()
      Part name
      Returns:
      the name
    • setName

      public Part setName(String name)
      Parameters:
      name - the name to set
      Returns:
    • getKeyword

      public String getKeyword()
      Part keyword
      Returns:
      the keyword
    • setKeyword

      public Part setKeyword(String keyword)
      Parameters:
      keyword - the keyword to set
      Returns:
    • isHidden

      public boolean isHidden()
      True if the part is hidden
      Returns:
      the hidden
    • setHidden

      public Part setHidden(boolean hidden)
      Parameters:
      hidden - the hidden to set
      Returns:
    • isEditable

      public boolean isEditable()
      True if the part is editable
      Returns:
      the editable
    • setEditable

      public Part setEditable(boolean editable)
      Parameters:
      editable - the editable to set
      Returns:
    • isLiveEditable

      public boolean isLiveEditable()
      True if the part is live (inline) editable
      Returns:
      the liveEditable
    • setLiveEditable

      public Part setLiveEditable(boolean liveEditable)
      Parameters:
      liveEditable - the liveEditable to set
      Returns:
    • isMandatory

      public boolean isMandatory()
      True if the part is mandatory
      Returns:
      mandatory flag
    • setMandatory

      public Part setMandatory(boolean mandatory)
      Set the mandatory flag
      Parameters:
      mandatory - flag
      Returns:
    • getType

      public Property.Type getType()
      Part type
      Returns:
      type
    • setType

      public Part setType(Property.Type type)
      Set the type
      Parameters:
      type - type
      Returns:
    • getTypeId

      public int getTypeId()
      Part type ID
      Returns:
      type ID
    • setTypeId

      public Part setTypeId(int typeId)
      Set the part type ID
      Parameters:
      typeId - type ID
      Returns:
    • getId

      public Integer getId()
      Local ID of the part
      Returns:
      local id
    • setId

      public Part setId(Integer id)
      Set the local ID
      Parameters:
      id - local id
      Returns:
    • getGlobalId

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

      public Part setGlobalId(String globalId)
      Set the global ID
      Parameters:
      globalId - global ID
      Returns:
    • getDefaultProperty

      public Property getDefaultProperty()
      Default property
      Returns:
      default property
    • setDefaultProperty

      public Part setDefaultProperty(Property defaultProperty)
      Set the default property
      Parameters:
      defaultProperty - default property
      Returns:
    • getRegex

      public RegexModel getRegex()
      Regular expression definition for validation of text parttypes
      Returns:
      regular expression
    • setRegex

      public Part setRegex(RegexModel regex)
      Set regular expression
      Parameters:
      regex - regular expression
      Returns:
    • isHideInEditor

      public boolean isHideInEditor()
      Flag for hiding the part in the Tag Editor
      Returns:
      flag
    • setHideInEditor

      public Part setHideInEditor(boolean hideInEditor)
      Set hideInEditor flag
      Parameters:
      hideInEditor - flag
      Returns:
    • getExternalEditorUrl

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

      public Part setExternalEditorUrl(String externalEditorUrl)
      Set the URL to the external editor
      Parameters:
      externalEditorUrl - URL
      Returns:
    • getOptions

      public List<SelectOption> getOptions()
      Possible options
      Returns:
      the options
    • setOptions

      public Part setOptions(List<SelectOption> options)
      Parameters:
      options - the options to set
      Returns:
    • getOverviewSettings

      public OverviewSetting getOverviewSettings()
      Overview settings (if type is OVERVIEW)
      Returns:
      overview settings
    • setOverviewSettings

      public Part setOverviewSettings(OverviewSetting overviewSettings)
      Set overview settings
      Parameters:
      overviewSettings - overview settings
      Returns:
    • getSelectSettings

      public SelectSetting getSelectSettings()
      Selection settings (if type is SELECT or MULTISELECT)
      Returns:
      selection settings
    • setSelectSettings

      public Part setSelectSettings(SelectSetting selectSettings)
      Set selection settings
      Parameters:
      selectSettings - selection settings
      Returns:
    • getMarkupLanguageId

      public Integer getMarkupLanguageId()
      Optional markup language ID for restricting the part to a specific template markup
      Returns:
      markup language ID
    • setMarkupLanguageId

      public Part setMarkupLanguageId(Integer markupLanguageId)
      Set the markup language ID
      Parameters:
      markupLanguageId - ID
      Returns:
      fluent API
    • getHtmlClass

      public String getHtmlClass()
      Returns:
      html class
    • setHtmlClass

      public Part setHtmlClass(String htmlClass)
      Set the html class
      Parameters:
      htmlClass - html class
      Returns:
      fluent API
    • getPartOrder

      public Integer getPartOrder()
      Part order
      Returns:
      order
    • setPartOrder

      public Part setPartOrder(Integer partOrder)
      Set the part order
      Parameters:
      partOrder - order
      Returns:
      fluent API
    • getPolicy

      public String getPolicy()
      Validation policy
      Returns:
      validation policy
    • setPolicy

      public Part setPolicy(String policy)
      Set the validation policy
      Parameters:
      policy - policy
      Returns:
      fluent API
    • getNameI18n

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

      public Part setNameI18n(Map<String,String> nameI18n)
      Set translated names
      Parameters:
      nameI18n - translation map
      Returns:
      fluent API
    • setName

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