Adds debug log messages for MsOutlook address book when a contact is added, edited or deleted.

cusax-fix
Vincent Lucas 13 years ago
parent 0d2cd7c618
commit 2a2cdb89b1

@ -1016,6 +1016,10 @@ protected void run()
*/
public void inserted(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("inserted: " + id);
}
SourceContact sourceContact = findSourceContactByID(id);
if(sourceContact != null
&& sourceContact instanceof MsOutlookAddrBookSourceContact)
@ -1048,6 +1052,10 @@ public void inserted(String id)
*/
public void updated(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("updated: " + id);
}
SourceContact sourceContact = findSourceContactByID(id);
if(sourceContact != null
&& sourceContact instanceof MsOutlookAddrBookSourceContact)
@ -1064,6 +1072,10 @@ public void updated(String id)
*/
public void deleted(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("deleted: " + id);
}
if(id != null)
{
SourceContact sourceContact = findSourceContactByID(id);
@ -1116,6 +1128,10 @@ boolean callback(String id)
*/
public void addEmptyContact(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("Add empty contact: " + id);
}
if(id != null)
{
final MsOutlookAddrBookSourceContact sourceContact

@ -209,6 +209,10 @@ public class NotificationsDelegate
*/
public void inserted(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("Inserted: " + id);
}
if(latestQuery != null)
latestQuery.inserted(id);
}
@ -218,6 +222,10 @@ public void inserted(String id)
*/
public void updated(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("Updated: " + id);
}
if(latestQuery != null)
latestQuery.updated(id);
}
@ -227,6 +235,10 @@ public void updated(String id)
*/
public void deleted(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("Deleted: " + id);
}
if(latestQuery != null)
latestQuery.deleted(id);
}
@ -251,6 +263,10 @@ public String createContact()
*/
public void addEmptyContact(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("Add empty contact: " + id);
}
if(id != null && latestQuery != null)
{
latestQuery.addEmptyContact(id);
@ -265,6 +281,10 @@ public void addEmptyContact(String id)
*/
public void deleteContact(String id)
{
if(logger.isDebugEnabled())
{
logger.debug("Delete contact: " + id);
}
if(id != null && MsOutlookAddrBookContactQuery.deleteContact(id))
{
if(latestQuery != null)

Loading…
Cancel
Save