public final class CalendarView extends ViewBase
Constructor and Description |
---|
CalendarView(Date startDate,
Date endDate)
Initializes a new instance of CalendarView.
|
CalendarView(Date startDate,
Date endDate,
int maxItemsReturned)
Initializes a new instance of CalendarView.
|
Modifier and Type | Method and Description |
---|---|
Date |
getEndDate()
Gets the end date.
|
protected Integer |
getMaxEntriesReturned()
Gets the maximum number of item or folder the search operation should
return.
|
Integer |
getMaxItemsReturned()
The maximum number of item the search operation should return.
|
protected ServiceObjectType |
getServiceObjectType()
Gets the type of service object this view applies to.
|
Date |
getStartDate()
Gets the start date.
|
ItemTraversal |
getTraversal()
Gets the search traversal mode.
|
protected String |
getViewXmlElementName()
Gets the name of the view XML element.
|
void |
internalValidate(ServiceRequestBase request)
Validate instance.
|
protected void |
internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer,
Grouping groupBy)
Writes the search settings to XML.
|
protected void |
internalWriteViewToXml(EwsServiceXmlWriter writer)
Write to XML.
|
void |
setEndDate(Date endDate)
Sets the end date.
|
void |
setMaxItemsReturned(Integer maxItemsReturned)
Sets the max item returned.
|
void |
setStartDate(Date startDate)
Sets the start date.
|
void |
setTraversal(ItemTraversal traversal)
Sets the traversal.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
void |
writeOrderByToXml(EwsServiceXmlWriter writer)
Writes OrderBy property to XML.
|
getPropertySet, getPropertySetOrDefault, setPropertySet, writeToXml
public CalendarView(Date startDate, Date endDate)
startDate
- the start dateendDate
- the end datepublic CalendarView(Date startDate, Date endDate, int maxItemsReturned)
startDate
- the start dateendDate
- the end datemaxItemsReturned
- the max item returnedpublic void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class ViewBase
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionprotected void internalWriteSearchSettingsToXml(EwsServiceXmlWriter writer, Grouping groupBy)
internalWriteSearchSettingsToXml
in class ViewBase
writer
- the writergroupBy
- the group bypublic void writeOrderByToXml(EwsServiceXmlWriter writer)
writeOrderByToXml
in class ViewBase
writer
- the writerprotected ServiceObjectType getServiceObjectType()
getServiceObjectType
in class ViewBase
public void internalValidate(ServiceRequestBase request) throws ServiceVersionException, ServiceValidationException
internalValidate
in class ViewBase
request
- the requestServiceVersionException
- the service version exceptionServiceValidationException
- the service validation exceptionprotected void internalWriteViewToXml(EwsServiceXmlWriter writer) throws Exception
internalWriteViewToXml
in class ViewBase
writer
- the writerException
- the exceptionprotected String getViewXmlElementName()
getViewXmlElementName
in class ViewBase
protected Integer getMaxEntriesReturned()
getMaxEntriesReturned
in class ViewBase
public Date getStartDate()
public void setStartDate(Date startDate)
startDate
- the new start datepublic Date getEndDate()
public void setEndDate(Date endDate)
endDate
- the new end datepublic Integer getMaxItemsReturned()
public void setMaxItemsReturned(Integer maxItemsReturned) throws ArgumentException
maxItemsReturned
- the new max item returnedArgumentException
- the argument exceptionpublic ItemTraversal getTraversal()
public void setTraversal(ItemTraversal traversal)
traversal
- the new traversalCopyright © 2012–2015 Microsoft. All rights reserved.