public final class BeanComparator extends Object
| Modifier and Type | Method and Description |
|---|---|
static LscModifications |
calculateModifications(Task task,
IBean srcBean,
IBean dstBean)
Static comparison method.
|
static LscModificationType |
calculateModificationType(Task task,
IBean srcBean,
IBean dstBean)
Static method to return the kind of operation that would happen
|
static JndiModifications[] |
checkOtherModifications(IBean srcBean,
IBean destBean,
JndiModifications jm)
Check modifications across other directory objects - Never used at this time : implementation may be buggy
While adding, deleting or modifying an entry, specific treatments must be done like removing a member from all
the remaining inscription, modifying an attribute in the person entry while the original modification has been
done on a inscription.
|
public static LscModificationType calculateModificationType(Task task, IBean srcBean, IBean dstBean) throws LscServiceException
task - task object (used for syncoptions, custom library and source/destination service)srcBean - Bean from sourcedstBean - JNDI beanLscServiceExceptionpublic static LscModifications calculateModifications(Task task, IBean srcBean, IBean dstBean) throws LscServiceException
task - the corresponding task parametersrcBean - the source beandstBean - the destination beanNamingException - an exception may be thrown if an LDAP data access error is
encounteredCloneNotSupportedExceptionLscServiceExceptionpublic static JndiModifications[] checkOtherModifications(IBean srcBean, IBean destBean, JndiModifications jm) throws IllegalAccessException, InvocationTargetException
srcBean - database object beandestBean - directory object beanjm - modification to apply on the main objectJndiModificationsInvocationTargetExceptionIllegalAccessExceptionIllegalArgumentExceptionCopyright © 2005-2017 LSC project. All Rights Reserved.