Package org.criticalfailure.torchlight.core.campaign.services.so

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


        try {
            String path = PathUtils.buildPath(storagePath, "object-data", id.substring(0, 1), id.substring(0, 2), id);
            logger.trace("path: " + path);

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

            dec.close();

            doSetStatus(CampaignStorageConstants.STORAGE_STATUS_ONLINE);
View Full Code Here


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

        ObjectDataSO vo = new ObjectDataSO();

        vo.setId(obj.getId());
        vo.setCampaignId(obj.getCampaign().getId());
        vo.setName(obj.getName());
        if(obj.getObjectProperty() != null) {
            vo.setObjectPropertyId(obj.getObjectProperty().getId());
        }
        vo.setValues(obj.getValues());
        // vo.setSequence(obj.getSequence());

        return vo;
    }
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.campaign.services.so.ObjectDataSO

Copyright © 2018 www.massapicom. 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.