src/java.naming/share/classes/javax/naming/ldap/SortControl.java
author stefank
Mon, 25 Nov 2019 15:00:32 +0100
changeset 59255 a74627659f96
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234602: ZGC: Windows compile error in ZHeuristic Reviewed-by: pliden, eosterlund
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 18156
diff changeset
     2
 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.naming.ldap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.io.IOException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import com.sun.jndi.ldap.Ber;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import com.sun.jndi.ldap.BerEncoder;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * Requests that the results of a search operation be sorted by the LDAP server
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * before being returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * The sort criteria are specified using an ordered list of one or more sort
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * keys, with associated sort parameters.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * Search results are sorted at the LDAP server according to the parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 * supplied in the sort control and then returned to the requestor. If sorting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * is not supported at the server (and the sort control is marked as critical)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * then the search operation is not performed and an error is returned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * The following code sample shows how the class may be used:
18156
edb590d448c5 8016217: More javadoc warnings
alanb
parents: 5506
diff changeset
    43
 * <pre>{@code
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 *     // Open an LDAP association
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *     LdapContext ctx = new InitialLdapContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 *     // Activate sorting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 *     String sortKey = "cn";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 *     ctx.setRequestControls(new Control[]{
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 *         new SortControl(sortKey, Control.CRITICAL) });
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 *     // Perform a search
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 *     NamingEnumeration results =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 *         ctx.search("", "(objectclass=*)", new SearchControls());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *     // Iterate over search results
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *     while (results != null && results.hasMore()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 *         // Display an entry
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *         SearchResult entry = (SearchResult)results.next();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 *         System.out.println(entry.getName());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 *         System.out.println(entry.getAttributes());
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 *         // Handle the entry's response controls (if any)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 *         if (entry instanceof HasControls) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 *             // ((HasControls)entry).getControls();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 *         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 *     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 *     // Examine the sort control response
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 *     Control[] controls = ctx.getResponseControls();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 *     if (controls != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 *         for (int i = 0; i < controls.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
 *             if (controls[i] instanceof SortResponseControl) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
 *                 SortResponseControl src = (SortResponseControl)controls[i];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
 *                 if (! src.isSorted()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
 *                     throw src.getException();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
 *                 }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
 *             } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
 *                 // Handle other response controls (if any)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
 *             }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
 *         }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
 *     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
 *     // Close the LDAP association
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
 *     ctx.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
 *     ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
 *
18156
edb590d448c5 8016217: More javadoc warnings
alanb
parents: 5506
diff changeset
    88
 * }</pre>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
 * This class implements the LDAPv3 Request Control for server-side sorting
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
 * as defined in
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
 * <a href="http://www.ietf.org/rfc/rfc2891.txt">RFC 2891</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
 * The control's value has the following ASN.1 definition:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
 *     SortKeyList ::= SEQUENCE OF SEQUENCE {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
 *         attributeType     AttributeDescription,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
 *         orderingRule  [0] MatchingRuleId OPTIONAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
 *         reverseOrder  [1] BOOLEAN DEFAULT FALSE }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
 * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
 * @see SortKey
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
 * @see SortResponseControl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
 * @author Vincent Ryan
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
final public class SortControl extends BasicControl {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * The server-side sort control's assigned object identifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * is 1.2.840.113556.1.4.473.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    public static final String OID = "1.2.840.113556.1.4.473";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    private static final long serialVersionUID = -1965961680233330744L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * Constructs a control to sort on a single attribute in ascending order.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     * Sorting will be performed using the ordering matching rule defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
     * for use with the specified attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * @param   sortBy  An attribute ID to sort by.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * @param   criticality     If true then the server must honor the control
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     *                          and return the search results sorted as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     *                          requested or refuse to perform the search.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     *                          If false, then the server need not honor the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
     *                          control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * @exception IOException If an error was encountered while encoding the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     *                        supplied arguments into a control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    public SortControl(String sortBy, boolean criticality) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        super(OID, criticality, null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        super.value = setEncodedValue(new SortKey[]{ new SortKey(sortBy) });
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * Constructs a control to sort on a list of attributes in ascending order.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * Sorting will be performed using the ordering matching rule defined
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * for use with each of the specified attributes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * @param   sortBy  A non-null list of attribute IDs to sort by.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     *                  The list is in order of highest to lowest sort key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     *                  precedence.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * @param   criticality     If true then the server must honor the control
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     *                          and return the search results sorted as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     *                          requested or refuse to perform the search.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     *                          If false, then the server need not honor the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     *                          control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * @exception IOException If an error was encountered while encoding the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     *                        supplied arguments into a control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    public SortControl(String[] sortBy, boolean criticality)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        super(OID, criticality, null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        SortKey[] sortKeys = new SortKey[sortBy.length];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        for (int i = 0; i < sortBy.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
            sortKeys[i] = new SortKey(sortBy[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        super.value = setEncodedValue(sortKeys);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * Constructs a control to sort on a list of sort keys.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     * Each sort key specifies the sort order and ordering matching rule to use.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     * @param   sortBy      A non-null list of keys to sort by.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
     *                      The list is in order of highest to lowest sort key
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
     *                      precedence.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
     * @param   criticality     If true then the server must honor the control
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     *                          and return the search results sorted as
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     *                          requested or refuse to perform the search.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
     *                          If false, then the server need not honor the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
     *                          control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * @exception IOException If an error was encountered while encoding the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *                        supplied arguments into a control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    public SortControl(SortKey[] sortBy, boolean criticality)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
        throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        super(OID, criticality, null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        super.value = setEncodedValue(sortBy);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * Encodes the sort control's value using ASN.1 BER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     * The result includes the BER tag and length for the control's value but
25808
e113d0a0fde0 8054158: Fix typos in JNDI-related packages
prappo
parents: 23010
diff changeset
   191
     * does not include the control's object identifier and criticality setting.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
     * @param   sortKeys    A non-null list of keys to sort by.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
     * @return A possibly null byte array representing the ASN.1 BER encoded
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     *         value of the sort control.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * @exception IOException If a BER encoding error occurs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    private byte[] setEncodedValue(SortKey[] sortKeys) throws IOException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
        // build the ASN.1 BER encoding
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        BerEncoder ber = new BerEncoder(30 * sortKeys.length + 10);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        String matchingRule;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        ber.beginSeq(Ber.ASN_SEQUENCE | Ber.ASN_CONSTRUCTOR);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
        for (int i = 0; i < sortKeys.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
            ber.beginSeq(Ber.ASN_SEQUENCE | Ber.ASN_CONSTRUCTOR);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
            ber.encodeString(sortKeys[i].getAttributeID(), true); // v3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
            if ((matchingRule = sortKeys[i].getMatchingRuleID()) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                ber.encodeString(matchingRule, (Ber.ASN_CONTEXT | 0), true);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
            if (! sortKeys[i].isAscending()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                ber.encodeBoolean(true, (Ber.ASN_CONTEXT | 1));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
            ber.endSeq();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
        ber.endSeq();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        return ber.getTrimmedBuf();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
}