Class BaseDNTableModel

    • Field Detail

      • NOT_AVAILABLE_SERVER_DOWN

        public static final String NOT_AVAILABLE_SERVER_DOWN
        Key value to identify the case of a value not available because the server is down.
        See Also:
        Constant Field Values
      • NOT_AVAILABLE_AUTHENTICATION_REQUIRED

        public static final String NOT_AVAILABLE_AUTHENTICATION_REQUIRED
        Key value to identify the case of a value not available because authentication is required.
        See Also:
        Constant Field Values
      • NOT_AVAILABLE

        public static final String NOT_AVAILABLE
        Key value to identify the case of a value not available.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BaseDNTableModel

        public BaseDNTableModel​(boolean displayReplicationInformation)
        Constructor for this table model.
        Parameters:
        displayReplicationInformation - whether to display replication. monitoring information or not.
      • BaseDNTableModel

        public BaseDNTableModel​(boolean displayReplicationInformation,
                                boolean wrapHeader)
        Constructor for this table model.
        Parameters:
        displayReplicationInformation - whether to display replication.
        wrapHeader - whether to wrap the headers or not. monitoring information or not.
    • Method Detail

      • setData

        public void setData​(Set<BaseDNDescriptor> newData,
                            ServerDescriptor.ServerStatus status,
                            boolean isAuthenticated)
        Sets the data for this table model.
        Parameters:
        newData - the data for this table model.
        status - the server status.
        isAuthenticated - whether the user provided authentication or not.
      • forceResort

        public void forceResort()
        Updates the table model contents and sorts its contents depending on the sort options set by the user.
        Specified by:
        forceResort in class SortableTableModel
      • compare

        public int compare​(BaseDNDescriptor desc1,
                           BaseDNDescriptor desc2)
        Comparable implementation.
        Specified by:
        compare in interface Comparator<BaseDNDescriptor>
        Parameters:
        desc1 - the first replica descriptor to compare.
        desc2 - the second replica descriptor to compare.
        Returns:
        1 if according to the sorting options set by the user the first base DN descriptor must be put before the second descriptor, 0 if they are equivalent in terms of sorting and -1 if the second descriptor must be put before the first descriptor.
      • isSortAscending

        public boolean isSortAscending()
        Description copied from class: SortableTableModel
        Returns whether the sort is ascending or descending.
        Specified by:
        isSortAscending in class SortableTableModel
        Returns:
        true if the sort is ascending and false otherwise.
      • setSortAscending

        public void setSortAscending​(boolean sortAscending)
        Description copied from class: SortableTableModel
        Sets whether to sort ascending of descending.
        Specified by:
        setSortAscending in class SortableTableModel
        Parameters:
        sortAscending - whether to sort ascending or descending.
      • setSortColumn

        public void setSortColumn​(int sortColumn)
        Description copied from class: SortableTableModel
        Sets the column index used to sort.
        Specified by:
        setSortColumn in class SortableTableModel
        Parameters:
        sortColumn - column index used to sort..