Esempio n. 1
0
 private Resource getAuthElementResource() {
   Resource element = new Resource(KEY_ELEMENT_RESOURCE, "权限要素");
   element.addChild(ActionHelper.getSettingAction());
   element.addChild(ActionHelper.getWatchAction());
   element.addChild(ActionHelper.getHelpAction());
   return element;
 }
Esempio n. 2
0
  @Override
  public AbstractResource getRootResouce() {
    Resource root = new Resource("system.auth", "权限管理");
    root.addChild(getAuthElementResource());
    root.addChild(getDatasopeResource());
    root.addChild(getRoleResource());
    root.addChild(getUserResource());

    Resource top = new Resource("top.platform.manager", "应用平台");
    top.addChild(root);
    return top;
  }
Esempio n. 3
0
  @Override
  public AbstractResource getRootResouce() {
    Resource org = new Resource(KEY_ORG_RESOURCE, "组织机构");

    org.addChild(ActionHelper.getAddAction());
    org.addChild(ActionHelper.getDeleteAction());
    org.addChild(ActionHelper.getEditAction());
    org.addChild(ActionHelper.getWatchAction());
    org.addChild(ActionHelper.getHelpAction());

    Resource root = new Resource("top.platform.manager", "应用平台");
    root.addChild(org);
    return root;
  }