コード例 #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;
 }
コード例 #2
0
ファイル: OrgResourceRegistry.java プロジェクト: undyliu/mars
  @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;
  }
コード例 #3
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;
  }