|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.exchange.webdav.WebdavExerciser
This class is an exerciser for the Harmony for Exchange with WebDAV API.
To see its usage, runjava com.compoze.exchange.webdav.WebdavExerciser
with no arguments.
Constructor Summary | |
WebdavExerciser(Session session,
boolean bCleanup,
boolean bServerRefresh)
Constructor. |
Method Summary | |
void |
addAttachment(AbstractMessage message)
Adds an attachment to the message. |
void |
dumpAppointmentProperties(Appointment appointment)
Dumps the properties of an appointment. |
void |
dumpAttachmentInformantion(Attachment attachment)
Dumps attachment information. |
void |
dumpAttachments(java.util.List attachments)
Dumps a list of attachments. |
void |
dumpContact(Contact contact,
boolean bShort)
Dumps the information for a single contact. |
void |
dumpDistributionList(DistributionList dl)
Dumps the information for a single contact. |
void |
dumpDocument(Document document)
Dumps the information for a document. |
void |
dumpFolder(Folder folder)
Dumps the information for a single folder. |
void |
dumpItem(IItem item)
Dumps the information for a single item |
void |
dumpJournalEntry(JournalEntry entry)
Dumps the information for a single journal entry. |
void |
dumpMessage(Message message)
Dumps the information for a single message. |
void |
dumpNote(Note note)
Dumps the information for a single note. |
void |
dumpReport(Report report)
Dumps the information for a single report. |
void |
dumpTask(Task task)
Dumps the information for a single task. |
static void |
main(java.lang.String[] args)
Main (run with no arguments for usage). |
void |
testAppointments()
Test appointment functionality. |
void |
testAttachments()
Test for manipulating attachments in the Exchange Store. |
void |
testContacts()
Test contact functionality. |
void |
testCopyAppointment()
Test for requesting the server to copy appointment from default "Calendar" to another folder. |
void |
testCopyContact()
Test for requesting the server to copy contact from default "Contact" folder to another folder. |
void |
testCreateAllDayAppointment()
Test for requesting the server to create an all day appointment. |
void |
testCreateAppointment()
Test for requesting the server to create an appointment. |
void |
testCreateAppointmentWithAttachment()
Test for requesting the server to create an appointment. |
void |
testCreateAppointmentWithTimeZone()
Test for requesting the server to create an appointment with the timezone field (urn:schemase:calendar:timezone) set. |
void |
testCreateContact()
Test for requesting the server to create a contact |
void |
testCreateMonthlyAppointment1()
Test for requesting the server to create a monthly appointment. |
void |
testCreateMonthlyAppointment2()
Test for requesting the server to create a monthly appointment. |
void |
testCreateRecurringAppointmentWithTimeZone()
Test for requesting the server to create a weekly appointment with the urn:schemase:calendar:timezone field set. |
void |
testCreateWeeklyAppointment1()
Test for requesting the server to create a weekly appointment. |
void |
testCreateWeeklyAppointment2()
Test for requesting the server to create a weekly appointment. |
void |
testCreateYearlyAppointment1()
Test for requesting the server to create a yearly appointment. |
void |
testDocuments()
Test for manipulating documents in the Public Exchange Store. |
void |
testEditAppointment()
Test for requesting the server to edit an appointment. |
void |
testEditContact()
Test for requesting the server to create a contact |
void |
testFolders()
Tests manipulating folders in the user mailbox. |
void |
testGetAppointments(java.util.List properties,
java.util.Date startDate,
java.util.Date endDate,
boolean bExcludeMasterInstance,
SortOrder order,
RowRange range)
Test querying the server for a list of appointments. |
void |
testGetAppointments(java.util.List properties,
java.util.Date startDate,
java.util.Date endDate,
SortOrder order,
RowRange range)
Test querying the server for a list of appointments. |
void |
testGetContacts(java.util.List properties,
SortOrder order,
RowRange range)
Test for requesting the server to create a contact |
void |
testJournalEntries()
Test for manipulating journal entries in the Exchange Store. |
void |
testLoad()
Test load. |
void |
testMeetings()
Test for manipulating meetings (requests) in the Exchange Store. |
void |
testMessages()
Test for manipulating messages in the Exchange Store. |
void |
testMoveAppointment()
Test for requesting the server to move appointment from default "Calendar" to another folder. |
void |
testMoveContact()
Test for requesting the server to move contact from default "Contacts" folder to another folder. |
void |
testNotes()
Test for manipulating notes in the Exchange Store. |
void |
testPublicCalendar()
Test for manipulating appointments in the Public Exchange Store. |
void |
testPublicContacts()
Test for manipulating contacts in the Public Exchange Store. |
void |
testPublicFolders()
Tests manipulating folders in the Public Exchange Store. |
void |
testPublicMail()
Test for manipulating messages in the Public Exchange Store. |
void |
testSession()
Tests a session to the Exchange Store over WebDAV. |
void |
testTasks()
Test for manipulating tasks in the Exchange Store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebdavExerciser(Session session, boolean bCleanup, boolean bServerRefresh) throws ExchangeException
session
- the session connecting to the Exchange store over WebDAV
protocolMethod Detail |
public void testSession() throws ActiveDirectoryException, ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testFolders() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void dumpFolder(Folder folder) throws ExchangeException
folder
- the folder to dump informationpublic void testLoad() throws ExchangeException, java.net.MalformedURLException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testContacts() throws ExchangeException, java.net.MalformedURLException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testGetContacts(java.util.List properties, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)order
- the order to sort byrange
- the range of rows to returnExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateContact() throws ExchangeException, java.net.MalformedURLException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testEditContact() throws ExchangeException, java.net.MalformedURLException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testMoveContact() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCopyContact() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void dumpContact(Contact contact, boolean bShort) throws ExchangeException
contact
- the contact to dumppublic void dumpDistributionList(DistributionList dl) throws ExchangeException
contact
- the contact to dumppublic void testAppointments() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testGetAppointments(java.util.List properties, java.util.Date startDate, java.util.Date endDate, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)startDate
- the start date (inclusive)endDate
- the end date (exclusive)order
- the order to sort byrange
- the range of rows to returnExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testGetAppointments(java.util.List properties, java.util.Date startDate, java.util.Date endDate, boolean bExcludeMasterInstance, SortOrder order, RowRange range) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)startDate
- the start date (inclusive)endDate
- the end date (exclusive)bExcludeMasterInstance
- true
to exclude all master instances of recurring appointmentsorder
- the order to sort byrange
- the range of rows to returnExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateAppointment() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateAppointmentWithTimeZone() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateAppointmentWithAttachment() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateAllDayAppointment() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testEditAppointment() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testMoveAppointment() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCopyAppointment() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateWeeklyAppointment1() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateWeeklyAppointment2() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateYearlyAppointment1() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateMonthlyAppointment1() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateMonthlyAppointment2() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testCreateRecurringAppointmentWithTimeZone() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storepublic void dumpAppointmentProperties(Appointment appointment) throws ExchangeException
appointment
- the appointment to dumpExchangeException
- if a problem occurred while interacting with the Exchange storepublic void testMeetings() throws ExchangeException, InvalidRuleException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testMessages() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testAttachments() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void addAttachment(AbstractMessage message) throws ExchangeException
message
- the message to add the attachment to.public void dumpMessage(Message message) throws ExchangeException
message
- the message to dumppublic void dumpReport(Report report) throws ExchangeException
report
- the report to dump.ExchangeException
- public void testDocuments() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public void dumpDocument(Document document) throws ExchangeException
document
- the document to dump.ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public void testNotes() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange.public void dumpNote(Note note) throws ExchangeException
note
- the note to dump.ExchangeException
- public void testJournalEntries() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange.public void dumpJournalEntry(JournalEntry entry) throws ExchangeException
entry
- the journal entry to dump.ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange.public void testTasks() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange.public void dumpTask(Task task) throws ExchangeException
task
- the task to dump.ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange.public void dumpItem(IItem item) throws ExchangeException
item
- the item to dumppublic void dumpAttachments(java.util.List attachments)
public void dumpAttachmentInformantion(Attachment attachment)
attachment
- the attachment to dump.public void testPublicFolders() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testPublicContacts() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testPublicCalendar() throws ExchangeException, InvalidRuleException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic void testPublicMail() throws ExchangeException
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchangepublic static void main(java.lang.String[] args) throws java.lang.Throwable
args
- command line arguments
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |