Examples of UserModel


Examples of com.appspot.plucial.model.UserModel

     */
    public UserModel getUser() throws Exception {

        String userId = asString("user");

        UserModel userModel = UserService.getOrNull(userId);

        if(userModel == null) throw new Exception();

        return userModel;
    }
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

    protected static final JacksonFactory JSON_FACTORY = new JacksonFactory();

    @Override
    public Navigation run() throws Exception {

        UserModel userModel = null;

        try{
            userModel = getUser();
        }catch(Exception e) {
            return null;
        };

        // タスクは成功するまで実行されるため、失敗時は例外をキャッチして再実行をさせない
        List<ActivityModel> activityList =  userModel.getActivityModelListRef().getModelList();
        for(ActivityModel model: activityList) {
            try{
                TextSearchService.createDocument(model, userModel);

            }catch(Exception e) {
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

     */
    public UserModel getUser() throws Exception {

        String userId = asString("user");

        UserModel userModel = UserService.getOrNull(userId);

        if(userModel == null) throw new Exception();

        return userModel;
    }
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

public abstract class BaseController extends Controller {

    @Override
    protected Navigation run() throws Exception {

        UserModel loginUserModel = null;

        requestScope("pageTitle", setPageTitle());
        requestScope("pageDescription", setPageDescription());

        try {
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

     * @return
     * @throws Exception
     */
    private UserModel getLoginUserModel() throws UserLoginException {
        // セッションに含まれるステート
        UserModel userModel = sessionScope("userModel");

        if(userModel == null) throw new UserLoginException();

        return userModel;
    }
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

    protected static final JacksonFactory JSON_FACTORY = new JacksonFactory();

    @Override
    public Navigation run() throws Exception {

        UserModel userModel = null;

        try{
            userModel = getUser();
        }catch(Exception e) {
            return null;
        };

        // タスクは成功するまで実行されるため、失敗時は例外をキャッチして再実行をさせない
        try{
            getActivitys(userModel);

        }catch(TokenResponseException te) {

            logger.severe("User Token error:" + userModel.getKey().getName());

            // 利用者がGoogle+ 上で権限を取り消しした場合リフレッシュトークンが無効になる
            // トークンエラーが発生した場合は利用者のリフレッシュトークンをNULLに変更
//            userModel.setRefreshToken(null);
//            UserService.put(userModel);

        }catch(Exception e) {
            logger.severe(e.toString());

        }finally {
            // Task実行完了に変更
            userModel.setActivityBotPerformingFlg(false);
            UserService.put(userModel);
        }

        return null;
    }
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

        requestScope("pageTitle", setPageTitle());
        requestScope("pageDescription", setPageDescription());

        // アクセス承認
        try {
            UserModel loginUserModel = getLoginUser();
            requestScope("isLogin", String.valueOf(loginUserModel != null));
            requestScope("loginUserModel", loginUserModel);

            return execute(loginUserModel);
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

     * @return
     * @throws Exception
     */
    public UserModel getLoginUser() throws UserLoginException {

        UserModel userModel = sessionScope("userModel");

        if(userModel == null) throw new UserLoginException();

        return userModel;
    }
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

     */
    public UserModel getUser() throws Exception {

        String userId = asString("user");

        UserModel userModel = UserService.getOrNull(userId);

        if(userModel == null) throw new Exception();

        try {
            updateUserInfo(userModel);
View Full Code Here

Examples of com.appspot.plucial.model.UserModel

            }else {
                return null;
            }
        }

        UserModel usermodel = model.getUserModelRef().getModel();
        try {
            if(updateActivity(model, usermodel)) {
                model = dao.getOrNull(key);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.