5578N/A * The contents of this file are subject to the terms of the 5578N/A * Common Development and Distribution License, Version 1.0 only 5578N/A * (the "License"). You may not use this file except in compliance 5578N/A * You can obtain a copy of the license at 5578N/A * See the License for the specific language governing permissions 5578N/A * and limitations under the License. 5578N/A * When distributing Covered Code, include this CDDL HEADER in each 5578N/A * file and include the License file at 5578N/A * add the following below this CDDL HEADER, with the fields enclosed 5578N/A * by brackets "[]" replaced with your own identifying information: 5578N/A * Portions Copyright [yyyy] [name of copyright owner] 5578N/A * Copyright 2011 profiq s.r.o. 5578N/A * Portions copyright 2011 ForgeRock AS. 5578N/A * The attribute cleanup plugin implementation class. The plugin removes and/or 5578N/A * renames the configured parameters from the incoming ADD and MODIFY requests. 5578N/A * A table of attributes to be renamed. 5578N/A * The set of attributes to be removed. 5578N/A * This lock prevents concurrent updates to the configuration while operations 5578N/A /* Apply the change, as at this point is has been validated. */ 5578N/A /* Update was successful, no restart required. */ 5578N/A * First strip the listed attributes, then rename the ones that remain. 5578N/A * First strip the listed attributes, then rename the ones that remain. 5578N/A * If the MODIFY request has been stripped of ALL modifications, stop the 5578N/A * processing and return SUCCESS to the client. 5578N/A +
"modifications. The processing should be stopped.");
5578N/A * It's not essential to take the lock here, but we will anyhow for 5578N/A * consistency with other methods. 5578N/A /* Deregister change listeners. */ 5578N/A * The plugin should be invoked only for pre-parse ADD and MODIFY 5578N/A /* Verify the current configuration. */ 5578N/A /* Register change listeners. */ 5578N/A /* Save the configuration. */ 5578N/A * The admin framework will ensure that there are no duplicate attributes to 5578N/A * Verify that there are no duplicate mappings and that attributes are 5578N/A * renamed to valid attribute types. 5578N/A * The format is: from:to where each 'from' and 'to' are attribute 5578N/A * descriptions. The admin framework ensures that the format is correct. 5578N/A * Make sure that toAttr is defined within the server, being careful to 5578N/A * ignore attribute options. 5578N/A * Check that attribute does not map to itself. 5578N/A * Remove the attributes listed in the configuration under 5578N/A * ds-cfg-remove-inbound-attributes from the incoming ADD request. 5578N/A * Remove the attributes listed in the configuration under 5578N/A * ds-cfg-remove-inbound-attributes from the incoming MODIFY request. 5578N/A * Current MODIFY operation. 5578N/A * Map the incoming attributes to the local ones. 5578N/A * Rename the attributes in the incoming MODIFY request to names that exist in 5578N/A * the local schema as defined in the configuration. 5578N/A * Current MODIFY operation.