java.lang.Object
de.uplanet.lucy.server.businesslogic.exchange.util.ExchangeUtils

@Scriptable public final class ExchangeUtils extends Object
This class consists exclusively of static methods that return MS Exchange utility/scriptable objects.
  • Constructor Details

    • ExchangeUtils

      public ExchangeUtils()
  • Method Details

    • getConnectionUtil

      public static ExchangeConnectionUtil getConnectionUtil()
      Returns the ExchangeConnectionUtil instance.
      Returns:
      The ExchangeConnectionUtil.
    • getMailboxUtil

      public static IExchangeMailboxUtil getMailboxUtil()
      Returns a IExchangeMailboxUtil instance initialized with the current context connection.
      Returns:
      The IExchangeMailboxUtil instance.
    • getMailboxUtil

      public static IExchangeMailboxUtil getMailboxUtil(Connection p_conn) throws IllegalArgumentException
      Returns a IExchangeMailboxUtil instance.
      Parameters:
      p_conn - The connection used to initialize the util instance.
      Returns:
      The IExchangeMailboxUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.
    • getMessageUtil

      public static IExchangeMessageUtil getMessageUtil()
      Returns a IExchangeMessageUtil instance initialized with the current context connection.
      Returns:
      The IExchangeMessageUtil instance.
    • getMessageUtil

      public static IExchangeMessageUtil getMessageUtil(Connection p_conn) throws IllegalArgumentException
      Returns a IExchangeMessageUtil instance.
      Parameters:
      p_conn - The connection used to initialize the util instance.
      Returns:
      The IExchangeMessageUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.
    • getItemUtil

      public static IExchangeItemUtil getItemUtil()
      Returns a IExchangeItemUtil instance initialized with the current context connection.
      Returns:
      The IExchangeItemUtil instance.
    • getItemUtil

      public static IExchangeItemUtil getItemUtil(Connection p_conn) throws IllegalArgumentException
      Returns a IExchangeItemUtil instance.
      Parameters:
      p_conn - The connection used to initialize the util instance
      Returns:
      The IExchangeItemUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.
    • getAppointmentUtil

      public static IExchangeAppointmentUtil getAppointmentUtil()
      Returns a IExchangeAppointmentUtil instance initialized with the current context connection.
      Returns:
      The IExchangeAppointmentUtil instance.
    • getAppointmentUtil

      public static IExchangeAppointmentUtil getAppointmentUtil(Connection p_conn) throws IllegalArgumentException
      Returns a IExchangeAppointmentUtil instance.
      Parameters:
      p_conn - The connection used to initialize the instance.
      Returns:
      The IExchangeAppointmentUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.
    • getTaskUtil

      public static IExchangeTaskUtil getTaskUtil()
      Returns a IExchangeTaskUtil instance initialized with the current context connection.
      Returns:
      The IExchangeTaskUtil instance.
    • getTaskUtil

      public static IExchangeTaskUtil getTaskUtil(Connection p_conn)
      Returns a IExchangeTaskUtil instance.
      Parameters:
      p_conn - The connection used to initialize the instance.
      Returns:
      The IExchangeTaskUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.
    • getContactUtil

      public static IExchangeContactUtil getContactUtil()
      Returns a IExchangeContactUtil instance initialized with the current context connection.
      Returns:
      The IExchangeContactUtil instance.
    • getContactUtil

      public static IExchangeContactUtil getContactUtil(Connection p_conn)
      Returns a IExchangeContactUtil instance.
      Parameters:
      p_conn - The connection used to initialize the instance.
      Returns:
      The IExchangeContactUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.
    • getNoteUtil

      public static IExchangeNoteUtil getNoteUtil()
      Returns a IExchangeNoteUtil instance initialized with the current context connection.
      Returns:
      The IExchangeNoteUtil instance.
    • getNoteUtil

      public static IExchangeNoteUtil getNoteUtil(Connection p_conn)
      Returns a IExchangeNoteUtil instance.
      Parameters:
      p_conn - The connection used to initialize the instance.
      Returns:
      The IExchangeNoteUtil instance.
      Throws:
      IllegalArgumentException - If the connection is null.