コード例 #1
0
  protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    String serviceName = (String) getPageSessionAttribute(AMServiceProfile.SERVICE_NAME);
    List parentIds = (List) getPageSessionAttribute(AMServiceProfile.PG_SESSION_SUB_CONFIG_IDS);
    String parentId = AMAdminUtils.getString(parentIds, "/", true);

    try {
      model = new SubConfigModelImpl(req, serviceName, parentId, getPageSessionAttributes());
    } catch (AMConsoleException e) {
      debug.error("SubConfigAddViewBean.getModelInternal", e);
    }

    return model;
  }