Package lv.odylab.evemanage.domain.user

Examples of lv.odylab.evemanage.domain.user.User


                .filter("attachedCharacterInfo.corporationID", mainCharacterInfo.getCorporationID())
                .filter("id", priceSetID).get();
    }

    public PriceSet getForAllianceByPriceSetID(Long priceSetID, Key<User> userKey) {
        User user = objectifyFactory.begin().get(userKey);
        CharacterInfo mainCharacterInfo = user.getMainCharacterInfo();
        return objectifyFactory.begin().query(PriceSet.class)
                .filter("attachedCharacterInfo.allianceID", mainCharacterInfo.getAllianceID())
                .filter("id", priceSetID).get();
    }
View Full Code Here


        return blueprintDao.getAll(userKey);
    }

    @Override
    public List<Blueprint> getCorporationBlueprints(Key<User> userKey) {
        User user = userDao.get(userKey);
        CharacterInfo mainCharacterInfo = user.getMainCharacterInfo();
        if (mainCharacterInfo == null || mainCharacterInfo.getCorporationID() == null) {
            return Collections.emptyList();
        }
        return blueprintDao.getAllForCorporationID(mainCharacterInfo.getCorporationID());
    }
View Full Code Here

        return blueprintDao.getAllForCorporationID(mainCharacterInfo.getCorporationID());
    }

    @Override
    public List<Blueprint> getAllianceBlueprints(Key<User> userKey) {
        User user = userDao.get(userKey);
        CharacterInfo mainCharacterInfo = user.getMainCharacterInfo();
        if (mainCharacterInfo == null || mainCharacterInfo.getAllianceID() == null) {
            return Collections.emptyList();
        }
        return blueprintDao.getAllForAllianceID(mainCharacterInfo.getAllianceID());
    }
View Full Code Here

        return applicationFacade.login(requestUri, locale);
    }

    @Override
    public UserDto getCurrentUser() {
        User user = applicationFacade.getCurrentUser();
        return mapper.map(user, UserDto.class);
    }
View Full Code Here

        return mapper.map(user, UserDto.class);
    }

    @Override
    public List<CharacterNameDto> getAvailableAttachedCharacterNames() {
        User user = applicationFacade.getCurrentUser();
        List<CharacterNameDto> attachedCharacterNameDtos = new ArrayList<CharacterNameDto>();
        if (user.getCharacterInfos() != null) {
            for (CharacterInfo characterInfo : user.getCharacterInfos()) {
                attachedCharacterNameDtos.add(mapper.map(characterInfo, CharacterNameDto.class));
            }
        }
        return attachedCharacterNameDtos;
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.domain.user.User

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.