Link.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.
*/
// TODO: Extend from something like FieldMap to handle the Java ↔ JSON translations.
// Java Standard Edition
// SLF4J
// JSON Fluent library
// OpenIDM
/**
* TODO: Description.
*
* @author Paul C. Bryan
*/
class Link {
/** TODO: Description. */
/** TODO: Description. */
private final ObjectMapping mapping;
/** TODO: Description. */
/** TODO: Description. */
/** TODO: Description. */
/** TODO: Description. */
/** TODO: Description. */
/**
* TODO: Description.
*
* @param mapping TODO.
*/
}
/**
* TODO: Description.
* @param id
* @return
*/
}
}
/**
* TODO: Description.
*
* @param query TODO.
* @throws SynchronizationException TODO.
*/
try {
throw new SynchronizationException("More than one link found");
}
} catch (JsonValueException jve) {
} catch (ObjectSetException ose) {
}
}
/**
* TODO: Description.
*
* @param value TODO.
* @throws org.forgerock.json.fluent.JsonValueException
*/
}
/**
* TODO: Description.
*
* @return TODO.
*/
private JsonValue toJsonValue() {
return jv;
}
/**
* TODO: Description.
*/
void clear() {
}
/**
* TODO: Description.
* <p>
* This method exects a {@code "sourceQuery"} defined with a parameter of
* {@code "sourceId"}.
*
* @param sourceId TODO.
* @throws SynchronizationException if the query could not be performed.
*/
clear();
}
}
/**
* TODO: Description.
* <p>
* This method exects a {@code "sourceQuery"} defined with a parameter of
* {@code "sourceId"}.
*
* @param targetId TODO.
* @throws SynchronizationException TODO.
*/
clear();
}
}
/**
* TODO: Description.
*
* @throws SynchronizationException TODO.
*/
void create() throws SynchronizationException {
try {
} catch (ObjectSetException ose) {
throw new SynchronizationException(ose);
}
}
/**
* TODO: Description.
*
* @throws SynchronizationException TODO.
*/
void delete() throws SynchronizationException {
try {
} catch (ObjectSetException ose) {
throw new SynchronizationException(ose);
}
clear();
}
}
/**
* TODO: Description.
*
* @throws SynchronizationException TODO.
*/
void update() throws SynchronizationException {
throw new SynchronizationException("Attempt to update non-existent link");
}
try {
} catch (ObjectSetException ose) {
throw new SynchronizationException(ose);
}
}
}