Package com.architecture.core.dao.entity

Examples of com.architecture.core.dao.entity.User


        String queryUser = ConfigHandler.getString(Conf.RUNTIME_DB_QL_QUERY_USER);
        Map<String, Object> map = new HashMap<String, Object>();
        map.put(KEY_USERNAME, username);
        map.put(KEY_PASSWORD, password);
        User user = (User) service.queryUnique(queryUser,map);

        if (null == user) {
            throw new GlobalException(Err.USERNAME_OR_PASSWORD_ERROR);
        }else{
            return user;
View Full Code Here


    private LoginVO loginVO;

    public String LoginAction() {

        try {
            User user = loginService.login(loginVO.getUsername(), loginVO.getPassword());
            super.addSessionProperties(SessionProp.USERNAME,user.getUsername());
            super.addSessionProperties(SessionProp.USER_LEVEL,user.getLevel());
            super.addSessionProperties(SessionProp.USER_GROUP,user.getGroup());
            super.addSessionProperties(SessionProp.USER_TYPE,user.getType());
            super.addSessionProperties(SessionProp.USER_ID,user.getId());
            super.addSessionProperties(SessionProp.LOCALE, user.getLocale());

            FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, ProcessHandler.getMessage(Process.USERNAME_OR_PASSWORD_ERROR,(String)super.getSessionProperties(SessionProp.LOCALE), null),null);
            FacesContext.getCurrentInstance().addMessage(null,msg);
            return SUCCESS;
View Full Code Here

TOP

Related Classes of com.architecture.core.dao.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.