use of com.zimbra.cs.account.AttributeManager.IDNType in project zm-mailbox by Zimbra.
the class Entry method getUnicodeMultiAttr.
/**
* Returns the set of values for the given attribute, or an empty
* array if no values are defined.
*/
public String[] getUnicodeMultiAttr(String name) {
String[] values = getMultiAttr(name, true);
AttributeManager attrMgr = getAttributeManager();
IDNType idnType = AttributeManager.idnType(attrMgr, name);
if (idnType.isEmailOrIDN() && values != null) {
String[] unicodeValues = new String[values.length];
for (int i = 0; i < values.length; i++) unicodeValues[i] = IDNUtil.toUnicode(values[i], idnType);
return unicodeValues;
} else
return values;
}
Aggregations