Interface TableTemplate

All Superinterfaces:
ChannelSourceProvider, Comparable<StoreElement>, DatasetProvider, GomSourceProvider, HistoryProvider, IDProvider, MasterTemplate, PackagePoolItem, PreviewImageProvider, Referenceable, RulesetContainer, RulesetContainer, SectionTemplate, SnippetContainer, StoreElement, Template, TemplateContentProvider, TemplateStoreElement, Workflowable

public interface TableTemplate extends SectionTemplate, DatasetProvider
Interface for templates defining GUI for content store.
Since:
3.0.1
  • Field Details

  • Method Details

    • getEntityType

      @NotNull @NotNull EntityType getEntityType() throws de.espirit.firstspirit.access.database.EntityTypeNotFoundException
      Provides the entity type (the db table) this template bases upon.
      Specified by:
      getEntityType in interface DatasetProvider
      Returns:
      The entity type.
      Throws:
      de.espirit.firstspirit.access.database.EntityTypeNotFoundException - when a referenced entity type (database table) does not exist.
      Since:
      4.0.13
    • getRefKey

      String getRefKey()
      Provides a reference key of this template.
      Returns:
      The reference key.
      Since:
      3.0
    • getSchema

      @NotNull @NotNull Schema getSchema()
      Gets the schema.
      Specified by:
      getSchema in interface DatasetProvider
      Returns:
      Provides the schema.
      Since:
      3.0
    • getMappings

      @NotNull @NotNull TableTemplate.Mapping[] getMappings()
      Shortcut for getMappings(false)
      Since:
      3.0
    • getMappings

      @NotNull @NotNull TableTemplate.Mapping[] getMappings(boolean release)
      Provides an array of TableTemplate.Mappings, whose entries are safe to change with no feedback to this template.
      Since:
      3.0.127
    • getMappings

      TableTemplate.Mapping[] getMappings(TableTemplate.Mapping[] oldMappings, GomEditorProvider gomProvider) throws IOException
      Throws:
      IOException
      Since:
      4.0
    • getMappings

      TableTemplate.Mapping[] getMappings(TableTemplate.Mapping[] oldMappings, GomEditorProvider gomProvider, boolean release) throws IOException
      Get the TableTemplate.Mappings for this template based on the given GOM provider. The provided entries are safe to change with no feedback to this template.
      Parameters:
      oldMappings - The old mappings.
      gomProvider - The GOM provider object.
      release - If true, returns on release state.
      Returns:
      The mappings for this template.
      Throws:
      IOException - If the mappings could not be read.
      Since:
      4.0
    • setMappings

      void setMappings(TableTemplate.Mapping[] mappings)
      Set the TableTemplate.Mappings for this template.
      Since:
      3.0
    • getUidType

      @NotNull @NotNull IDProvider.UidType getUidType()
      Returns UID_TYPE.
      Specified by:
      getUidType in interface IDProvider
      Returns:
      UID_TYPE
      Since:
      4.0.20
      See Also:
    • getRowHeight

      int getRowHeight()
      Height of displayed rows (in line numbers). Default value is 1.
      Returns:
      row height in number of lines
      Since:
      4.1.27
    • setRowHeight

      void setRowHeight(int value)
      Set the height of the displayed rows to the given value.
      Parameters:
      value - The height that should be set for the displayed rows.
      Throws:
      IllegalArgumentException - if provided value is below 1
      Since:
      4.1.27
      See Also:
    • isCopyAllowed

      boolean isCopyAllowed()
      Returns true if the user is allowed to copy entities.
      Since:
      4.1.18
    • setCopyAllowed

      void setCopyAllowed(boolean value)
      Enable or disable the possibility to copy entities.
      Parameters:
      value - new state
      Since:
      4.1.18
      See Also:
    • getTemplateId

      long getTemplateId()
      Get the project local id of this template.
      Specified by:
      getTemplateId in interface MasterTemplate
      Returns:
      Project local id of this template.
      Since:
      3.0