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

Examples of lv.odylab.evemanage.client.rpc.dto.user.UserDto


    @Override
    public PreferencesDeleteCharacterActionResponse execute(PreferencesDeleteCharacterAction action) throws Exception {
        clientFacade.deleteCharacter(action.getCharacterID());

        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();
        List<CharacterDto> characters = clientFacade.getCharacters();
        List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();
        List<CharacterNameDto> characterNames = clientFacade.getCharacterNames();

        PreferencesDeleteCharacterActionResponse response = new PreferencesDeleteCharacterActionResponse();
View Full Code Here


    @Override
    public PreferencesSetMainCharacterActionResponse execute(PreferencesSetMainCharacterAction action) throws Exception {
        clientFacade.setMainCharacter(action.getCharacterName());

        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();

        PreferencesSetMainCharacterActionResponse response = new PreferencesSetMainCharacterActionResponse();
        response.setMainCharacter(mainCharacter);
        return response;
    }
View Full Code Here

        if (apiKeyString.length() != 64) {
            throw new InvalidApiKeyException(action.getApiKeyUserID(), ErrorCode.INVALID_API_KEY_ID);
        }
        clientFacade.createApiKey(apiKeyUserID, apiKeyString);
        List<ApiKeyDto> apiKeys = clientFacade.getApiKeys();
        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();
        List<CharacterDto> characters = clientFacade.getCharacters();
        List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();

        PreferencesAddApiKeyActionResponse response = new PreferencesAddApiKeyActionResponse();
        response.setApiKeys(apiKeys);
View Full Code Here

    @Override
    public PreferencesAddCharacterActionResponse execute(PreferencesAddCharacterAction action) throws Exception {
        Long characterID = action.getCharacterID();
        clientFacade.addCharacter(characterID);

        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();
        List<CharacterDto> characters = clientFacade.getCharacters();
        List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();
        List<CharacterNameDto> characterNames = clientFacade.getCharacterNames();

        PreferencesAddCharacterActionResponse response = new PreferencesAddCharacterActionResponse();
View Full Code Here

    @Override
    public PreferencesDeleteApiKeyActionResponse execute(PreferencesDeleteApiKeyAction action) throws Exception {
        Long apiKeyID = action.getApiKeyID();
        clientFacade.deleteApiKey(apiKeyID);
        List<ApiKeyDto> apiKeys = clientFacade.getApiKeys();
        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();
        List<CharacterDto> characters = clientFacade.getCharacters();
        List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();

        PreferencesDeleteApiKeyActionResponse response = new PreferencesDeleteApiKeyActionResponse();
        response.setApiKeys(apiKeys);
View Full Code Here

        this.clientFacade = clientFacade;
    }

    @Override
    public PreferencesTabFirstLoadActionResponse execute(PreferencesTabFirstLoadAction action) throws Exception {
        UserDto user = clientFacade.getCurrentUser();
        CharacterDto mainCharacter = user.getMainCharacter();
        List<CharacterDto> characters = clientFacade.getCharacters();
        List<ApiKeyDto> apiKeys = clientFacade.getApiKeys();
        List<CharacterNameDto> newCharacterNames = clientFacade.getAvailableNewCharacterNames();

        PreferencesTabFirstLoadActionResponse response = new PreferencesTabFirstLoadActionResponse();
View Full Code Here

public class EveManageDtoMapperImpl implements EveManageDtoMapper {

    @Override
    public UserDto map(User user, Class<UserDto> userDtoClass) {
        UserDto userDto = new UserDto();
        userDto.setId(user.getId());
        CharacterInfo mainCharacterInfo = user.getMainCharacterInfo();
        if (mainCharacterInfo != null) {
            CharacterDto mainCharacter = map(mainCharacterInfo, CharacterDto.class);
            userDto.setMainCharacter(mainCharacter);
        }
        return userDto;
    }
View Full Code Here

TOP

Related Classes of lv.odylab.evemanage.client.rpc.dto.user.UserDto

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.