| | |
| | | import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent; |
| | | import org.opends.guitools.controlpanel.task.Task; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.server.schema.ServerSchemaElement; |
| | | import org.opends.server.types.Schema; |
| | | |
| | | /** Panel that appears when the user defines a new index. */ |
| | |
| | | TreeSet<String> customAttrNames = new TreeSet<>(); |
| | | for (AttributeType attr : schema.getAttributeTypes()) |
| | | { |
| | | ServerSchemaElement element = new ServerSchemaElement(attr); |
| | | String name = attr.getNameOrOID(); |
| | | if (!indexExists(backend, name)) |
| | | { |
| | | if (Utilities.isStandard(element)) |
| | | if (Utilities.isStandard(attr)) |
| | | { |
| | | standardAttrNames.add(name); |
| | | } |
| | | else if (Utilities.isConfiguration(element)) |
| | | else if (Utilities.isConfiguration(attr)) |
| | | { |
| | | configurationAttrNames.add(name); |
| | | } |