コード例 #1
0
  public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);

    resetButtonState(TBL_HANDLERS_DELETE_BTN);

    if (!tablePopulated) {
      if (!isSubmitCycle()) {
        AMServiceProfileModel model = (AMServiceProfileModel) getModel();

        if (model != null) {
          Set handlers = new OrderedSet();
          handlers.addAll(
              model.getAttributeValues(WSAuthNServicesModelImpl.ATTRIBUTE_NAME_HANDLERS));
          populateHandlersTable(handlers);
        }
      }
    }

    if (!isInlineAlertMessageSet()) {
      String flag = (String) getPageSessionAttribute(PAGE_MODIFIED);
      if ((flag != null) && flag.equals("1")) {
        setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.profile.modified");
      }
    }
  }
コード例 #2
0
 @Override
 protected void initialize(String serviceName) {
   HttpServletRequest req = RequestManager.getRequestContext().getRequest();
   String location = req.getParameter("Location");
   if (isNotBlank(location)) {
     setPageSessionAttribute(CURRENT_REALM, hexToString(location));
   }
   super.initialize(serviceName);
 }
コード例 #3
0
  @Override
  public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);

    AbstractAuditModel model = (AbstractAuditModel) getModel();
    if (!submitCycle) {
      try {
        populateTableModel(model.getEventHandlerConfigurations());
        resetButtonState(TBL_SUB_CONFIG_BUTTON_DELETE);
        disableButton(TBL_SUB_CONFIG_BUTTON_ADD, false);
      } catch (AMConsoleException e) {
        setInlineAlertMessage(TYPE_ERROR, ERROR_MESSAGE, e.getMessage());
      }
    }
  }
コード例 #4
0
  public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);

    SubSchemaModel model = (SubSchemaModel) getModel();
    if (model.hasGlobalSubSchema()) {
      if (!submitCycle) {
        populateTableModel(model.getSubConfigurations());
      }
      resetButtonState(AMPropertySheetModel.TBL_SUB_CONFIG_BUTTON_DELETE);

      Map createable = model.getCreateableSubSchemaNames();
      if (createable.isEmpty()) {
        resetButtonState(AMPropertySheetModel.TBL_SUB_CONFIG_BUTTON_ADD);
      } else {
        SubConfigModel scModel = getSubConfigModel();
        boolean canCreate = false;
        for (Iterator i = createable.keySet().iterator(); i.hasNext() && !canCreate; ) {
          String name = (String) i.next();
          String plugin = scModel.getSelectableSubConfigNamesPlugin(name);
          if (plugin == null) {
            canCreate = true;
          } else {
            Set subconfigNames = scModel.getSelectableConfigNames(name);
            canCreate = (subconfigNames != null) && !subconfigNames.isEmpty();
          }
        }
        disableButton(AMPropertySheetModel.TBL_SUB_CONFIG_BUTTON_ADD, !canCreate);
      }
    }
    if (serviceName.equals("iPlanetAMAuthHTTPBasicService")) {
      CCRadioButton radio =
          (CCRadioButton) getChild("iplanet-am-auth-http-basic-module-configured");
      if ((radio.getValue() == null) || (radio.getValue().equals(""))) {
        String defaultModule = new String();
        String realmName = SMSEntry.getRootSuffix();
        if (realmName != null) {
          List moduleList = AMAuthUtils.getModuleInstancesForHttpBasic(realmName);
          if (!moduleList.isEmpty()) {
            defaultModule = (String) moduleList.get(0);
            radio.setValue(defaultModule);
          }
        }
      }
    }
  }
コード例 #5
0
 protected void createPropertyModel() {
   super.createPropertyModel();
   createHandlersTableModel();
 }
コード例 #6
0
 /**
  * Handles reset request.
  *
  * @param event Request invocation event
  */
 public void handleButton2Request(RequestInvocationEvent event) throws ModelControlException {
   removePageSessionAttribute(PAGE_MODIFIED);
   super.handleButton2Request(event);
 }
コード例 #7
0
 public void forwardTo(RequestContext reqContext) throws NavigationException {
   initialize((String) getPageSessionAttribute(AMServiceProfile.SERVICE_NAME));
   super.forwardTo(reqContext);
 }
コード例 #8
0
 protected void createPropertyModel() {
   super.createPropertyModel();
   createRequestHandlerListTableModel();
 }
コード例 #9
0
 @Override
 public void forwardTo(RequestContext reqContext) throws NavigationException {
   initialize(AUDIT_SERVICE);
   super.forwardTo(reqContext);
 }
コード例 #10
0
 protected void registerChildren() {
   super.registerChildren();
 }
コード例 #11
0
 protected void initialize() {
   super.initialize();
   createPropertyModel();
   createPageTitleModel();
   registerChildren();
 }