Package com.ebspos

Examples of com.ebspos.StaticCfg


*/
@RouteBind(path = "/")
public class WebadminController extends BaseController {
 
  public void index() {
    this.setAttr("StaticCfg", new StaticCfg());
    setAttr("root",getRequest().getContextPath());
//    Record m=this.getSessionAttr("manager");
    Record m=getCurrentUser();
    if(m==null){
      this.setAttr("StaticCfg", new StaticCfg());
    }else{
      List<Record> menus=fetchMenu(this.getCookie("user_token"),m.getLong("id"));
      if(menus!=null&&menus.isEmpty()==false){
        this.setAttr("menus",menus);
        this.setAttr("pid", menus.get(0).getLong("id"));
View Full Code Here


    this.setAttr("pid", getParaToLong(0));
    this.setAttr("menuChild", fetchMenu(this.getCookie("user_token"),m.getLong("id")));
  }
  @PowerBind
  public void loginDialog(){
    this.setAttr("StaticCfg", new StaticCfg());
    this.render("loginDialog.html");
  }
View Full Code Here

public class ManagerPowerInterceptor implements Interceptor {

  public void intercept(ActionInvocation ai) {
    Controller ctrl=ai.getController();
    ctrl.setAttr("root",ctrl.getRequest().getContextPath());
    ctrl.setAttr("StaticCfg", new StaticCfg());
    String user_token=ctrl.getCookie("user_token");
    Record po=(Record)MemcacheTool.mcc.get(user_token);
    if(po==null){
      /*String ckey=ai.getControllerKey();
      if(ckey.contains("webadmin")){
View Full Code Here

TOP

Related Classes of com.ebspos.StaticCfg

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.