Package name.pehl.karaka.server.settings.entity

Examples of name.pehl.karaka.server.settings.entity.User


    @DefaultSettings
    Settings getDefaultSettings()
    {
        Settings settings = new Settings();
        settings.setFormatHoursAsFloatingPointNumber(false);
        User user = new User("_unknown_user_id_", "_unknown_username_", "_unknown_email_");
        settings.setUser(user);
        return settings;
    }
View Full Code Here


        if (count == 0)
        {
            logger.info("No settings found.");
            Settings newSettings = defaultSettings.get();
            com.google.appengine.api.users.User currentUser = UserServiceFactory.getUserService().getCurrentUser();
            User user = new User(currentUser.getUserId(), currentUser.getNickname(), currentUser.getEmail());
            newSettings.setUser(user);
            save(newSettings);
            logger.info("New settings created and saved: " + newSettings);
            return newSettings;
        }
View Full Code Here

TOP

Related Classes of name.pehl.karaka.server.settings.entity.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.