de.uplanet.lucy.server.businesslogic.exchange.util.impl
Class ExchangeAppointmentUtil

java.lang.Object
  extended by de.uplanet.lucy.server.businesslogic.exchange.util.impl.ExchangeAppointmentUtil
All Implemented Interfaces:
IExchangeAppointmentUtil

@Scriptable
public class ExchangeAppointmentUtil
extends java.lang.Object
implements IExchangeAppointmentUtil

Utility class for MS Exchange appointments.

Version:
$Revision: 89488 $

Method Summary
 void cancelMeeting(java.lang.String p_strAppointmentId)
          Cancels a meeting.
 IExchangeAppointment createNewAppointment(java.util.Date p_dateStart, java.util.Date p_dateEnd, java.lang.String p_strSubject, java.lang.String p_strBody)
          Creates a new appointment in the current user's mailbox.
 IExchangeAppointment createNewAppointment(java.util.Date p_dateStart, java.util.Date p_dateEnd, java.lang.String p_strSubject, java.lang.String p_strBody, java.lang.String p_strFKUserMailbox)
          Creates a new appointment in another user's mailbox.
 IExchangeAppointment createNewMeeting(java.util.Date p_dateStart, java.util.Date p_dateEnd, java.lang.String p_strSubject, java.lang.String p_strBody, java.lang.String p_strLocation, java.lang.String p_strAttendees, boolean p_bResponseRequested)
          Creates a new meeting with attendees.
 IExchangeAppointment createNewMeeting(java.util.Date p_dateStart, java.util.Date p_dateEnd, java.lang.String p_strSubject, java.lang.String p_strBody, java.lang.String p_strLocation, java.lang.String p_strAttendees, boolean p_bResponseRequested, java.lang.String p_strFKUserMailbox)
          Creates a new meeting with attendees in another user's mailbox.
 IExchangeAppointment findById(java.lang.String p_strId)
          Loads an appointment with the given ID.
 IExchangeAppointment findByPermanentUrl(java.lang.String p_strPermUrl)
          Loads a appointment with the given permanent URL.
static IExchangeAppointmentUtil getInstance()
          Returns an instance initialized with a Exchange connection for the currently logged in user.
static IExchangeAppointmentUtil getInstance(java.sql.Connection p_conn)
          Returns an instance initialized with the given Exchange connection.
 void sendMeetingRequest(java.lang.String p_strAppointmentId)
          Sends meeting request mails to all participants of an appointment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IExchangeAppointmentUtil getInstance()
Returns an instance initialized with a Exchange connection for the currently logged in user.

Returns:
The instance.

getInstance

public static IExchangeAppointmentUtil getInstance(java.sql.Connection p_conn)
Returns an instance initialized with the given Exchange connection.

Parameters:
p_conn - The MS Exchange connection.
Returns:
The instance.

createNewAppointment

public IExchangeAppointment createNewAppointment(java.util.Date p_dateStart,
                                                 java.util.Date p_dateEnd,
                                                 java.lang.String p_strSubject,
                                                 java.lang.String p_strBody)
                                          throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Creates a new appointment in the current user's mailbox.

Specified by:
createNewAppointment in interface IExchangeAppointmentUtil
Parameters:
p_dateStart - The start date.
p_dateEnd - The end date.
p_strSubject - The appointment subject.
p_strBody - The appointment body.
Returns:
The IExchangeAppointment instance.
Throws:
ExchangeUtilException - If appointment could not be created.

createNewAppointment

public IExchangeAppointment createNewAppointment(java.util.Date p_dateStart,
                                                 java.util.Date p_dateEnd,
                                                 java.lang.String p_strSubject,
                                                 java.lang.String p_strBody,
                                                 java.lang.String p_strFKUserMailbox)
                                          throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Creates a new appointment in another user's mailbox.

Specified by:
createNewAppointment in interface IExchangeAppointmentUtil
Parameters:
p_dateStart - The start date.
p_dateEnd - The end date.
p_strSubject - The appointment subject.
p_strBody - The appointment body.
p_strFKUserMailbox - The name of the user's mailbox.
Returns:
The IExchangeAppointment instance.
Throws:
ExchangeUtilException - If appointment could not be created.

createNewMeeting

public IExchangeAppointment createNewMeeting(java.util.Date p_dateStart,
                                             java.util.Date p_dateEnd,
                                             java.lang.String p_strSubject,
                                             java.lang.String p_strBody,
                                             java.lang.String p_strLocation,
                                             java.lang.String p_strAttendees,
                                             boolean p_bResponseRequested)
                                      throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Creates a new meeting with attendees.

Specified by:
createNewMeeting in interface IExchangeAppointmentUtil
Parameters:
p_dateStart - The start date.
p_dateEnd - The end date.
p_strSubject - The appointment subject.
p_strBody - The appointment body.
p_strLocation - The meeting location.
p_strAttendees - A comma-separated list of attendees (email address).
p_bResponseRequested - True if a response is requested from the attendees.
Returns:
The IExchangeAppointment instance.
Throws:
ExchangeUtilException - If appointment could not be created.

createNewMeeting

public IExchangeAppointment createNewMeeting(java.util.Date p_dateStart,
                                             java.util.Date p_dateEnd,
                                             java.lang.String p_strSubject,
                                             java.lang.String p_strBody,
                                             java.lang.String p_strLocation,
                                             java.lang.String p_strAttendees,
                                             boolean p_bResponseRequested,
                                             java.lang.String p_strFKUserMailbox)
                                      throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Creates a new meeting with attendees in another user's mailbox.

Specified by:
createNewMeeting in interface IExchangeAppointmentUtil
Parameters:
p_dateStart - The start date.
p_dateEnd - The end date.
p_strSubject - The appointment subject.
p_strBody - The appointment body.
p_strLocation - The meeting location.
p_strAttendees - A comma-separated list of attendees (email address).
p_bResponseRequested - True if a response is requested from the attendees.
p_strFKUserMailbox - The name of the user's mailbox.
Returns:
The IExchangeAppointment instance.
Throws:
ExchangeUtilException - If appointment could not be created.

findById

public IExchangeAppointment findById(java.lang.String p_strId)
                              throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Loads an appointment with the given ID.

Specified by:
findById in interface IExchangeAppointmentUtil
Parameters:
p_strId - The appointment ID.
Returns:
The IExchangeAppointment instance.
Throws:
ExchangeUtilException - If appointment could not be found.

findByPermanentUrl

public IExchangeAppointment findByPermanentUrl(java.lang.String p_strPermUrl)
                                        throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Loads a appointment with the given permanent URL.

Specified by:
findByPermanentUrl in interface IExchangeAppointmentUtil
Parameters:
p_strPermUrl - The permanent URL.
Returns:
The IExchangeAppointment instance.
Throws:
ExchangeUtilException - If appointment could not be found.

sendMeetingRequest

public void sendMeetingRequest(java.lang.String p_strAppointmentId)
                        throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Sends meeting request mails to all participants of an appointment.

Specified by:
sendMeetingRequest in interface IExchangeAppointmentUtil
Parameters:
p_strAppointmentId - The ID of the appointment.
Throws:
ExchangeUtilException - If operation failed.

cancelMeeting

public void cancelMeeting(java.lang.String p_strAppointmentId)
                   throws de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtilException
Description copied from interface: IExchangeAppointmentUtil
Cancels a meeting.

Specified by:
cancelMeeting in interface IExchangeAppointmentUtil
Parameters:
p_strAppointmentId - The ID of the appointment.
Throws:
ExchangeUtilException - If operation failed.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.