コード例 #1
0
 /**
  * Displays the advanced profile of a serer.
  *
  * @param event Display Event.
  */
 public void beginDisplay(DisplayEvent event) throws ModelControlException {
   super.beginDisplay(event);
   String serverName =
       (String) getPageSessionAttribute(ServerEditViewBeanBase.PG_ATTR_SERVER_NAME);
   ServerSiteModel model = (ServerSiteModel) getModel();
   ptModel.setPageTitleText(model.getEditServerPageTitle(serverName));
   getProperties();
 }
コード例 #2
0
  public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);
    if (populateValues) {
      int index = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
      List list = (List) getPageSessionAttribute("samlPropertyAttributes");
      setValues(AMPipeDelimitAttrTokenizer.getInstance().tokenizes((String) list.get(index)));
    }

    Set attributeNames = getAttributeNames();
    if (attributeNames.contains(SAMLConstants.VERSION)) {
      CCDropDownMenu menu = (CCDropDownMenu) getChild(SAMLConstants.VERSION);
      String version = (String) menu.getValue();
      if ((version == null) || (version.length() == 0)) {
        menu.setValue("1.1");
      }
    }
  }
コード例 #3
0
  public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);
    SubConfigModel model = (SubConfigModel) getModel();
    String schemaName =
        (String) getPageSessionAttribute(AMServiceProfile.PG_SESSION_SUB_SCHEMA_NAME);

    if (!submitCycle) {
      AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
      propertySheetModel.clear();

      try {
        ps.setAttributeValues(model.getServiceSchemaDefaultValues(schemaName), model);
      } catch (AMConsoleException a) {
        setInlineAlertMessage(CCAlert.TYPE_WARNING, "message.warning", "noproperties.message");
      }
    }

    Set subconfigNames = model.getSelectableConfigNames(schemaName);
    if ((subconfigNames != null) && !subconfigNames.isEmpty()) {
      CCDropDownMenu menu = (CCDropDownMenu) getChild(ATTR_SUBCONFIG_NAME);
      OptionList optList = this.createOptionList(subconfigNames);
      menu.setOptions(optList);
    }
  }
コード例 #4
0
 public void beginDisplay(DisplayEvent event) throws ModelControlException {
   super.beginDisplay(event);
   disableButton();
 }