Package in.partake.model

Examples of in.partake.model.UserEx


                user.setProfileImageURL(twitterLinkage.getProfileImageURL());
                daos.getUserAccess().put(con, user);
                user.freeze();
            }
        }
        return new UserEx(user, twitterLinkage);
    }
View Full Code Here


        String identity = PartakeApp.getOpenIDService().getIdentifier(receivingURL, params, discoveryInformation);
        if (identity == null)
            return renderRedirect("/", MessageCode.MESSAGE_OPENID_LOGIN_FAILURE);

        // TODO: UserEx が identifier から取れるべき
        UserEx user = new GetUserFromOpenIDIdentifierTransaction(identity).execute();
        if (user != null) {
            session().put(Constants.Session.USER_ID_KEY, user.getId());
            if (getRedirectURL() == null)
                return renderRedirect("/");
            else
                return renderRedirect(getRedirectURL());
        } else {
View Full Code Here

    public static Result get() throws DAOException, PartakeException {
        return new MypageAction().execute();
    }

    public Result doExecute() throws DAOException, PartakeException {
        UserEx user = ensureLogin();

        MypageActionTransaction transaction = new MypageActionTransaction(user.getId());
        transaction.execute();

        preference = transaction.getPreference();
        openIds = transaction.getOpenIds();
        calendarLink = transaction.getCalendarLink();
View Full Code Here

    protected UserEx getLoginUser() {
        return ctx.loginUser;
    }

    protected UserEx ensureLogin() throws PartakeException {
        UserEx user = getLoginUser();
        if (user == null)
            throw new PartakeException(UserErrorCode.INVALID_LOGIN_REQUIRED);

        return user;
    }
View Full Code Here

        return user;
    }

    protected UserEx ensureAdmin() throws PartakeException {
        UserEx user = ensureLogin();
        if (!user.isAdministrator())
            throw new PartakeException(UserErrorCode.INVALID_PROHIBITED);

        return user;
    }
View Full Code Here

        return new SetPreferenceAPI().execute();
    }

    @Override
    public Result doExecute() throws DAOException, PartakeException {
        UserEx user = ensureLogin();
        ensureValidSessionToken();

        new SetPreferenceAPITransaction(
                user,
                getBooleanParameter("profilePublic"),
View Full Code Here

TOP

Related Classes of in.partake.model.UserEx

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.