com.moyosoft.connector.ms.outlook.item
Class ItemsCollection

java.lang.Object
  |
  +--com.moyosoft.connector.ms.outlook.item.ItemsCollection

public class ItemsCollection
extends java.lang.Object


Constructor Summary
ItemsCollection(OutlookFolder parentFolder, com.moyosoft.connector.com.Dispatch dispatch)
           
ItemsCollection(OutlookFolder parentFolder, com.moyosoft.connector.ms.outlook.item.Items items)
           
 
Method Summary
 OutlookItem createNew()
          Create new item in this collection.
 OutlookItem createNew(ItemType pType)
          Create new item in this collection.
 void deleteItem(OutlookItemID pItemId)
          Delete the item with the specified item's ID from this collection.
 void dispose()
           
 ItemsIterator findItems(java.lang.String pFilter)
          Search for a specific items in this collection.
 ItemsIterator findItems(java.lang.String pFilter, boolean pIncludeRecurrences)
          Search for items in this collection.
 OutlookItem get(int index)
           
 OutlookItem getItemById(OutlookItemID pItemId)
          Returns an item from this collection with the specified item's ID
 boolean isEmpty()
           
 ItemsIterator iterator()
           
 void remove(int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemsCollection

public ItemsCollection(OutlookFolder parentFolder,
                       com.moyosoft.connector.com.Dispatch dispatch)

ItemsCollection

public ItemsCollection(OutlookFolder parentFolder,
                       com.moyosoft.connector.ms.outlook.item.Items items)
Method Detail

size

public int size()

isEmpty

public boolean isEmpty()

iterator

public ItemsIterator iterator()

get

public OutlookItem get(int index)

remove

public void remove(int index)

createNew

public OutlookItem createNew()
                      throws com.moyosoft.connector.com.ComponentObjectModelException
Create new item in this collection.

Returns:
the created item
Throws:
com.moyosoft.connector.com.ComponentObjectModelException

createNew

public OutlookItem createNew(ItemType pType)
                      throws com.moyosoft.connector.com.ComponentObjectModelException
Create new item in this collection.

Parameters:
pType - new item's type
Returns:
the created item
Throws:
com.moyosoft.connector.com.ComponentObjectModelException

findItems

public ItemsIterator findItems(java.lang.String pFilter)
                        throws com.moyosoft.connector.com.ComponentObjectModelException
Search for a specific items in this collection.

Parameters:
pFilter - the find's filter.
Returns:
iterator over found items
Throws:
com.moyosoft.connector.com.ComponentObjectModelException

findItems

public ItemsIterator findItems(java.lang.String pFilter,
                               boolean pIncludeRecurrences)
                        throws com.moyosoft.connector.com.ComponentObjectModelException
Search for items in this collection.

Parameters:
pFilter - the find's filter.
pIncludeRecurrences - specify whether recurrent items are included or excluded. This is useful for searching recurrent appointments like anniversaries.
Returns:
iterator over found items
Throws:
com.moyosoft.connector.com.ComponentObjectModelException

getItemById

public OutlookItem getItemById(OutlookItemID pItemId)
                        throws com.moyosoft.connector.com.ComponentObjectModelException
Returns an item from this collection with the specified item's ID

Parameters:
pItemId - item's ID
Returns:
existing item
Throws:
com.moyosoft.connector.com.ComponentObjectModelException

deleteItem

public void deleteItem(OutlookItemID pItemId)
                throws com.moyosoft.connector.com.ComponentObjectModelException
Delete the item with the specified item's ID from this collection.

Parameters:
pItemId -
Returns:
Throws:
com.moyosoft.connector.com.ComponentObjectModelException

dispose

public void dispose()