Search in sources :

Example 1 with PrivateOutlookMapping

use of de.janrufmonitor.repository.mapping.PrivateOutlookMapping in project janrufmonitor by tbrandt77.

the class OutlookContactProxy method setContactData.

private void setContactData(Dispatch contact, ICaller c, boolean business) {
    IOutlookMapping om = null;
    if (business)
        om = new BussinessOutlookMapping();
    else
        om = new PrivateOutlookMapping();
    Properties config = this.getRuntime().getConfigManagerFactory().getConfigManager().getProperties(NAMESPACE);
    if (config.getProperty("split", "true").equalsIgnoreCase("false")) {
        om = new DefaultOutlookMapping();
        PropagationFactory.getInstance().fire(new Message(Message.WARNING, getNamespace(), "olstore", new Exception("No split option selected.")));
    }
    OutlookMappingManager.getInstance().mapToOutlookCaller(contact, c, om);
}
Also used : DefaultOutlookMapping(de.janrufmonitor.repository.mapping.DefaultOutlookMapping) Message(de.janrufmonitor.exception.Message) BussinessOutlookMapping(de.janrufmonitor.repository.mapping.BussinessOutlookMapping) Properties(java.util.Properties) PrivateOutlookMapping(de.janrufmonitor.repository.mapping.PrivateOutlookMapping) ZipArchiveException(de.janrufmonitor.repository.zip.ZipArchiveException) SQLException(java.sql.SQLException) ComFailException(com.jacob.com.ComFailException) IOutlookMapping(de.janrufmonitor.repository.mapping.IOutlookMapping)

Aggregations

ComFailException (com.jacob.com.ComFailException)1 Message (de.janrufmonitor.exception.Message)1 BussinessOutlookMapping (de.janrufmonitor.repository.mapping.BussinessOutlookMapping)1 DefaultOutlookMapping (de.janrufmonitor.repository.mapping.DefaultOutlookMapping)1 IOutlookMapping (de.janrufmonitor.repository.mapping.IOutlookMapping)1 PrivateOutlookMapping (de.janrufmonitor.repository.mapping.PrivateOutlookMapping)1 ZipArchiveException (de.janrufmonitor.repository.zip.ZipArchiveException)1 SQLException (java.sql.SQLException)1 Properties (java.util.Properties)1