Package org.apdplat.platform.service

Examples of org.apdplat.platform.service.ServiceFacade


        }
        return result;
    }

    private List<Command> getAllCommand(){
      ServiceFacade serviceFacade = SpringContextUtils.getBean("serviceFacade");
        List<Command> allCommand = serviceFacade.query(Command.class).getModels();
        return allCommand;
    }
View Full Code Here


        }

        return result;
    }
    private List<Module> getAllModule(){
      ServiceFacade serviceFacade = SpringContextUtils.getBean("serviceFacade");
        List<Module> allModule = serviceFacade.query(Module.class).getModels();
        return allModule;
    }
View Full Code Here

                        if(userLogin!=null){
                            LOG.info("开始记录用户 "+user.getUsername()+" 的注销日志");
                            userLogin.setLogoutTime(new Date());
                            userLogin.setOnlineTime(userLogin.getLogoutTime().getTime()-userLogin.getLoginTime().getTime());
                            //更新userLogin
                            ServiceFacade serviceFacade = SpringContextUtils.getBean("serviceFacadeForLog");
                            serviceFacade.update(userLogin);
                            logs.remove(user.getUsername());
                        }else{
                            LOG.info("无法记录用户 "+user.getUsername()+" 的注销日志,因为用户的登录日志不存在");
                        }
                    }else{
View Full Code Here

            UserLogin userLogin=logs.get(username);
            LOG.info("开始记录用户 "+username+" 的注销日志");
            userLogin.setLogoutTime(new Date());
            userLogin.setOnlineTime(userLogin.getLogoutTime().getTime()-userLogin.getLoginTime().getTime());
            //更新userLogin
            ServiceFacade serviceFacade = SpringContextUtils.getBean("serviceFacadeForLog");
            serviceFacade.update(userLogin);
            logs.remove(username);
        }
    }
View Full Code Here

TOP

Related Classes of org.apdplat.platform.service.ServiceFacade

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.