| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.datamodel; |
| | | |
| | | import java.io.File; |
| | |
| | | import org.opends.server.types.OperatingSystem; |
| | | import org.opends.server.types.Schema; |
| | | |
| | | import static org.opends.server.types.CommonSchemaElements.*; |
| | | |
| | | /** |
| | | * This is just a class used to provide a data model describing what the |
| | | * StatusPanelDialog will show to the user. |
| | |
| | | { |
| | | Object[] compareWithEqual = {attr1.getApproximateMatchingRule(), |
| | | attr2.getApproximateMatchingRule(), |
| | | attr1.getDefinitionWithFileName(), attr2.getDefinitionWithFileName(), |
| | | getDefinitionWithFileName(attr1), getDefinitionWithFileName(attr2), |
| | | attr1.getDescription(), attr2.getDescription(), |
| | | attr1.getEqualityMatchingRule(), attr2.getEqualityMatchingRule(), |
| | | attr1.getOrderingMatchingRule(), attr2.getOrderingMatchingRule(), |
| | |
| | | |
| | | if (areEqual) |
| | | { |
| | | Iterable<?>[] iterables = {attr1.getExtraPropertyNames(), |
| | | attr2.getExtraPropertyNames(), |
| | | Iterable<?>[] iterables = {attr1.getExtraProperties().keySet(), |
| | | attr2.getExtraProperties().keySet(), |
| | | attr1.getNormalizedNames(), attr2.getNormalizedNames(), |
| | | attr1.getUserDefinedNames(), attr2.getUserDefinedNames()}; |
| | | for (int i=0; i<iterables.length && areEqual; i++) |
| | |
| | | if (areEqual) |
| | | { |
| | | Object[] compareWithEqual = { |
| | | oc1.getDefinitionWithFileName(), oc2.getDefinitionWithFileName(), |
| | | getDefinitionWithFileName(oc1), getDefinitionWithFileName(oc2), |
| | | oc1.getDescription(), oc2.getDescription(), |
| | | oc1.getObjectClassType(), oc2.getObjectClassType(), |
| | | oc1.getOptionalAttributes(), oc2.getOptionalAttributes(), |
| | |
| | | if (areEqual) |
| | | { |
| | | Iterable<?>[] iterables = { |
| | | oc1.getExtraPropertyNames(), oc2.getExtraPropertyNames(), |
| | | oc1.getExtraProperties().keySet(), oc2.getExtraProperties().keySet(), |
| | | oc1.getNormalizedNames(), oc2.getNormalizedNames(), |
| | | oc1.getUserDefinedNames(), oc2.getUserDefinedNames()}; |
| | | for (int i=0; i<iterables.length && areEqual; i++) |