|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.beans.BeanComparator
public final class BeanComparator
Bean comparison to generate the JndiModification array This class is used to generate the modifications to be applied to the directory according the differences between two beans.
| Method Summary | |
|---|---|
static JndiModifications |
calculateModifications(ISyncOptions syncOptions,
IBean srcBean,
IBean itmBean,
IBean dstBean,
Object customLibrary,
boolean condition)
Static comparison method. |
static JndiModifications |
calculateModifications(ISyncOptions syncOptions,
IBean srcBean,
IBean destBean,
Object customLibrary)
Deprecated. Use calculateModifications(ISyncOptions, IBean, IBean, Object, boolean) |
static JndiModifications |
calculateModifications(ISyncOptions syncOptions,
IBean srcBean,
IBean dstBean,
Object customLibrary,
boolean condition)
Deprecated. Use calculateModifications(ISyncOptions, IBean, IBean, IBean, Object, boolean) |
static JndiModificationType |
calculateModificationType(ISyncOptions syncOptions,
IBean srcBean,
IBean itmBean,
IBean dstBean,
Object customLibrary)
Static method to return the kind of operation that would happen |
static JndiModificationType |
calculateModificationType(ISyncOptions syncOptions,
IBean srcBean,
IBean dstBean,
Object customLibrary)
Deprecated. This method forces multiple clones, and should be avoided. Use calculateModificationType(ISyncOptions, IBean, IBean, IBean, Object) instead. |
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. |
static IBean |
cloneSrcBean(IBean srcBean,
ISyncOptions syncOptions,
Object customLibrary)
Clone the source bean and return a new object that is a copy of the srcBean and includes any modifications on the DN. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JndiModificationType calculateModificationType(ISyncOptions syncOptions,
IBean srcBean,
IBean dstBean,
Object customLibrary)
throws CloneNotSupportedException
calculateModificationType(ISyncOptions, IBean, IBean, IBean, Object) instead.
syncOptions - SyncOptions object from propertiessrcBean - Bean from sourcedstBean - JNDI beancustomLibrary - User-specified object to add to the JavaScript execution environment
CloneNotSupportedException
public static JndiModificationType calculateModificationType(ISyncOptions syncOptions,
IBean srcBean,
IBean itmBean,
IBean dstBean,
Object customLibrary)
syncOptions - SyncOptions object from propertiessrcBean - Bean from sourceitmBean - Copy of the bean from source (from cloneSrcBean(IBean, ISyncOptions, Object))dstBean - JNDI beancustomLibrary - User-specified object to add to the JavaScript execution environment
public static JndiModifications calculateModifications(ISyncOptions syncOptions,
IBean srcBean,
IBean destBean,
Object customLibrary)
throws NamingException,
CloneNotSupportedException
calculateModifications(ISyncOptions, IBean, IBean, Object, boolean)
Static comparison method.
By default, source information override destination (i.e. Database => Directory) But if a piece of information is present only in the destination, it remains
syncOptions - Instance of ISyncOptions to use.srcBean - Bean from sourcedestBean - JNDI beancustomLibrary - User-specified object to add to the JavaScript execution environment
NamingException - an exception may be thrown if an LDAP data access error is
encountered
CloneNotSupportedException - No longer thrown, actually.
public static JndiModifications calculateModifications(ISyncOptions syncOptions,
IBean srcBean,
IBean dstBean,
Object customLibrary,
boolean condition)
throws NamingException,
CloneNotSupportedException
calculateModifications(ISyncOptions, IBean, IBean, IBean, Object, boolean)
Static comparison method.
By default, source information override destination (i.e. Database => Directory) But if a piece of information is present only in the destination, it remains
syncOptions - Instance of ISyncOptions to use.srcBean - Bean from sourcedstBean - JNDI beancustomLibrary - User-specified object to add to the JavaScript execution environmentcondition -
NamingException - an exception may be thrown if an LDAP data access error is
encountered
CloneNotSupportedException - No longer thrown, actually.
public static JndiModifications calculateModifications(ISyncOptions syncOptions,
IBean srcBean,
IBean itmBean,
IBean dstBean,
Object customLibrary,
boolean condition)
throws NamingException
Static comparison method.
By default, source information override destination (i.e. Database => Directory) But if a piece of information is present only in the destination, it remains
syncOptions - Instance of ISyncOptions to use.srcBean - Bean from sourceitmBean - Copy of the bean from source (from cloneSrcBean(IBean, ISyncOptions, Object))dstBean - JNDI beancustomLibrary - User-specified object to add to the JavaScript execution environmentcondition -
NamingException - an exception may be thrown if an LDAP data access error is
encountered
public 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 object
JndiModifications
InvocationTargetException
IllegalAccessException
IllegalArgumentException
public static IBean cloneSrcBean(IBean srcBean,
ISyncOptions syncOptions,
Object customLibrary)
throws CloneNotSupportedException
Clone the source bean and return a new object that is a copy of the srcBean and includes any modifications on the DN.
Always use this method for source/destination compares, and make sure to only change the result intermediary bean, never the original source bean
srcBean - Original bean from sourcesyncOptions - customLibrary -
CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||