MessageStore

Inheritance: java.lang.Object

public class MessageStore

Message store is the root of the PST, which is the rough equivalent of the top of a Mailbox.

Methods

Method Description
getDisplayName() Gets the display Name of PST.
getProperties() Gets the MAPI properties of message store object.
isPasswordProtected() Gets a value indicating whether the storage is password protected.
isPasswordValid(String password) Determines whether the specified string is a valid password for the storage.
changeDisplayName(String newName) Changes the pst display name.
changePassword(String password) Sets the password.
setProperty(MapiProperty property) Sets the property.

getDisplayName()

public final String getDisplayName()

Gets the display Name of PST.

Value: The string that represents display name.

Returns: java.lang.String

getProperties()

public final MapiPropertyCollection getProperties()

Gets the MAPI properties of message store object. The message store contains the top-level PST settings and metadata that are required to access and manage the PST contents.

Value: The MapiProperty collection.

Returns: MapiPropertyCollection

isPasswordProtected()

public final boolean isPasswordProtected()

Gets a value indicating whether the storage is password protected.

Value: ``` true ``` if the storage is password protected; otherwise, ``` false ```.

Returns: boolean

isPasswordValid(String password)

public final boolean isPasswordValid(String password)

Determines whether the specified string is a valid password for the storage.

Parameters:

Parameter Type Description
password java.lang.String The password string.

Returns: boolean

changeDisplayName(String newName)

public final void changeDisplayName(String newName)

Changes the pst display name.

Parameters:

Parameter Type Description
newName java.lang.String The new display name of message store.

changePassword(String password)

public final void changePassword(String password)

Sets the password.

Parameters:

Parameter Type Description
password java.lang.String The string that represents the password.

setProperty(MapiProperty property)

public final void setProperty(MapiProperty property)

Sets the property.

Parameters:

Parameter Type Description
property MapiProperty The property.