PersonalStorageQueryBuilder

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

public final class PersonalStorageQueryBuilder extends MailQueryBuilder

Represents the builder of search expression that used by pst.

Constructors

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

Methods

Method Description
getOnlyFoldersCreatedByUser() Gets folders that created by user, i.e.
getMessageId() Gets the field that allows to find messages that contain the specified string in the envelope structure’s MessageId field.
getMessageClass() Gets messages with an specified message class.
getMessageSize() Search messages with an specified size.
getImportance() Search messages with an specified importance.
getContainerClass() Gets folders with an specified message class.
getFolderName() Search folders with an specified display name.
getContentsCount() Search folders with an specified contents count.
getUnreadContentsCount() Search folders with an specified unread contents count.
findConversationThread(MessageInfo relatedMessage) Finds the conversation thread.
hasFlags(long flags) Search messages with the specified flags.
hasNoFlags(long flags) Search messages with the unspecified flags.
hasSubfolders() Search folders which contains subfolders.
hasNoSubfolders() Search folders which does not contains subfolders.

PersonalStorageQueryBuilder()

public PersonalStorageQueryBuilder()

Initializes a new instance of the PersonalStorageQueryBuilder class.

getOnlyFoldersCreatedByUser()

public final BoolComparisonField getOnlyFoldersCreatedByUser()

Gets folders that created by user, i.e. excludes all standard IPM folders.

Value: TheBoolComparisonField that represents search field.

Returns: BoolComparisonField

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

getMessageClass()

public final StringComparisonField getMessageClass()

Gets messages with an specified message class.

Value: The StringComparisonField that represents a message class.

Returns: StringComparisonField

getMessageSize()

public final IntComparisonField getMessageSize()

Search messages with an specified size.

Returns: IntComparisonField

getImportance()

public final IntComparisonField getImportance()

Search messages with an specified importance.

Returns: IntComparisonField

getContainerClass()

public final StringComparisonField getContainerClass()

Gets folders with an specified message class.

Value: The StringComparisonField that represents a container class.

Returns: StringComparisonField

getFolderName()

public final StringComparisonField getFolderName()

Search folders with an specified display name.

Returns: StringComparisonField

getContentsCount()

public final IntComparisonField getContentsCount()

Search folders with an specified contents count.

Returns: IntComparisonField

getUnreadContentsCount()

public final IntComparisonField getUnreadContentsCount()

Search folders with an specified unread contents count.

Returns: IntComparisonField

findConversationThread(MessageInfo relatedMessage)

public final MailQuery findConversationThread(MessageInfo relatedMessage)

Finds the conversation thread.

Parameters:

Parameter Type Description
relatedMessage MessageInfo The related message.

Returns: MailQuery -

hasFlags(long flags)

public final MailQuery hasFlags(long flags)

Search messages with the specified flags.

Parameters:

Parameter Type Description
flags long The flags.

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

hasNoFlags(long flags)

public final MailQuery hasNoFlags(long flags)

Search messages with the unspecified flags.

Parameters:

Parameter Type Description
flags long The flags.

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

hasSubfolders()

public final MailQuery hasSubfolders()

Search folders which contains subfolders.

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

hasNoSubfolders()

public final MailQuery hasNoSubfolders()

Search folders which does not contains subfolders.

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