com.moyosoft.connector.ms.outlook.addressentry
Class AddressEntry

java.lang.Object
  |
  +--com.moyosoft.connector.ms.outlook.addressentry.AddressEntry

public class AddressEntry
extends java.lang.Object


Constructor Summary
AddressEntry(com.moyosoft.connector.com.Dispatch dispatch)
           
 
Method Summary
 void delete()
           
 void deleteMapiProperty(byte[] guid, int propertyId)
          Deletes this item's MAPI property corresponding to the specified GUID and property ID.
 void deleteMapiProperty(int propertyTag)
          Deletes this item's MAPI property corresponding to the specified property tag.
 void displayDetails()
           
 void dispose()
           
 java.lang.String getAddress()
          Returns the address of this AddressEntry object.
 OutlookContact getContact()
          Returns the corresponding contact from a local contacts folder.
 com.moyosoft.connector.com.Dispatch getDispatch()
           
 DisplayType getDisplayType()
           
 java.lang.String getFreeBusy(java.util.Date start, int minPerChar)
           
 java.lang.String getId()
           
 AddressEntry getManager()
           
 java.lang.Object getMapiProperty(byte[] guid, int propertyId)
          Returns the value of this item's MAPI property corresponding to the specified GUID and property ID.
 java.lang.Object getMapiProperty(int propertyTag)
          Returns the value of this item's MAPI property corresponding to the specified property tag.
 AddressEntriesCollection getMembers()
           
 java.lang.String getName()
           
 OutlookItem getOutlookItem()
          Returns the corresponding item from a local folder.
 PropertyAccessor getPropertyAccessor()
          Returns the PropertyAccessor object for this item.
 java.lang.String getSmtpAddress()
          Returns the SMTP e-mail address.
 java.lang.String getType()
           
 void setAddress(java.lang.String value)
           
 void setMapiProperty(byte[] guid, int propertyId, java.lang.Object value)
          Sets the value of this item's MAPI property corresponding to the specified GUID and property ID.
 void setMapiProperty(int propertyTag, java.lang.Object value)
          Sets the value of this item's MAPI property corresponding to the specified property tag.
 void setName(java.lang.String value)
           
 void setType(java.lang.String value)
           
 void update()
           
 void update(boolean makePermanent)
           
 void update(boolean makePermanent, boolean refresh)
           
 void updateFreeBusy()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressEntry

public AddressEntry(com.moyosoft.connector.com.Dispatch dispatch)
Method Detail

getDispatch

public com.moyosoft.connector.com.Dispatch getDispatch()

getAddress

public java.lang.String getAddress()
Returns the address of this AddressEntry object. The type of the address is returned by the method getType() (e.g. "SMTP", "EX" types).


setAddress

public void setAddress(java.lang.String value)

getSmtpAddress

public java.lang.String getSmtpAddress()
                                throws com.moyosoft.connector.com.ComponentObjectModelException
Returns the SMTP e-mail address.

With the Basic edition of Java Outlook Connector, this method returns the same value as the getAddress() method.

With the Professional edition of Java Outlook Connector, this method:
- Translate an Exchange type address (type "EX") to an SMTP e-mail address and returns the SMTP address (Outlook 2002 or later); or
- Returns the same value as the getAddress() method for other types (e.g. "SMTP")

The address type of this AddressEntry object is returned by the method getType().

com.moyosoft.connector.com.ComponentObjectModelException

getDisplayType

public DisplayType getDisplayType()

getId

public java.lang.String getId()

getManager

public AddressEntry getManager()

getMembers

public AddressEntriesCollection getMembers()

getName

public java.lang.String getName()

setName

public void setName(java.lang.String value)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String value)

delete

public void delete()

displayDetails

public void displayDetails()

getFreeBusy

public java.lang.String getFreeBusy(java.util.Date start,
                                    int minPerChar)

update

public void update()

update

public void update(boolean makePermanent)

update

public void update(boolean makePermanent,
                   boolean refresh)

updateFreeBusy

public void updateFreeBusy()

getContact

public OutlookContact getContact()
Returns the corresponding contact from a local contacts folder. This method works only for local stores and returns null if Exchange is used.


getOutlookItem

public OutlookItem getOutlookItem()
Returns the corresponding item from a local folder. This method works only for local stores and returns null if Exchange is used.


dispose

public void dispose()

getMapiProperty

public java.lang.Object getMapiProperty(byte[] guid,
                                        int propertyId)
Returns the value of this item's MAPI property corresponding to the specified GUID and property ID. Returns null if the property doesn't exist.
This method is only available in the Professional edition of Java Outlook Connector.


getMapiProperty

public java.lang.Object getMapiProperty(int propertyTag)
Returns the value of this item's MAPI property corresponding to the specified property tag. Returns null if the property doesn't exist.
This method is only available in the Professional edition of Java Outlook Connector.


setMapiProperty

public void setMapiProperty(byte[] guid,
                            int propertyId,
                            java.lang.Object value)
Sets the value of this item's MAPI property corresponding to the specified GUID and property ID.
This method is only available in the Professional edition of Java Outlook Connector.


setMapiProperty

public void setMapiProperty(int propertyTag,
                            java.lang.Object value)
Sets the value of this item's MAPI property corresponding to the specified property tag.
This method is only available in the Professional edition of Java Outlook Connector.


deleteMapiProperty

public void deleteMapiProperty(int propertyTag)
Deletes this item's MAPI property corresponding to the specified property tag.
This method is only available in the Professional edition of Java Outlook Connector.


deleteMapiProperty

public void deleteMapiProperty(byte[] guid,
                               int propertyId)
Deletes this item's MAPI property corresponding to the specified GUID and property ID.
This method is only available in the Professional edition of Java Outlook Connector.


getPropertyAccessor

public PropertyAccessor getPropertyAccessor()
Returns the PropertyAccessor object for this item. The PropertyAccessor handles direct access to this item's properties. Only Outlook 2007 or later supports the PropertyAccessor. With older Outlook versions, this method returns null. This method is only available in the Professional edition of Java Outlook Connector.