Caldav: prepare xmoz custom property support over DAV

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1649 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-03-23 09:43:53 +00:00
parent 16617d8141
commit b85cf09e04
1 changed files with 10 additions and 1 deletions

View File

@ -317,8 +317,11 @@ public class Field {
createField("attachmentContactPhoto", 0x7FFF, PropertyType.Boolean); // PR_ATTACHMENT_CONTACTPHOTO
createField("renderingPosition", 0x370B, PropertyType.Integer);// PR_RENDERING_POSITION
//createField("attachFilename", 0x3704, PropertyType.String); // PR_ATTACH_FILENAME
createField("attachExtension", 0x3703, PropertyType.String); // PR_ATTACH_FILENAME
createField("attachExtension", 0x3703, PropertyType.String); // PR_ATTACH_EXTENSION
createField("xmozlastack", DistinguishedPropertySetType.PublicStrings);
createField("xmozsnoozetime", DistinguishedPropertySetType.PublicStrings);
createField("xmozsendinvitations", DistinguishedPropertySetType.PublicStrings);
}
protected static String toHexString(int propertyTag) {
@ -340,6 +343,12 @@ public class Field {
fieldMap.put(field.alias, field);
}
protected static void createField(String alias, DistinguishedPropertySetType propertySetType) {
Field field = new Field(Namespace.getNamespace(SCHEMAS_MAPI_STRING.getURI() +
'{' + distinguishedPropertySetMap.get(propertySetType) + "}/"), alias);
fieldMap.put(field.alias, field);
}
protected static void createField(String alias, DistinguishedPropertySetType propertySetType, int propertyTag, String responseAlias) {
createField(alias, propertySetType, propertyTag, responseAlias, null);
}