Examples of BoCatalogPojo


Examples of org.hoteia.qalingo.core.pojo.catalog.BoCatalogPojo

    @Override
    public void postWritingDestinationValue(DozerEvent event) {
        if(event.getDestinationObject() instanceof BoCatalogPojo){
            if(event.getFieldMap().getDestFieldName().equals("id")){
                // INJECT BACKOFFICE URLS
                BoCatalogPojo catalogPojo = (BoCatalogPojo) event.getDestinationObject();
                try {
                    RequestData requestData = requestUtil.getRequestData(httpServletRequest);
                   
                    if(event.getSourceObject() instanceof CatalogMaster){
                        catalogPojo.setAddRootCategoryUrl(backofficeUrlService.generateUrl(BoUrls.MASTER_CATEGORY_ADD, requestData));
                       
                    } else if(event.getSourceObject() instanceof CatalogVirtual){
                        catalogPojo.setAddRootCategoryUrl(backofficeUrlService.generateUrl(BoUrls.VIRTUAL_CATEGORY_ADD, requestData));
                       
                    }
                } catch (Exception e) {
                    logger.error("postWritingDestinationValue error with BoCatalogPojo", e);
                }
View Full Code Here

Examples of org.hoteia.qalingo.core.pojo.catalog.BoCatalogPojo

public class CatalogCustomBeanFactory implements BeanFactory  {

    @Override
    public Object createBean(Object source, Class<?> sourceClass, String targetBeanId) {
        return new BoCatalogPojo();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.