Coverage Summary for Class: ClientConverter (org.kitodo.production.converter)

Class Class, % Method, % Line, %
ClientConverter 100% (1/1) 100% (3/3) 100% (3/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 ClientConverter extends BeanConverter implements Converter {
 
     @Override
     public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
         return getAsObject(ServiceManager.getClientService(), value);
     }
 
     @Override
     public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) {
         return getAsString(value, "client");
     }
 }