Coverage Summary for Class: BatchConverter (org.kitodo.production.converter)
Class |
Class, %
|
Method, %
|
Line, %
|
BatchConverter |
0%
(0/1)
|
0%
(0/3)
|
0%
(0/3)
|
/*
* (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*/
package org.kitodo.production.converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.inject.Named;
import org.kitodo.production.services.ServiceManager;
@Named
public class BatchConverter extends BeanConverter implements Converter {
@Override
public Object getAsObject(FacesContext context, UIComponent component, String value) {
return getAsObject(ServiceManager.getBatchService(), value);
}
@Override
public String getAsString(FacesContext context, UIComponent component, Object value) {
return getAsString(value, "batch");
}
}