Class ItemView
- java.lang.Object
-
- microsoft.exchange.webservices.data.search.ViewBase
-
- microsoft.exchange.webservices.data.search.PagedView
-
- microsoft.exchange.webservices.data.search.ItemView
-
-
Constructor Summary
Constructors Constructor Description ItemView(int pageSize)Initializes a new instance of the ItemView class.ItemView(int pageSize, int offset)Initializes a new instance of the ItemView class.ItemView(int pageSize, int offset, OffsetBasePoint offsetBasePoint)Initializes a new instance of the ItemView class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderByCollectiongetOrderBy()Gets the property against which the returned item should be ordered.protected ServiceObjectTypegetServiceObjectType()Gets the type of service object this view applies to.ItemTraversalgetTraversal()Gets the search traversal mode.protected StringgetViewXmlElementName()Gets the name of the view XML element.voidinternalValidate(ServiceRequestBase request)Validates this view.protected voidinternalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, Grouping groupBy)Internals the write search settings to XML.voidsetTraversal(ItemTraversal value)Sets the traversal.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.voidwriteOrderByToXml(EwsServiceXmlWriter writer)Writes OrderBy property to XML.-
Methods inherited from class microsoft.exchange.webservices.data.search.PagedView
getMaxEntriesReturned, getOffset, getOffsetBasePoint, getPageSize, internalWriteViewToXml, setOffset, setOffsetBasePoint, setPageSize
-
Methods inherited from class microsoft.exchange.webservices.data.search.ViewBase
getPropertySet, getPropertySetOrDefault, setPropertySet, writeToXml
-
-
-
-
Constructor Detail
-
ItemView
public ItemView(int pageSize)
Initializes a new instance of the ItemView class.- Parameters:
pageSize- the page size
-
ItemView
public ItemView(int pageSize, int offset)
Initializes a new instance of the ItemView class.- Parameters:
pageSize- the page sizeoffset- the offset
-
ItemView
public ItemView(int pageSize, int offset, OffsetBasePoint offsetBasePoint)
Initializes a new instance of the ItemView class.- Parameters:
pageSize- the page sizeoffset- the offsetoffsetBasePoint- the offset base point
-
-
Method Detail
-
getViewXmlElementName
protected String getViewXmlElementName()
Gets the name of the view XML element.- Specified by:
getViewXmlElementNamein classViewBase- Returns:
- XML element name.
-
getServiceObjectType
protected ServiceObjectType getServiceObjectType()
Gets the type of service object this view applies to.- Specified by:
getServiceObjectTypein classViewBase- Returns:
- A ServiceObjectType value.
-
internalValidate
public void internalValidate(ServiceRequestBase request) throws ServiceVersionException, ServiceValidationException
Validates this view.- Overrides:
internalValidatein classPagedView- Parameters:
request- the request- Throws:
ServiceVersionException- the service version exceptionServiceValidationException- the service validation exception
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Specified by:
writeAttributesToXmlin classViewBase- Parameters:
writer- the writer- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
internalWriteSearchSettingsToXml
protected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, Grouping groupBy) throws XMLStreamException, ServiceXmlSerializationException
Internals the write search settings to XML.- Overrides:
internalWriteSearchSettingsToXmlin classPagedView- Parameters:
writer- the writergroupBy- the group by- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
writeOrderByToXml
public void writeOrderByToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes OrderBy property to XML.- Overrides:
writeOrderByToXmlin classPagedView- Parameters:
writer- the writer- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
getTraversal
public ItemTraversal getTraversal()
Gets the search traversal mode. Defaults to ItemTraversal.Shallow.- Returns:
- the traversal
-
setTraversal
public void setTraversal(ItemTraversal value)
Sets the traversal.- Parameters:
value- the new traversal
-
getOrderBy
public OrderByCollection getOrderBy()
Gets the property against which the returned item should be ordered.- Returns:
- the order by
-
-