/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2006-2008 Sun Microsystems, Inc.
*/
/**
* This class defines a set of constants that correspond to the result codes
* defined in the LDAP protocol. Note that many (but not all) of the result
* codes numbered 81 and higher come from the LDAP C API specification and are
* only intended for client-side use and should not be returned from the
* Directory Server. These are denoted with a "CLIENT_SIDE_" prefix.
*/
public class LDAPResultCode
{
/**
* The LDAP result code for successful operations.
*/
/**
* The LDAP result code for operations that fail due to an operations error.
*/
/**
* The LDAP result code for operations that fail due to a protocol error.
*/
/**
* The LDAP result code for operations that fail as a result of exceeding a
* time limit.
*/
/**
* The LDAP result code for operations that fail as a result of exceeding a
* size limit.
*/
/**
* The LDAP result code for compare operations in which the assertion is
* false.
*/
/**
* The LDAP result code for compare operations in which the assertion is true.
*/
/**
* The LDAP result code for operations that fail because the requested
* authentication method is not supported.
*/
/**
* The LDAP result code for operations that fail because strong authentication
* is required.
*/
/**
* The LDAP result code for operations that encountered a referral.
*/
/**
* The LDAP result code for operations that fail as a result of exceeding an
* administrative limit.
*/
/**
* The LDAP result code for operations that fail because they contain an
* unavailable critical extension.
*/
/**
* The LDAP result code for operations that fail because confidentiality is
* required.
*/
/**
* The LDAP result code used for multi-stage SASL bind operations that are not
* yet complete.
*/
/**
* The LDAP result code for operations that fail because a specified attribute
* does not exist.
*/
/**
* The LDAP result code for operations that fail because a specified attribute
* type is not defined in the server schema.
*/
/**
* The LDAP result code for operations that fail as a result of attempting an
* inappropriate form of matching on an attribute.
*/
/**
* The LDAP result code for operations that fail because a defined constraint
* has been violated.
*/
/**
* The LDAP result code for operations that fail because of a conflict with an
* existing attribute or value.
*/
/**
* The LDAP result code for operations that fail because of an invalid
* attribute syntax.
*/
/**
* The LDAP result code for operations that fail because a targeted entry does
* not exist.
*/
/**
* The LDAP result code for operations that fail because the an alias was
* encountered in an illegal context.
*/
/**
* The LDAP result code for operations that fail because the request included
* a malformed DN.
*/
/**
* The LDAP result code for operations that fail because a problem occurred
* while attempting to dereference an alias.
*/
/**
* The LDAP result code for operations that fail because the user attempted to
* perform a type of authentication that was inappropriate for the targeted
* entry.
*/
/**
* The LDAP result code for operations that fail because the user supplied
* invalid credentials for an authentication attempt.
*/
/**
* The LDAP result code for operations that fail because the client does not
* have permission to perform the requested operation.
*/
/**
* The LDAP result code for operations that fail because the server was too
* busy to process it.
*/
/**
* The LDAP result code for operations that fail because the server or a
* required resource was unavailable.
*/
/**
* The LDAP result code for operations that fail because the server was
* unwilling to perform the requested operation.
*/
/**
* The LDAP result code for operations that fail because a referral or
* chaining loop was detected.
*/
/**
* The LDAP result code for operations that fail because the request included
* a VLV request control without a server-side sort control.
*/
/**
* The LDAP result code for operations that fail because the request included
* a VLV request control with an invalid offset.
*/
/**
* The LDAP result code for operations that fail due to a naming violation.
*/
/**
* The LDAP result code for operations that fail because the requested
* operation would have resulted in an entry that violates the server schema.
*/
/**
* The LDAP result code for operations that fail because the requested
* operation is not allowed on non-leaf entries.
*/
/**
* The LDAP result code for operations that fail because the requested
* operation is not allowed on an RDN attribute.
*/
/**
* The LDAP result code for operations that fail because the requested
* operation would have resulted in an entry that conflicts with one that
* already exists.
*/
/**
* The LDAP result code for operations that fail because the requested
* operation attempted to modify objectclass values in an illegal manner.
*/
/**
* The LDAP result code for operations that fail because the requested
* operation would have required interaction with multiple DSAs.
*/
/**
* The LDAP result code for operations that fail due to an error in
* virtual list view processing.
*/
/**
* The LDAP result code for use in cases in which none of the other defined
* result codes are appropriate.
*/
/**
* The client-side result code that indicates that a previously-established
* connection to the server was lost. This is for client-side use only and
* should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that a local error occurred that
* had nothing to do with interaction with the server. This is for
* client-side use only and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that an error occurred while
* encoding a request to send to the server. This is for client-side use only
* and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that an error occurred while
* decoding a response from the server. This is for client-side use only and
* should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the client did not receive
* an expected response in a timely manner. This is for client-side use only
* and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the user requested an
* unknown or unsupported authentication mechanism. This is for client-side
* use only and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the filter provided by the
* user was malformed and could not be parsed. This is for client-side use
* only and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the user cancelled an
* operation. This is for client-side use only and should never be
* transferred over protocol.
*/
/**
* The client-side result code that indicates that there was a problem with
* one or more of the parameters provided by the user. This is for
* client-side use only and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the client application was
* not able to allocate enough memory for the requested operation. This is
* for client-side use only and should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the client was not able to
* establish a connection to the server. This is for client-side use only and
* should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the user requested an
* operation that is not supported. This is for client-side use only and
* should never be transferred over protocol.
*/
/**
* The client-side result code that indicates that the client expected a
* control to be present in the response from the server but it was not
* included. This is for client-side use only and should never be transferred
* over protocol.
*/
/**
* The client-side result code that indicates that the server did not return
* any results for a search operation that was expected to match at least one
* entry. This is for client-side use only and should never be transferred
* over protocol.
*/
/**
* The client-side result code that indicates that the server has returned
* more matching entries for a search operation than have been processed so
* far. This is for client-side use only and should never be transferred over
* protocol.
*/
/**
* The client-side result code that indicates that the client detected a
* referral loop caused by servers referencing each other in a circular
* manner. This is for client-side use only and should never be transferred
* over protocol.
*/
/**
* The client-side result code that indicates that the client reached the
* maximum number of hops allowed when attempting to follow a referral (i.e.,
* following one referral resulted in another referral which resulted in
* another referral and so on). This is for client-side use only and should
* never be transferred over protocol.
*/
/**
* The LDAP result code for cancel operations that are successful, or for
* operations that are canceled.
*/
/**
* The LDAP result code for cancel operations that fail because the specified
* operation could not be found.
*/
/**
* The LDAP result code for cancel operations that fail because the specified
* operation has already progressed too far to be canceled.
*/
/**
* The LDAP result code for cancel operations that fail because the specified
* operation cannot be canceled.
*/
/**
* The LDAP result code for operations that are rejected because the
* filter in the LDAP assertion control did not match the target entry.
*/
/**
* The LDAP result code for operations that fail because the server refused
* the client's requested authorization.
*/
/**
* The LDAP result code for operations in which no action is taken because the
* request include the LDAP no-op control.
*
* FIXME -- This is a temporary result code for use until
* draft-zeilenga-ldap-noop is updated and an official result code is
* allocated for it. In the meantime, this result appears to be the
* one used by OpenLDAP as per the message at
* (0x410e = 16654).
*/
/**
* Retrieves a string representation of the provided LDAP result code.
*
* @param resultCode The LDAP result code value for which to obtain the
* string representation.
*
* @return The string representation of the provided LDAP result code.
*/
{
switch (resultCode)
{
case SUCCESS:
break;
case OPERATIONS_ERROR:
break;
case PROTOCOL_ERROR:
break;
case TIME_LIMIT_EXCEEDED:
break;
case SIZE_LIMIT_EXCEEDED:
break;
case COMPARE_FALSE:
break;
case COMPARE_TRUE:
break;
break;
case STRONG_AUTH_REQUIRED:
break;
case REFERRAL:
break;
case ADMIN_LIMIT_EXCEEDED:
break;
break;
case CONFIDENTIALITY_REQUIRED:
break;
case SASL_BIND_IN_PROGRESS:
break;
case NO_SUCH_ATTRIBUTE:
break;
case UNDEFINED_ATTRIBUTE_TYPE:
break;
case INAPPROPRIATE_MATCHING:
break;
case CONSTRAINT_VIOLATION:
break;
break;
case INVALID_ATTRIBUTE_SYNTAX:
break;
case NO_SUCH_OBJECT:
break;
case ALIAS_PROBLEM:
break;
case INVALID_DN_SYNTAX:
break;
break;
break;
case INVALID_CREDENTIALS:
break;
break;
case BUSY:
break;
case UNAVAILABLE:
break;
case UNWILLING_TO_PERFORM:
break;
case LOOP_DETECT:
break;
case SORT_CONTROL_MISSING:
break;
case OFFSET_RANGE_ERROR:
break;
case NAMING_VIOLATION:
break;
case OBJECTCLASS_VIOLATION:
break;
case NOT_ALLOWED_ON_NONLEAF:
break;
case NOT_ALLOWED_ON_RDN:
break;
case ENTRY_ALREADY_EXISTS:
break;
break;
case AFFECTS_MULTIPLE_DSAS:
break;
case VIRTUAL_LIST_VIEW_ERROR:
break;
case CLIENT_SIDE_SERVER_DOWN:
break;
case CLIENT_SIDE_LOCAL_ERROR:
break;
break;
break;
case CLIENT_SIDE_TIMEOUT:
break;
case CLIENT_SIDE_AUTH_UNKNOWN:
break;
case CLIENT_SIDE_FILTER_ERROR:
break;
break;
case CLIENT_SIDE_PARAM_ERROR:
break;
case CLIENT_SIDE_NO_MEMORY:
break;
break;
break;
break;
break;
break;
case CLIENT_SIDE_CLIENT_LOOP:
break;
break;
case CANCELED:
break;
case NO_SUCH_OPERATION:
break;
case TOO_LATE:
break;
case CANNOT_CANCEL:
break;
case ASSERTION_FAILED:
break;
case AUTHORIZATION_DENIED:
break;
case NO_OPERATION:
break;
default:
break;
}
}
}