Interface Content2ScriptContext

All Superinterfaces:
BaseContext, ClientScriptContext, GuiScriptContext, ProjectScriptContext, ScriptContext, SpecialistsBroker

public interface Content2ScriptContext extends GuiScriptContext
Scripts which are started on an contentstore entity entry (e.g. in java client) have an instance of Content2ScriptContext stored in variable 'context'.
Since:
3.0
  • Method Details

    • getEntityType

      EntityType getEntityType()
      Returns the entity type this content2 script context belongs to.
      Returns:
      The entity type this content2 script context belongs to.
      Since:
      4.0
    • getData

      List<? extends Entity> getData()
      Returns the list of entities respecting defined filter and ordering of the underlying Content2 element.
      Shortcut for getData(getProject().getMasterLanguage())).
      Returns:
      The list of entities respecting defined filter and ordering of the underlying Content2 element.
      Since:
      3.0
      See Also:
    • getData

      List<? extends Entity> getData(@NotNull @NotNull Language language)
      Returns the list of entities respecting defined filter and ordering of the underlying Content2 element.
      Parameters:
      language - The project language to be used for select.
      Returns:
      The list of entities respecting defined filter and ordering of the underlying Content2 element.
      Since:
      4.2.442
      See Also:
    • getSelectedRow

      @Nullable @Nullable Entity getSelectedRow()
      Returns:
      the current selected row object or null, if no row is selected or no gui is attached
      Since:
      3.0