PropertyMapping.java revision 0901148a508a9c433851a650cd8eb52899d1222b
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions Copyrighted [year] [name of copyright owner]".
*
* Copyright © 2011 ForgeRock AS. All rights reserved.
*/
// Java Standard Edition
// SLF4J
// JSON Fluent library
// OpenIDM
/**
* TODO: Description.
*
* @author Paul C. Bryan
*/
class PropertyMapping {
/** TODO: Description. */
/** TODO: Description. */
private final SynchronizationService service;
/** TODO: Description. */
/** TODO: Description. */
private final JsonPointer targetPointer;
/** TODO: Description. */
private final JsonPointer sourcePointer;
/** TODO: Description. */
/** TODO: Description. */
private final Object defaultValue;
/**
* TODO: Description.
*
* @param targetObject TODO.
* @param pointer TODO.
* @param value TODO.
* @throws SynchronizationException TODO.
*/
private static void put(JsonNode targetObject, JsonPointer pointer, Object value) throws SynchronizationException {
throw new SynchronizationException("cannot replace root object");
}
try {
} catch (JsonNodeException jne) {
throw new SynchronizationException(jne);
}
}
}
try {
} catch (JsonNodeException jne) {
throw new SynchronizationException(jne);
}
}
/**
* TODO: Description.
*
* @param service
* @param config TODO.
* @throws JsonNodeException TODO.
*/
}
/**
* TODO: Description.
*
* @param sourceObject TODO.
* @param targetObject TODO.
* @throws SynchronizationException TODO.
*/
try {
return; // property mapping is not applicable; do not apply
}
} catch (JsonNodeException jne) {
throw new SynchronizationException(jne);
} catch (ScriptException se) {
throw new SynchronizationException(se);
}
}
}
}
try {
} catch (ScriptException se) {
LOGGER.warn("Property mapping " + targetPointer + " transformation script encountered exception", se);
throw new SynchronizationException(se);
}
}
}
}
}