2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2008-2009 Sun Microsystems, Inc. 2N/A * Portions Copyright 2013-2015 ForgeRock AS. 2N/A * The LDAP management context driver implementation. 2N/A * A visitor which is used to decode property LDAP values. 2N/A * Decodes the provided property LDAP value. 2N/A * The type of the property. 2N/A * The property definition. 2N/A * The LDAP string representation. 2N/A * @return Returns the decoded LDAP value. 2N/A * @throws PropertyException 2N/A * If the property value could not be decoded because it 2N/A /** Prevent instantiation. */ 2N/A // No implementation required. 2N/A /** {@inheritDoc} */ 2N/A // Aggregations values are stored as full DNs in LDAP, but 2N/A // just their common name is exposed in the admin framework. 2N/A /** {@inheritDoc} */ 2N/A // By default the property definition's decoder will do. 2N/A /** The LDAP connection. */ 2N/A /** The LDAP management context. */ 2N/A * The LDAP profile which should be used to construct LDAP 2N/A * requests and decode LDAP responses. 2N/A * Creates a new LDAP driver using the specified LDAP connection and 2N/A * The LDAP management context. 2N/A * The LDAP connection. // Read the entry associated with the managed object. // Build the managed object's properties. // If there were no decoding problems then return the object, // otherwise throw an operations exception. // Check that the requested property is from the definition // associated with the path. +
" is not associated with a " + d.
getName());
// Read the entry associated with the managed object. // Make sure we use the correct property definition, the // provided one might have been overridden in the resolved // Sanity check the returned values. // Use the property's default values. // Get the search base DN. // Retrieve only those entries which are sub-types of the // Ignore this - it means that the base entry does not exist // (which it might not if this managed object has just been // Get the search base DN. // Retrieve only those entries which are sub-types of the // Ignore this - it means that the base entry does not exist // (which it might not if this managed object has just been // Delete the entry and any subordinate entries. * Adapts a naming exception to an appropriate admin client * @throws CommunicationException * If the naming exception mapped to a communication * @throws AuthorizationException * If the naming exception mapped to an authorization // Just treat it as a communication problem. * Determines whether the named LDAP entry exists. * @return Returns <code>true</code> if the named LDAP entry * @throws AuthorizationException * If the server refuses to make the determination because * the client does not have the correct privileges. * @throws CommunicationException * If the client cannot contact the server due to an * underlying communication problem. * Gets the LDAP connection used for interacting with the server. * @return Returns the LDAP connection used for interacting with the * Gets the LDAP profile which should be used to construct LDAP * requests and decode LDAP responses. * @return Returns the LDAP profile which should be used to * construct LDAP requests and decode LDAP responses. /** Create a managed object which already exists on the server. */ /** Create a property using the provided string values. */ // Get the property's active values. // This exception takes precedence over previous exceptions. // Get the property's default values. // The active values maybe empty because of a previous exception. /** Determine the type of managed object associated with the named entry. */ // Resolve the appropriate sub-type based on the object classes.