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] 5035N/A * Copyright 2008-2010 Sun Microsystems, Inc. 5035N/A * Abstract class used to re-factor some code between the classes that are used 3853N/A * Read-only backend name label. 3853N/A * Base Object scope radio button. 3853N/A * Single Level scope radio button. 3853N/A * Subordinate subtree scope radio button. 3853N/A * Whole subtree scope radio button. 3853N/A * Max block size text field. 3853N/A * The list containing the sort order elements. 3853N/A * Ascending order combo box. 3853N/A * Combo box containing the sort order. 3853N/A * The relative component that must be used to center the parent dialog of 3853N/A * Custom attributes message. 3853N/A * Standard attributes message. 3853N/A * The list of standard attribute names. 3853N/A * The list of configuration attribute names. 3853N/A * The list of custom attribute names. 3853N/A * Minimum value for max block size. 3853N/A * Maximum value for max block size. 3853N/A * Default value for max block size. 3853N/A * @param backendID the backend ID where the index is defined (or will be 3853N/A * @param relativeComponent the relative component where the dialog containing 3853N/A * this panel must be centered. 3919N/A * Sets the name of the backend where the index is defined or will be defined. 3919N/A * @param backendID the ID of the backend. 3853N/A * Returns the LDIF representing the new index. 3853N/A * @param indexName the name of the index. 3853N/A * @return the LDIF representing the new index. 3853N/A * Returns the scope of the VLV index as it appears on the panel. 3853N/A * @return the scope of the VLV index as it appears on the panel. 3853N/A * Returns the list of VLV sort order elements as they are displayed in the 3853N/A * @return the list of VLV sort order elements as they are displayed in the 3853N/A * Returns the string representation for the provided list of VLV sort order. 3853N/A * @param sortOrder the list of VLV sort order elements. 3853N/A * @return the string representation for the provided list of VLV sort order. 3919N/A * Updates the layout with the provided server descriptor. 3919N/A * @param desc the server descriptor. 3853N/A * @return <CODE>true</CODE> if an error has been displayed and 3853N/A * <CODE>false</CODE> otherwise. 3853N/A // Ignore configuration attr names 3853N/A if (configurationAttrNames.size() > 0) 3853N/A newElements.add(new CategorizedComboBoxDescriptor( 3853N/A "Configuration Attributes", 3853N/A CategorizedComboBoxDescriptor.Type.CATEGORY)); 3853N/A for (String attrName : configurationAttrNames) 3853N/A newElements.add(new CategorizedComboBoxDescriptor( 3853N/A CategorizedComboBoxDescriptor.Type.REGULAR)); 3853N/A * Returns <CODE>true</CODE> if the user accepts to continue creating the VLV 3853N/A * index even if no indexes are created for the provided filter for the VLV 3853N/A * index. Returns <CODE>false</CODE> if the user does not accept to create 3853N/A * the index. Note that the confirmation dialog will only be displayed when 3853N/A * the indexes are not defined, if the dialog is not displayed the method 3853N/A * returns <CODE>true</CODE>. 3853N/A * @return <CODE>true</CODE> if the user accepts to continue creating the VLV 3853N/A * index even if no indexes are created for the provided filter for the VLV 3853N/A * index. Returns <CODE>false</CODE> if the user does not accept to create 3853N/A * Updates the provided list of error messages by analyzing the provided 3853N/A * filter. The idea is basically to analyze the filter and check if what 3853N/A * appears on the filter is indexed or not. If it is not indexed it updates 3853N/A * the error message list with a message explaining that. 3853N/A * @param filter the filter to analyze. 3853N/A * @param msgs the list of messages to be updated. 3853N/A * Returns the index descriptor for a given index name (<CODE>null</CODE> if 3853N/A * no index descriptor is found for that name). 3853N/A * @param indexName the name of the index. 3853N/A * @return the index descriptor for a given index name. 3853N/A * Updates the base DN combo box with the provided backend. 3853N/A * @param backend the backend to be used with the provided backend. 3853N/A * Updates a list of errors with the errors found in the panel. 3853N/A * @param checkName whether the name of the VLV index must be checked or not. 3853N/A * @return a list containing the error messages found. 3853N/A // Check that there is no other VLV index with same name 3853N/A * Returns the backend for the index. 3853N/A * @return the backend for the index. 3853N/A// Check that the index does not exist 3853N/A * Returns the base DN for the VLV index. 3853N/A * @return the base DN for the VLV index. 3853N/A * Returns the selected attribute. 3853N/A * @return the selected attribute. 3853N/A * Creates the basic layout of the panel. 3853N/A * @param c the container of the layout. 3853N/A * @param gbc the grid bag constraints to be used. 3853N/A * @param nameReadOnly whether the panel is read-only or not. 3853N/A // To avoid issues, try to figure out first the new selection