package com.alexanderlogistics;

/*******************************************************************************
 *  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 org.imixs.workflow.engine.scheduler.SchedulerController;

import jakarta.enterprise.context.RequestScoped;
import jakarta.inject.Inject;
import jakarta.inject.Named;

/**
 * The OPListExportController is used to configure the OpListeExporterService.
 * This service is
 * used to export workitems.
 * <p>
 * The Controller creates a configuration entity "type=configuration;
 * txtname=OPLIST_EXPORT_CONFIGURATION".
 * 
 * 
 * @author rsoika
 * 
 */
@Named(value = "oplistExportController")
@RequestScoped
public class OPListExportController extends SchedulerController {

	public static final String OPLIST_EXPORT_CONFIGURATION = "OPLIST_EXPORT_CONFIGURATION";

	private static final long serialVersionUID = 1L;
	private static Logger logger = Logger.getLogger(OPListExportController.class.getName());

	@Inject
	OPListExportScheduler opListExportScheduler;

	@Override
	public String getName() {
		return OPLIST_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 = OPListExportScheduler.class.getName();
		logger.finest("...... scheduler: " + schedulerClass);
		return schedulerClass;
	}

}
