Class SecurityTable

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
com.jidesoft.grid.JideTable
com.inductiveautomation.ignition.designer.gui.tools.SecurityTable
All Implemented Interfaces:
com.jidesoft.grid.IndexChangeListener, com.jidesoft.grid.TableAdapter, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class SecurityTable extends com.jidesoft.grid.JideTable
Table used to choose security zones and roles
See Also:
  • Constructor Details

  • Method Details

    • addEmptyRow

      public void addEmptyRow()
      Convenience method to add an empty row to the table. Most usages will want a new table to start with an empty row, meaning that any role and any zone will match.
    • removeSelectedRows

      public void removeSelectedRows()
    • refreshOptions

      public void refreshOptions()
      Call this if the possible zones and roles for the dropdowns may have changed.
    • getAvailableZones

      public List<String> getAvailableZones()
      The security zones offered by the zone column's dropdown, as of the last successful lookup.
      Returns:
      an immutable list, empty until the first lookup succeeds — refreshOptions() swallows a failed lookup by design, so empty means "none configured or none reachable", not necessarily "the gateway has no zones".
    • getAvailableRoles

      public List<String> getAvailableRoles()
      The roles offered by the role column's dropdown, as of the last successful lookup.
      Returns:
      an immutable list, empty until the first lookup succeeds — see getAvailableZones() for what empty means.
    • update

      public void update(@Nullable List<ZoneRoleRequirement> permissions)
      Update the table with a new list of ZoneRoleRequirements. This will also update the zones/roles from the gateway for dropdowns.
      Parameters:
      permissions - List of zones and roles to put in the table. May be null.
    • getPermissions

      public List<ZoneRoleRequirement> getPermissions()
      Get the zones/roles from the table.
      Returns:
      List of ZoneRoleRequirements. Not null, but may be empty.