Interface IAllTemplatesViewerFacade

All Known Implementing Classes:
AllTemplatesSection

public interface IAllTemplatesViewerFacade
A facade interface for control all templates viewer from all templates controller
  • Method Details

    • getSelection

      List<RestrictionTemplate> getSelection()
      Gets selection. In grouping mode it is return template viewer selection
      Returns:
      returns selected restriction templates. Cannot return null, if no templates selected returns empty list
    • getFocusedSelection

      List<RestrictionTemplate> getFocusedSelection()
      Gets focused selection. In grouping mode if condition viewer is focused then return all templates from selected descriptor, otherwise returns template viewer selection
      Returns:
      returns selected restriction templates on focused viewer regardless of the value on another viewers. Cannot return null, if no templates selected returns empty list
    • updateGroupingMode

      void updateGroupingMode()
      Updates the grouping mode
    • isEditGrouping

      boolean isEditGrouping()
      Gets editing mode: grouping or no. It is used by controller as the same condition checkbox default value
      Returns:
      true if editing is grouping, false otherwise
    • initOrClear

      void initOrClear()
      Inits empty viewers or clears it. It is used by controller in beginning at perform refresh
    • addTemplates

      void addTemplates(Collection<RestrictionTemplate> templates)
      Adds templates. No affects for already added templates
      Parameters:
      templates - templates to add. Cannot be null
    • updateTemplates

      void updateTemplates(Collection<RestrictionTemplate> templates)
      Updates given templates in the viewer. Cannot be null
      Parameters:
      templates - restriction templates. Cannot be null
    • removeRefresh

      void removeRefresh()
      Removes deleted templates from viewer
    • filterBySubsystems

      void filterBySubsystems(Collection<Subsystem> subsystems, boolean isIncludeNotIncludedInSubsystems)
      Enable filter by subsystems.
      Parameters:
      sybsystems - subsystems. Cannot be null
    • disableFilterBySubsystems

      void disableFilterBySubsystems()
      Disables filter by subsystems.