ExchangeQueryBuilder

Inheritance: java.lang.Object, com.aspose.email.MailQueryBuilder

public final class ExchangeQueryBuilder extends MailQueryBuilder

Represents the builder of search expression based on search filters that used by Exchange protocol.

Constructors

Constructor Description
ExchangeQueryBuilder() Initializes a new instance of the ExchangeQueryBuilder class.

Methods

Method Description
getItemSize() Gets the field that allows to find items with a specified size.
getAttachmentName() Gets the field that allows to find items with a specified attachment name.
getTaskStatus() Gets the field that allows to find tasks that contains the specified status.
getMessageId() Gets the field that allows to find messages that contain the specified string in the envelope structure’s MessageId field.
getContentClass() Gets items with an specified content class.
getExtendedProperties()
getAppointment() Gets object with appointment properties to create query
getContact() Gets object with contact properties to create query
hasFlags(int flags) Search messages with the specified flags.
hasNoFlags(int flags) Search messages with the unspecified flags.

ExchangeQueryBuilder()

public ExchangeQueryBuilder()

Initializes a new instance of the ExchangeQueryBuilder class.

getItemSize()

public final IntComparisonField getItemSize()

Gets the field that allows to find items with a specified size.

Returns: IntComparisonField

getAttachmentName()

public final StringComparisonField getAttachmentName()

Gets the field that allows to find items with a specified attachment name.

Returns: StringComparisonField

getTaskStatus()

public final EnumComparisonField getTaskStatus()

Gets the field that allows to find tasks that contains the specified status. Server compatibility: Exchange 2010 and higher

Returns: EnumComparisonField

getMessageId()

public final StringComparisonField getMessageId()

Gets the field that allows to find messages that contain the specified string in the envelope structure’s MessageId field.

Value: The DateComparisonField that represents MessageId search field.

Returns: StringComparisonField

getContentClass()

public final StringComparisonField getContentClass()

Gets items with an specified content class.

Value: The StringComparisonField that represents a content class.

Returns: StringComparisonField

getExtendedProperties()

public final ExtendedPropertiesComparisonField getExtendedProperties()

Value: Gets dictionary with pairs of property descriptors and comparison field to search by extended properties.

Returns: ExtendedPropertiesComparisonField

getAppointment()

public final AppointmentQueryBuilder getAppointment()

Gets object with appointment properties to create query

Returns: AppointmentQueryBuilder

getContact()

public final ContactQueryBuilder getContact()

Gets object with contact properties to create query

Returns: ContactQueryBuilder

hasFlags(int flags)

public final MailQuery hasFlags(int flags)

Search messages with the specified flags.

Parameters:

Parameter Type Description
flags int The flags.

Returns: MailQuery - MailQuery that represents search query (one searching criteria).

hasNoFlags(int flags)

public final MailQuery hasNoFlags(int flags)

Search messages with the unspecified flags.

Parameters:

Parameter Type Description
flags int The flags.

Returns: MailQuery - MailQuery that represents search query (one searching criteria).