Package models.User

Examples of models.User.AccountType


import models.User.AccountType;

public class TestUtil {

    public static User createUser(long id) throws Exception {
        AccountType type = (id % 2) == 0 ? AccountType.DROPBOX : AccountType.BOX;
        User user = new User(type);
        user.id = id;
        user.setName("Name " + id);
        user.setToken("sometoken");
        if (type == AccountType.DROPBOX) {
View Full Code Here


   
    /**
     * @return the currently logged in user, null if no logged in user
     */
    public static User getUser() {
        AccountType type = AccountType.fromDbValue(session.get(SessionKeys.TYPE));
        if (type == null) {
            Logger.info("User not logged in: no account type in session.");
            return null;
        }

View Full Code Here

TOP

Related Classes of models.User.AccountType

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.