Interface ClientScriptContext

All Superinterfaces:
BaseContext, ProjectScriptContext, ScriptContext, SpecialistsBroker
All Known Subinterfaces:
Content2ScriptContext, GuiScriptContext, WorkflowScriptContext

public interface ClientScriptContext extends ProjectScriptContext
Script context providing the current user and a context element.
Since:
3.1.170
  • Method Details

    • getUser

      User getUser()
      Provides the user object for this context.
      Returns:
      The user object.
      Since:
      3.1.170
    • getUserGroups

      Group[] getUserGroups()
      Provides the array of groups for this context.
      Returns:
      The array of user groups.
      Since:
      3.1.170
    • getStoreElement

      @Deprecated StoreElement getStoreElement()
      Deprecated.
      since 5.1.104, use getElement().
      Since:
      3.1.170
    • getElement

      IDProvider getElement()
      The element this context is operating on. In contrast to getStoreElement() this method returns instances of Dataset where getStoreElement() returns an instances of Content2.
      Returns:
      the context element.
      Since:
      5.1.104