List<String> urlList = new java.util.ArrayList<String>(); for (Folder sub : f.getSubfolderHierarchy()) if (sub.getDefaultView() == MailItem.TYPE_APPOINTMENT) urlList.add(UrlNamespace.getHomeUrl(this.getOwner()) + sub.getPath() + "/"); if (urlList.size() > 0) { mDavCompliance.add(Compliance.one); mDavCompliance.add(Compliance.two); mDavCompliance.add(Compliance.three); mDavCompliance.add(Compliance.access_control); mDavCompliance.add(Compliance.calendar_access); this.addProperty(CalDavProperty.getCalendarHomeSet(urlList)); }
	public Collection(Folder f) throws DavException, ServiceException {		super(f);		setCreationDate(f.getDate());		setLastModifiedDate(f.getChangeDate());		setProperty(DavElements.P_DISPLAYNAME, f.getName());		setProperty(DavElements.P_GETCONTENTLENGTH, "0");		mId = f.getId();		mMboxId = f.getMailboxId();		mView = f.getDefaultView();		mType = f.getType();		addProperties(Acl.getAclProperties(this, f));	}