Package org.apache.agila.services.user

Examples of org.apache.agila.services.user.UserInfo


    }

    public void show_user_preference( HttpServletRequest request, HttpServletResponse response ) throws ServletException,
    IOException {

        UserInfo user = userService.getUserInfo(new UserID (1));
        request.setAttribute( "email", user.getProperty("EMAIL_ADDRESS"));
        request.setAttribute( "graphManager", graphManager );
        request.setAttribute( "pageToDisplay", "/WEB-INF/view/userpreference.jsp" );
        doRender( request, response );
    }
View Full Code Here


    }

    public void save_user_preference( HttpServletRequest request, HttpServletResponse response ) throws ServletException,
    IOException {

        UserInfo user = userService.getUserInfo(new UserID (1));

        user.setProperty("EMAIL_ADDRESS",request.getParameter("txtEmail")) ;
        userService.saveUser(user);

        show_user_preference( request, response );
    }
View Full Code Here

        this.dao = dao;
    }

    protected UserInfo internalGetUserFromPrincipal(String principalName) {

        UserInfo info = dao.getUserFromPrincipal(principalName);
        return info;
    }
View Full Code Here

    private int counter = 0;

    protected UserInfo internalGetUserFromPrincipal(String principalName) {

        UserInfo info = (UserInfo) principalMap.get(principalName);

        return info;
    }
View Full Code Here

        return retVal;
    }

    public UserInfo getUserFromPrincipal(String principalName) {
        UserInfo retVal = null;

        Connection connection = null;

        try {
            String sql = "select userid from bpm_userinfo where principal = '" + principalName + "'";
View Full Code Here

        return retVal;
    }

    public UserInfo getUserInfo(UserID id) {
        UserInfo retVal = null;

        Connection connection = null;

        try {
            String sql = "select * from bpm_userinfo where userid = " + id;

            connection = getConnection();

            Statement statement = connection.createStatement();
            ResultSet result = statement.executeQuery( sql );
            result.next();

            retVal = new UserInfo();

            retVal.setUserName( result.getString( "name" ) );
            retVal.setUserPrincipal( result.getString( "principal" ) );
            retVal.setUserPassword( result.getString( "password" ) );
            retVal.setAdmin(result.getBoolean("isadmin"));
            retVal.setUserID( new UserID( result.getInt( "userid" ) ) );

            result.close();
            statement.close();
        } catch( SQLException e ) {
            throw new RuntimeException( e );
View Full Code Here

TOP

Related Classes of org.apache.agila.services.user.UserInfo

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.