protected void registerChildren() {
   super.registerChildren();
   registerChild(PGTITLE, CCPageTitle.class);
   ptModel.registerChildren(this);
   registerChild(PROPERTY_ATTRIBUTE, AMPropertySheet.class);
   propertySheetModel.registerChildren(this);
 }
 /**
  * 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();
 }
 protected void registerChildren() {
   super.registerChildren();
   ptModel.registerChildren(this);
   registerChild(PROPERTIES, CCTextField.class);
   registerChild(PGTITLE_THREE_BTNS, CCPageTitle.class);
   registerChild(TBL_PROPERTIES, CCActionTable.class);
   tblModel.registerChildren(this);
 }
 protected void initialize() {
   if (!initialized) {
     super.initialize();
     initialized = true;
     createPageTitleModel();
     createPropertyModel();
     registerChildren();
   }
 }
 protected void initialize() {
   if (!initialized) {
     if (createPropertyModel()) {
       registerChildren();
       initialized = true;
       super.initialize();
     }
   }
 }
Exemplo n.º 6
0
 protected void initialize() {
   if (!init) {
     String serviceName = (String) getPageSessionAttribute(AMServiceProfile.SERVICE_NAME);
     if ((serviceName != null) && (serviceName.trim().length() > 0)) {
       super.initialize();
       createPageTitleModel();
       createPropertyModel();
       registerChildren();
       init = true;
     }
   }
 }
 protected void initialize() {
   if (!initialized) {
     String serverName =
         (String) getPageSessionAttribute(ServerEditViewBeanBase.PG_ATTR_SERVER_NAME);
     if (serverName != null) {
       super.initialize();
       createPageTitleModel();
       createTabModel(serverName);
       createTableModel();
       registerChildren();
       initialized = true;
     }
   }
 }
  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");
      }
    }
  }
Exemplo n.º 9
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);
    }
  }
 public void beginDisplay(DisplayEvent event) throws ModelControlException {
   super.beginDisplay(event);
   disableButton();
 }