Examples of CampaignEventSO


Examples of org.criticalfailure.torchlight.core.campaign.services.so.CampaignEventSO

     * org.criticalfailure.torchlight.core.campaign.services.vo.translator.IStorageObjectTranslator#translateTo(java
     * .lang .Object)
     */
    public CampaignEventSO translateTo(CampaignEvent obj) {

        CampaignEventSO vo = new CampaignEventSO();

        vo.setId(obj.getId());
        vo.setCampaignId(obj.getCampaign().getId());
        vo.setDescription(obj.getDescription());
        vo.setStartDate(obj.getStartDate().toString());
        vo.setEndDate(obj.getEndDate().toString());
        vo.setInsertDate(obj.getInsertDate());

        Set<String> people = new HashSet<String>();
        for(ObjectInstance person : obj.getPeople()) {
            people.add(person.getId());
        }
        vo.setPeople(people);

        return vo;
    }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.campaign.services.so.CampaignEventSO

            String path = PathUtils.buildPath(storagePath, "campaign-events", id.substring(0, 1), id.substring(0, 2),
                    id);
            logger.trace("path: " + path);

            XMLDecoder dec = new XMLDecoder(new BufferedInputStream(new FileInputStream(path)));
            CampaignEventSO vo = (CampaignEventSO)dec.readObject();
            logger.trace("campaignEventVO: " + vo);

            dec.close();

            doSetStatus(CampaignStorageConstants.STORAGE_STATUS_ONLINE);
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.