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

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


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

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

            dec.close();

            doSetStatus(CampaignStorageConstants.STORAGE_STATUS_ONLINE);
View Full Code Here


            for(String objectPropertyId : so.getProperties()) {
                logger.trace("objectPropertyId: " + objectPropertyId);

                if(StringUtils.stripToNull(objectPropertyId) != null) {
                    ObjectPropertySO opVO = csm.loadObjectProperty(objectPropertyId);
                    logger.trace("opVO: " + opVO);

                    ObjectProperty op = objectPropertyStorageObjectTranslator.translateFrom(opVO, csm);
                    logger.trace("op: " + op);
View Full Code Here

        od.setName(so.getName());
        od.setValues(so.getValues());
        // od.setSequence(vo.getSequence());

        try {
            ObjectPropertySO opVO = csm.loadObjectProperty(so.getObjectPropertyId());
            logger.trace("opVO: " + opVO);

            ObjectProperty op = objectPropertyStorageObjectTranslator.translateFrom(opVO, csm);
            logger.trace("op: " + op);
View Full Code Here

     */
    public ObjectPropertySO translateTo(ObjectProperty obj) {

        logger.debug("translate to: " + obj);

        ObjectPropertySO so = new ObjectPropertySO();

        so.setId(obj.getId());
        so.setCampaignId(obj.getCampaign().getId());
        so.setName(obj.getName());
        so.setTemplate(obj.isTemplate());
        so.setInstanceLimit(obj.getInstanceValueLimit());
        // vo.setSequence(obj.getSequence());
        so.setCalculatorType(obj.getCalculatorType());
        so.setCalculatorInputs(obj.getCalculatorInputs());
        so.setCalculatorBody(obj.getCalculatorBody());
        so.setFormatterType(obj.getFormatterType());
        so.setFormatterBody(obj.getFormatterBody());
        so.setValidatorType(obj.getValidatorType());
        so.setValidatorBody(obj.getValidatorBody());

        return so;
    }
View Full Code Here

TOP

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

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.