Examples of validate()


Examples of org.jboss.as.console.client.shared.general.validation.CompositeDecision.validate()

        };

        CompositeDecision decisionTree = new CompositeDecision();
        decisionTree.setLog(log);

        ValidationResult validation = decisionTree.validate(entity, changeset);

        // dump log
        StringBuilder sb = new StringBuilder();
        for(String s : decisions)
            sb.append(s).append(" \n");
View Full Code Here

Examples of org.jboss.as.console.client.widgets.forms.Form.validate()

                    @Override
                    public void onClick(ClickEvent event) {
                        // merge base
                        ServerGroupRecord newGroup = form.getUpdatedEntity();

                        FormValidation validation = form.validate();
                        if(validation.hasErrors())
                            return;

                        ServerGroupRecord base = null;
                        for(ServerGroupRecord rec : existing)
View Full Code Here

Examples of org.jboss.as.console.mbui.widgets.ModelNodeForm.validate()

            DialogueOptions options = new DialogueOptions(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    // save
                    FormValidation validation = form.validate();
                    if(!validation.hasErrors())
                    {
                        presenter.onAddChildResource(address, form.getUpdatedEntity());
                        window.hide();
                    }
View Full Code Here

Examples of org.jboss.ballroom.client.widgets.forms.Form.validate()

                // save

                new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        FormValidation validation = form.validate();
                        if(!validation.hasErrors())
                        {
                            ConnectionDefinition connectionDef = form.getUpdatedEntity();
                            connectionDef.setApplication(true); // JBPAPP-9977: reasonable default
                            parent.onCompleteStep1(connectionDef);
View Full Code Here

Examples of org.jboss.cache.config.EvictionPolicyConfig.validate()

      {
         // validate individual region configs now
         for (EvictionRegionConfig erc : configuration.getEvictionConfig().getEvictionRegionConfigs())
         {
            EvictionPolicyConfig epc = erc.getEvictionPolicyConfig();
            if (epc != null) epc.validate();
         }

         setEvictionConfig(configuration.getEvictionConfig());
         setUsingEvictions(true);
      }
View Full Code Here

Examples of org.jboss.forge.addon.javaee.jpa.JPADataSource.validate()

   {
      UIContext uiContext = validator.getUIContext();
      JPADataSource ds = getDataSource(uiContext);
      try
      {
         ds.validate();
      }
      catch (Exception e)
      {
         validator.addValidationError(null, e.getMessage());
      }
View Full Code Here

Examples of org.jboss.forge.addon.scaffold.spi.ScaffoldProvider.validate()

   @Override
   public void validate(UIValidationContext validator)
   {
      super.validate(validator);
      ScaffoldProvider scaffold = provider.getValue();
      scaffold.validate(validator);
   }

   @Override
   public Metadata getMetadata(UIContext context)
   {
View Full Code Here

Examples of org.jboss.forge.addon.ui.UICommand.validate()

   @Override
   public List<String> getValidationErrors()
   {
      UICommand currentCommand = builder.getCommand();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);
      currentCommand.validate(validationContext);
      return validationContext.getErrors();
   }

   @Override
   public void execute(CommandListener listener) throws Exception
View Full Code Here

Examples of org.jboss.forge.addon.ui.wizard.UIWizard.validate()

   private List<String> getValidationErrors(UIBuilderImpl builder)
   {
      UIWizard currentWizard = builder.getWizard();
      UIValidationContextImpl validationContext = new UIValidationContextImpl(context);
      currentWizard.validate(validationContext);
      return validationContext.getErrors();
   }

   private ConverterFactory getConverterFactory()
   {
View Full Code Here

Examples of org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler.validate()

         else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
            return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.CANCEL_REQUEST))
            return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST))
            return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal()));
         else
            throw new WSTrustException("Invalid request type: " + requestType);
      }
      catch (WSTrustException we)
      {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.