Exemplo 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;
 }
Exemplo n.º 2
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;
  }