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