Package com.philip.journal.home.service.util

Examples of com.philip.journal.home.service.util.BeanToMapConverter.convert()


        final long locEntryId = parseId(this.entryId);
        try {
            final Entry entry = getServiceProxy().getEntryDetail(locEntryId);
            final BeanToMapConverter entryConverter = getResponseHandler().getConverterFactoryMap().get(
                    Constant.BeanConverter.ENTRY_TO_JSON);
            final Map<String, Object> converted = entryConverter.convert(entry);
            converted.put("branchId", "b-" + entry.getBranch().getBranchId());
            getResponseHandler().respondSuccess(getHttpServletResponse(), converted, DATA);
        } catch (final JournalException e) {
            getLogger().debug(e.getMessage(), e);
            getResponseHandler().respondFail(getHttpServletResponse(), e.getMessage());
View Full Code Here


                    Constant.BeanConverter.BRANCH_TO_JSON);
            final BeanToMapConverter entryConverter = getResponseHandler().getConverterFactoryMap().get(
                    Constant.BeanConverter.ENTRY_TO_JSONNODE);

            final List<Map<String, Object>> convertedBranches = branchConverter.convert(children);
            final List<Map<String, Object>> convertedEntries = entryConverter.convert(entries);

            final List<Map<String, Object>> converted = new ArrayList<Map<String, Object>>();
            converted.addAll(convertedBranches);
            converted.addAll(convertedEntries);
            patchId(converted);
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.