Class FolderView
- java.lang.Object
-
- microsoft.exchange.webservices.data.search.ViewBase
-
- microsoft.exchange.webservices.data.search.PagedView
-
- microsoft.exchange.webservices.data.search.FolderView
-
public final class FolderView extends PagedView
Represents the view settings in a folder search operation.
-
-
Constructor Summary
Constructors Constructor Description FolderView(int pageSize)Initializes a new instance of the FolderView class.FolderView(int pageSize, int offset)Initializes a new instance of the FolderView class.FolderView(int pageSize, int offset, OffsetBasePoint offsetBasePoint)Initializes a new instance of the FolderView class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServiceObjectTypegetServiceObjectType()Gets the type of service object this view applies to.FolderTraversalgetTraversal()Gets the search traversal mode.protected StringgetViewXmlElementName()Gets the name of the view XML element.voidsetTraversal(FolderTraversal traversal)Sets the search traversal mode.voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.-
Methods inherited from class microsoft.exchange.webservices.data.search.PagedView
getMaxEntriesReturned, getOffset, getOffsetBasePoint, getPageSize, internalValidate, internalWriteSearchSettingsToXml, internalWriteViewToXml, setOffset, setOffsetBasePoint, setPageSize, writeOrderByToXml
-
Methods inherited from class microsoft.exchange.webservices.data.search.ViewBase
getPropertySet, getPropertySetOrDefault, setPropertySet, writeToXml
-
-
-
-
Constructor Detail
-
FolderView
public FolderView(int pageSize)
Initializes a new instance of the FolderView class.- Parameters:
pageSize- The maximum number of elements the search operation should return.
-
FolderView
public FolderView(int pageSize, int offset)
Initializes a new instance of the FolderView class.- Parameters:
pageSize- The maximum number of elements the search operation should return.offset- The offset of the view from the base point.
-
FolderView
public FolderView(int pageSize, int offset, OffsetBasePoint offsetBasePoint)
Initializes a new instance of the FolderView class.- Parameters:
pageSize- The maximum number of elements the search operation should return.offset- The offset of the view from the base point.offsetBasePoint- The base point of the offset.
-
-
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.
-
writeAttributesToXml
public void writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.- Specified by:
writeAttributesToXmlin classViewBase- Parameters:
writer- The writer
-
getTraversal
public FolderTraversal getTraversal()
Gets the search traversal mode. Defaults to FolderTraversal.Shallow.- Returns:
- the traversal
-
setTraversal
public void setTraversal(FolderTraversal traversal)
Sets the search traversal mode. Defaults to FolderTraversal.Shallow.- Parameters:
traversal- the new traversal
-
-