BaseDNTableModel.java revision 3853
3853N/A * The contents of this file are subject to the terms of the 3853N/A * Common Development and Distribution License, Version 1.0 only 3853N/A * (the "License"). You may not use this file except in compliance 3853N/A * You can obtain a copy of the license at 3853N/A * See the License for the specific language governing permissions 3853N/A * and limitations under the License. 3853N/A * When distributing Covered Code, include this CDDL HEADER in each 3853N/A * file and include the License file at 3853N/A * add the following below this CDDL HEADER, with the fields enclosed 3853N/A * by brackets "[]" replaced with your own identifying information: 3853N/A * Portions Copyright [yyyy] [name of copyright owner] 3853N/A * Copyright 2008 Sun Microsystems, Inc. 3853N/A * The table model used to display all the base DNs. 3853N/A * Key value to identify the case of a value not available because the server 3853N/A * Key value to identify the case of a value not available because 3853N/A * authentication is required. 3853N/A "NOT_AVAILABLE_AUTHENTICATION_REQUIRED";
3853N/A * Key value to identify the case of a value not available. 3853N/A * Constructor for this table model. 3853N/A * @param displayReplicationInformation whether to display replication. 3853N/A * monitoring information or not. 3853N/A * Constructor for this table model. 3853N/A * @param displayReplicationInformation whether to display replication. 3853N/A * @param wrapHeader whether to wrap the headers or not. 3853N/A * monitoring information or not. 3853N/A * Sets the data for this table model. 3853N/A * @param newData the data for this table model. 3853N/A * @param status the server status. 3853N/A * @param isAuthenticated whether the user provided authentication or not. 3853N/A * Updates the table model contents and sorts its contents depending on the 3853N/A * sort options set by the user. 3853N/A * Comparable implementation. 3853N/A * @param desc1 the first replica descriptor to compare. 3853N/A * @param desc2 the second replica descriptor to compare. 3853N/A * @return 1 if according to the sorting options set by the user the first 3853N/A * base DN descriptor must be put before the second descriptor, 0 if they 3853N/A * are equivalent in terms of sorting and -1 if the second descriptor must 3853N/A * be put before the first descriptor. 3853N/A * Updates the array data. This includes resorting it. 3853N/A * Returns whether the sort is ascending or descending. 3853N/A * @return <CODE>true</CODE> if the sort is ascending and <CODE>false</CODE> 3853N/A * Sets whether to sort ascending of descending. 3853N/A * @param sortAscending whether to sort ascending or descending. 3853N/A * Returns the column index used to sort. 3853N/A * @return the column index used to sort. 3853N/A * Sets the column index used to sort. 3853N/A * @param sortColumn column index used to sort.. 3853N/A * Several comparison methods to be able to sort the table model. 3853N/A * Returns the Object describing the number of entries of a given Base DN. 3853N/A * The Object will be an Integer. 3853N/A * @param rep the Base DN object to handle. 3853N/A * @return the Object describing the number of entries of a given Base DN. 3853N/A * Returns the Object describing the number of missing changes of a given Base 3853N/A * DN. The Object will be a String unless the base DN is 3853N/A * replicated and we could not find a valid value (in this case we return 3853N/A * an Integer with the invalid value). 3853N/A * @param rep the Base DN object to handle. 3853N/A * @return the Object describing the number of missing changes of 3853N/A * Returns the Object describing the age of oldest missing change of 3853N/A * a given Base DN. The Object will be a String unless the base DN is 3853N/A * replicated and we could not find a valid value (in this case we return 3853N/A * an Integer with the invalid value). 3853N/A * @param rep the Base DN object to handle. 3853N/A * @return the Object describing the age of oldest missing change of 3853N/A * Returns the localized String describing the replication state of 3853N/A * @param rep the Base DN object to handle. 3853N/A * @return the localized String describing the replication state of