Package lv.odylab.evemanage.domain.priceset

Examples of lv.odylab.evemanage.domain.priceset.PriceSet


        return priceSetNameDtos;
    }

    @Override
    public PriceSetDto createPriceSet(String priceSetName) throws InvalidNameException {
        PriceSet priceSet = applicationFacade.createPriceSet(priceSetName);
        return mapper.map(priceSet, PriceSetDto.class);
    }
View Full Code Here


    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        try {
            Long priceSetID = Long.valueOf(req.getParameter("priceSetID"));
            logger.debug("Checking price set for consistency: {}", priceSetID);
            PriceSet priceSet = priceSetDao.get(new Key<PriceSet>(PriceSet.class, priceSetID));
            CharacterInfo attachedCharacterInfo = priceSet.getAttachedCharacterInfo();
            if (attachedCharacterInfo == null) {
                logger.debug("Price set does not have attached character, skipping");
                return;
            }
            try {
                Character character = characterDao.get(new Key<Character>(Character.class, attachedCharacterInfo.getId()));
                logger.debug("Updating price set attached character information: {} ({})", character.getName(), character.getCharacterID());
                attachedCharacterInfo.setCharacterID(character.getCharacterID());
                attachedCharacterInfo.setName(character.getName());
                attachedCharacterInfo.setCorporationID(character.getCorporationID());
                attachedCharacterInfo.setCorporationName(character.getCorporationName());
                attachedCharacterInfo.setCorporationTicker(character.getCorporationTicker());
                attachedCharacterInfo.setAllianceID(character.getAllianceID());
                attachedCharacterInfo.setAllianceName(character.getAllianceName());
            } catch (NotFoundException e) {
                logger.warn("Attached character does not exist: {}", attachedCharacterInfo.getId());
                priceSet.setAttachedCharacterInfo(null);
            }
            priceSetDao.putWithoutChecks(priceSet);
        } catch (Throwable t) {
            logger.error("Caught Throwable", t);
        }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.domain.priceset.PriceSet

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.