The method com.openexchange.contact.storage.ContactStorage.up dateReferences(Session, Contact) is extended by an additional parameter of type Contact to pass both the previous as well as the updated contact down to the storages after an update took place.
Previously, since only a reference to the updated contact was supplied, it was not possible to identify the source folder if the contact was moved from one folder to another.
The new method signature will now look like:
/**
* Updates references to the supplied contact. This method is called
* after a contact has been updated to propagate the changes throughout
* all storages, e.g. to update distribution lists that are holding
* references to the updated contact.
*
* @param session the session
* @param originalContact the original contact
* @param updatedContact the updated contact
* @throws OXException
*/
void updateReferences(Session session, Contact originalContact, Contact updatedContact) throws OXException;
Previously, since only a reference to the updated contact was supplied, it was not possible to identify the source folder if the contact was moved from one folder to another.
The new method signature will now look like:
/**
* Updates references to the supplied contact. This method is called
* after a contact has been updated to propagate the changes throughout
* all storages, e.g. to update distribution lists that are holding
* references to the updated contact.
*
* @param session the session
* @param originalContact the original contact
* @param updatedContact the updated contact
* @throws OXException
*/
void updateReferences(Session session, Contact originalContact, Contact updatedContact) throws OXException;