From 112a744216cef6fd7f92be3a7df9246fea202516 Mon Sep 17 00:00:00 2001 From: mguessan Date: Sun, 7 Nov 2010 22:01:49 +0000 Subject: [PATCH] LDAP: additional EWS attributes git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1528 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 4cb6fa70..33ccc455 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -1666,20 +1666,25 @@ public class EwsExchangeSession extends ExchangeSession { GALFIND_ATTRIBUTE_MAP.put("l", "BusinessCity"); GALFIND_ATTRIBUTE_MAP.put("o", "CompanyName"); GALFIND_ATTRIBUTE_MAP.put("postalcode", "BusinessPostalCode"); + GALFIND_ATTRIBUTE_MAP.put("st", "BusinessState"); GALFIND_ATTRIBUTE_MAP.put("manager", "Manager"); GALFIND_ATTRIBUTE_MAP.put("middlename", "Initials"); GALFIND_ATTRIBUTE_MAP.put("title", "JobTitle"); GALFIND_ATTRIBUTE_MAP.put("department", "Department"); - GALFIND_ATTRIBUTE_MAP.put("otherTelephone", "AssistantPhone"); + GALFIND_ATTRIBUTE_MAP.put("otherTelephone", "OtherTelephone"); GALFIND_ATTRIBUTE_MAP.put("telephoneNumber", "BusinessPhone"); + GALFIND_ATTRIBUTE_MAP.put("mobile", "MobilePhone"); + GALFIND_ATTRIBUTE_MAP.put("facsimiletelephonenumber", "BusinessFax"); + GALFIND_ATTRIBUTE_MAP.put("secretarycn", "AssistantName"); } protected static final HashSet IGNORE_ATTRIBUTE_SET = new HashSet(); static { IGNORE_ATTRIBUTE_SET.add("ContactSource"); IGNORE_ATTRIBUTE_SET.add("Culture"); + IGNORE_ATTRIBUTE_SET.add("AssistantPhone"); } protected Contact buildGalfindContact(EWSMethod.Item response) { @@ -1689,7 +1694,7 @@ public class EwsExchangeSession extends ExchangeSession { if (LOGGER.isDebugEnabled()) { for (String key : response.keySet()) { if (!IGNORE_ATTRIBUTE_SET.contains(key) && !GALFIND_ATTRIBUTE_MAP.containsValue(key)) { - LOGGER.debug("Unsupported ResolveNames response attribute: " + key + " value: " + response.get(key)); + LOGGER.debug("Unsupported ResolveNames in "+contact.getName()+" response attribute: " + key + " value: " + response.get(key)); } } }