/** * Gets the type of the service object this request applies to. * * @param writer the writer * @throws Exception */ protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.propertySet.writeToXml(writer, this.getServiceObjectType()); }
/** * Writes to XML. * * @param writer The writer. * @param groupBy The group by clause. * @throws Exception the exception */ public void writeToXml(EwsServiceXmlWriter writer, Grouping groupBy) throws Exception { this.getPropertySetOrDefault().writeToXml(writer, this.getServiceObjectType()); writer.writeStartElement(XmlNamespace.Messages, this .getViewXmlElementName()); this.internalWriteViewToXml(writer); writer.writeEndElement(); // this.GetViewXmlElementName() this.internalWriteSearchSettingsToXml(writer, groupBy); }
/** * Writes XML elements. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.getPropertySet().writeToXml(writer, ServiceObjectType.Folder); if (this.getSyncFolderId() != null) { writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.SyncFolderId); this.getSyncFolderId().writeToXml(writer); writer.writeEndElement(); } writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.SyncState, this.getSyncState()); }
/** * Gets the type of the service object this request applies to. * * @param writer the writer * @throws Exception */ protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.propertySet.writeToXml(writer, this.getServiceObjectType()); }
/** * Writes XML elements. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.getPropertySet().writeToXml(writer, ServiceObjectType.Item); writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.SyncFolderId); this.getSyncFolderId().writeToXml(writer); writer.writeEndElement(); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.SyncState, this.getSyncState()); this.getIgnoredItemIds().writeToXml(writer, XmlNamespace.Messages, XmlElementNames.Ignore); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.MaxChangesReturned, this .getMaxChangesReturned()); if (this.getService().getRequestedServerVersion().compareTo( ExchangeVersion.Exchange2010) >= 0) { writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.SyncScope, this.syncScope); } }
/** * Writes to XML. * * @param writer The writer. * @param groupBy The group by clause. * @throws Exception the exception */ public void writeToXml(EwsServiceXmlWriter writer, Grouping groupBy) throws Exception { this.getPropertySetOrDefault().writeToXml(writer, this.getServiceObjectType()); writer.writeStartElement(XmlNamespace.Messages, this .getViewXmlElementName()); this.internalWriteViewToXml(writer); writer.writeEndElement(); // this.GetViewXmlElementName() this.internalWriteSearchSettingsToXml(writer, groupBy); }
/** * Writes XML elements. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.getPropertySet().writeToXml(writer, ServiceObjectType.Folder); if (this.getSyncFolderId() != null) { writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.SyncFolderId); this.getSyncFolderId().writeToXml(writer); writer.writeEndElement(); } writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.SyncState, this.getSyncState()); }
/** * Writes XML elements. * * @param writer the writer * @throws Exception the exception */ @Override protected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception { this.getPropertySet().writeToXml(writer, ServiceObjectType.Item); writer.writeStartElement(XmlNamespace.Messages, XmlElementNames.SyncFolderId); this.getSyncFolderId().writeToXml(writer); writer.writeEndElement(); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.SyncState, this.getSyncState()); this.getIgnoredItemIds().writeToXml(writer, XmlNamespace.Messages, XmlElementNames.Ignore); writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.MaxChangesReturned, this .getMaxChangesReturned()); if (this.getService().getRequestedServerVersion().compareTo( ExchangeVersion.Exchange2010) >= 0) { writer.writeElementValue(XmlNamespace.Messages, XmlElementNames.SyncScope, this.syncScope); } }