Package net.loyin

Examples of net.loyin.StaticCfg


  @SuppressWarnings("unchecked")
  public void intercept(ActionInvocation ai) {
    Controller ctrl=ai.getController();
    ctrl.setAttr("root","");
    ctrl.setAttr("StaticCfg", new StaticCfg());
//    Record po= (Record)ctrl.getSessionAttr("manager");
    String sid=ctrl.getSession().getId();
    Record po=(Record)MemcacheTool.mcc.get(sid);
    if(po==null){
      /*String ckey=ai.getControllerKey();
View Full Code Here


*/
@RouteBind(path = "/")
public class WebadminController extends BaseController {
 
  public void index() {
    this.setAttr("StaticCfg", new StaticCfg());
//    Record m=this.getSessionAttr("manager");
    Record m=getCurrentUser();
    if(m==null){
      this.setAttr("StaticCfg", new StaticCfg());
    }else{
      List<Record> menus=fetchMenu();
      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());
  }
  @PowerBind
  public void loginDialog(){
    this.setAttr("StaticCfg", new StaticCfg());
    this.render("loginDialog.html");
  }
View Full Code Here

TOP

Related Classes of net.loyin.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.