@Override public List<IntegrationBean> convertPresentationList( List<PresentationBean> presentationBeans, String scope) throws Exception { List<IntegrationBean> IntegrationBeans = new ArrayList<IntegrationBean>(); for (PresentationBean presentationBean : presentationBeans) { IntegrationBean IntegrationBean = ((Mapper) dozerBeanMapperFactoryBean.getObject()) .map(presentationBean, IntegrationBeanClass, scope); IntegrationBeans.add(IntegrationBean); } return IntegrationBeans; }
@Override public void convertPresentationList( List<PresentationBean> presentationBeans, List<IntegrationBean> integrationBeans, String scope) throws Exception { if (presentationBeans.size() != integrationBeans.size()) { throw new ListDiffersSizeException(); } for (int i = 0; i < presentationBeans.size(); i++) { ((Mapper) dozerBeanMapperFactoryBean.getObject()) .map(presentationBeans.get(i), integrationBeans.get(i), scope); } }
@Override public void convert( final IntegrationBean integrationBean, PresentationBean presentationBean, String scope) throws Exception { ((Mapper) dozerBeanMapperFactoryBean.getObject()).map(integrationBean, presentationBean, scope); }
@Override public PresentationBean convert(IntegrationBean integrationBean, String scope) throws Exception { return ((Mapper) dozerBeanMapperFactoryBean.getObject()) .map(integrationBean, presentationBeanClass, scope); }