Policy.java revision 88f2d7061bb42999901dcff81c37089b000d32e0
/*
* 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 Policy {
/** TODO: Description. */
/** TODO: Description. */
private final SynchronizationService service;
/** TODO: Description. */
/** TODO: Description. */
/** TODO: Description. */
/**
* TODO: Description.
*
* @param service
* @param config TODO.
* @throws JsonValueException TODO.
*/
} else {
}
}
/**
* TODO: Description.
* @return
*/
public Situation getSituation() {
return situation;
}
/**
* TODO: Description.
*
* @param source
* @param target
* @param sourceAction true if the {@link Action} is determined for the {@link org.forgerock.openidm.sync.impl.ObjectMapping.SourceSyncOperation}
* and false if the action is determined for the {@link org.forgerock.openidm.sync.impl.ObjectMapping.TargetSyncOperation}.
* @return TODO.
* @throws SynchronizationException TODO.
*/
public Action getAction(JsonValue source, JsonValue target, boolean sourceAction) throws SynchronizationException {
}
}
try {
} catch (NullPointerException npe) {
throw new SynchronizationException("action script returned null value");
} catch (IllegalArgumentException iae) {
throw new SynchronizationException("action script returned invalid action");
} catch (ScriptException se) {
throw new SynchronizationException(se);
}
}
return result;
}
}