Package lv.odylab.evemanage.client.rpc.dto.eve

Examples of lv.odylab.evemanage.client.rpc.dto.eve.CharacterNameDto


        }
        setSelectedIndex(0);
    }

    public CharacterNameDto getAttachedCharacterName() {
        CharacterNameDto attachedCharacterName = new CharacterNameDto();
        if (!"-1".equals(getValue(getSelectedIndex()))) {
            attachedCharacterName.setId(Long.valueOf(getValue(getSelectedIndex())));
        }
        attachedCharacterName.setName(getItemText(getSelectedIndex()));
        return attachedCharacterName;
    }
View Full Code Here


    @Override
    public PriceSetCopyActionResponse execute(PriceSetCopyAction action) throws Exception {
        PriceSetDto originalPriceSet = clientFacade.getPriceSet(action.getPriceSetID());
        PriceSetDto newPriceSet = clientFacade.createPriceSet(action.getPriceSetName());
        Long attachedCharacterID = null;
        CharacterNameDto attachedCharacterName = originalPriceSet.getAttachedCharacterName();
        if (attachedCharacterName != null) {
            attachedCharacterID = attachedCharacterName.getId();
        }
        clientFacade.savePriceSet(newPriceSet.getId(), originalPriceSet.getItems(), originalPriceSet.getSharingLevel(), attachedCharacterID);

        PriceSetDto priceSet = clientFacade.getPriceSet(newPriceSet.getId());
        List<PriceSetNameDto> priceSetNames = clientFacade.getPriceSetNames();
View Full Code Here

    }

    @Override
    public PriceSetSaveActionResponse execute(PriceSetSaveAction action) throws Exception {
        PriceSetDto priceSet = action.getPriceSet();
        CharacterNameDto attachedCharacterName = priceSet.getAttachedCharacterName();
        Long attachedCharacterID = null;
        if (attachedCharacterName != null) {
            attachedCharacterID = attachedCharacterName.getId();
        }
        clientFacade.savePriceSet(priceSet.getId(), priceSet.getItems(), priceSet.getSharingLevel(), attachedCharacterID);

        PriceSetSaveActionResponse response = new PriceSetSaveActionResponse();
        response.setPriceSet(clientFacade.getPriceSet(priceSet.getId()));
View Full Code Here

        List<CharacterNameDto> availableNewCharacterNames = new ArrayList<CharacterNameDto>();
        for (ApiKey apiKey : apiKeys) {
            for (ApiKeyCharacterInfo apiKeyCharacterInfo : apiKey.getCharacterInfos()) {
                if (!usedCharacterNames.contains(apiKeyCharacterInfo.getName())) {
                    CharacterNameDto characterName = new CharacterNameDto();
                    characterName.setId(apiKeyCharacterInfo.getCharacterID());
                    characterName.setName(apiKeyCharacterInfo.getName());
                    availableNewCharacterNames.add(characterName);
                }
            }
        }
        return availableNewCharacterNames;
View Full Code Here

    @Override
    public List<CharacterNameDto> getCharacterNames(Key<User> userKey) {
        List<Character> characters = characterDao.getAll(userKey);
        List<CharacterNameDto> characterNames = new ArrayList<CharacterNameDto>();
        for (Character character : characters) {
            CharacterNameDto characterName = new CharacterNameDto();
            characterName.setId(character.getCharacterID());
            characterName.setName(character.getName());
            characterNames.add(characterName);
        }
        return characterNames;
    }
View Full Code Here

        return characterDto;
    }

    @Override
    public CharacterNameDto map(CharacterInfo characterInfo, Class<CharacterNameDto> characterNameDtoClass) {
        CharacterNameDto attachedCharacterNameDto = new CharacterNameDto();
        attachedCharacterNameDto.setId(characterInfo.getCharacterID());
        attachedCharacterNameDto.setName(characterInfo.getName());
        return attachedCharacterNameDto;
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.client.rpc.dto.eve.CharacterNameDto

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.