package com.alexanderlogistics.datev; /******************************************************************************* * Imixs Workflow Technology * Copyright (C) 2003, 2008 Imixs Software Solutions GmbH, * http://www.imixs.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You can receive a copy of the GNU General Public * License at http://www.gnu.org/licenses/gpl.html * * Contributors: * Imixs Software Solutions GmbH - initial API and implementation * Ralph Soika * *******************************************************************************/ import java.util.logging.Logger; import javax.enterprise.context.RequestScoped; import javax.inject.Named; import org.imixs.workflow.datev.imports.DatevImportScheduler; import org.imixs.workflow.engine.scheduler.SchedulerController; /** * The DatevController is used to configure the DatevScheduler. This service is * used to generate datev export workitems. *

* The Controller creates a configuration entity "type=configuration; * txtname=datev". *

* The following config items are defined: * * The following config items are defined: * *

 * _model_version = model version for the SEPA export
 * _initial_task = inital task ID
 * 
* * * @author rsoika * */ @Named @RequestScoped public class CargosoftExportController extends SchedulerController { public static final String CARGOSOFT_EXPORT_CONFIGURATION = "CARGOSOFT_EXPORT_CONFIGURATION"; private static final long serialVersionUID = 1L; private static Logger logger = Logger.getLogger(CargosoftExportController.class.getName()); @Override public String getName() { return CARGOSOFT_EXPORT_CONFIGURATION; } /** * Returns the sepa scheduler class name. This name depends on the _export_type. * * There are two export interfaces available - csv and XML * */ @Override public String getSchedulerClass() { String schedulerClass = CargosoftExportScheduler.class.getName(); logger.finest("...... scheduler: " + schedulerClass); return schedulerClass; } }