| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.legacy; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Comparator; |
| | | |
| | | /** |
| | |
| | | * @deprecated Do not use |
| | | */ |
| | | @Deprecated |
| | | public class DummyByteArrayComparator implements Comparator<byte[]> { |
| | | |
| | | /** {@inheritDoc} */ |
| | | public class DummyByteArrayComparator implements Comparator<byte[]>, Serializable { |
| | | @Override |
| | | public int compare(byte[] o1, byte[] o2) { |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class HistoricalCsnOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = -3424403930225609943L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class CaseExactOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = -5904188628828913709L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class CaseIgnoreOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = -8992263058903266096L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class GeneralizedTimeOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = -6343622924726948145L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class IntegerOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = 6654300545706161754L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class NumericStringOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = 388436004219363604L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class OctetStringOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = 3832343819704649155L; |
| | | } |
| | |
| | | * |
| | | * CDDL HEADER END |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | */ |
| | | @Deprecated |
| | | public class UUIDOrderingMatchingRule extends DummyByteArrayComparator { |
| | | // empty |
| | | private static final long serialVersionUID = -3877941142853469687L; |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void initialize(ClassLoader loader) |
| | | { |
| | | if (orderingRules == null) |
| | | if (orderingRules == null && orderingRuleOids != null) |
| | | { |
| | | orderingRules = new MatchingRule[orderingRuleOids.length]; |
| | | for (int i = 0; i < orderingRuleOids.length; i++) |