Examples of validate()


Examples of com.vmware.bdd.entity.NetworkEntity.validate()

      try {
         NetworkEntity network =
               new NetworkEntity(name, portGroup, AllocType.DHCP, null, null,
                     null, null);
         networkDao.insert(network);
         network.validate();
         return network;
      } catch (UniqueConstraintViolationException ex) {
         logger.error("can not add a network with duplicated name");
         throw BddException.ALREADY_EXISTS(ex, "Network", name);
      }
View Full Code Here

Examples of com.vmware.bdd.security.service.IAuthenticationService.validate()

      try {
         IAuthenticationService userAuthenticationService =
               new UserAuthenticationService(new VCAuthenticationAdapter(
                     userName, passwd));
         userAuthenticationService.validate();
         UserDetails user =
               userService.loadUserByUsername(authentication.getName());
         UserAuthenticationToken accountAuthenticationToken =
               new UserAuthenticationToken(user.getAuthorities());
         return accountAuthenticationToken;
View Full Code Here

Examples of com.vmware.bdd.security.service.impl.UserAuthenticationService.validate()

      try {
         IAuthenticationService userAuthenticationService =
               new UserAuthenticationService(new VCAuthenticationAdapter(
                     userName, passwd));
         userAuthenticationService.validate();
         UserDetails user =
               userService.loadUserByUsername(authentication.getName());
         UserAuthenticationToken accountAuthenticationToken =
               new UserAuthenticationToken(user.getAuthorities());
         return accountAuthenticationToken;
View Full Code Here

Examples of com.volantis.mcs.eclipse.validation.PolicyNameValidator.validate()

        ValidationMessageBuilder builder = new ValidationMessageBuilder(BUNDLE,
                MESSAGE_KEY_MAPPINGS, new Object[]{resource.getName()});

        // Perform the validation and store the result of the validation.
        ValidationStatus status =
                policyNameValidator.validate(resource.getName(), builder);

        if (status.getSeverity() == ValidationStatus.ERROR) {
            valid = false;
        } else if (status.getSeverity() == ValidationStatus.WARNING) {
            valid = false;
View Full Code Here

Examples of com.volantis.mcs.eclipse.validation.SelectionValidator.validate()

    // javadoc inherited
    public ValidationStatus validate() {
        SelectionValidator validator = createValidator();
        supplementaryArgs[0] = getText().getText();
        return validator.validate(getValue(),
                new ValidationMessageBuilder(
                        ControlsMessages.getResourceBundle(),
                        MESSAGE_KEY_MAPPINGS,
                        supplementaryArgs));
    }
View Full Code Here

Examples of com.volantis.mcs.interaction.BeanProxy.validate()

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        root.addDiagnosticListener(diagnosticListenerMock);
        root.validate();

        final Proxy firstNameProxy = root.getPropertyProxy(Person.FIRST_NAME);
        final Proxy lastNameProxy = root.getPropertyProxy(Person.LAST_NAME);
        final Proxy ageProxy = root.getPropertyProxy(Person.AGE);
        final Proxy addressProxy = root.getPropertyProxy(Person.ADDRESS);
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.validate()

            policy = preProcessPolicy(policy);
            final Proxy proxy = policyFileAccessor.wrapPolicy(policy,
                    getModelDescriptor(), getProject());

            // Revalidate the model on all changes
            proxy.validate();
            proxy.addListener(
                new InteractionEventListenerAdapter() {
                    protected void interactionEvent(InteractionEvent event) {
                        if (event.isOriginator ()) {
                            proxy.validate();
View Full Code Here

Examples of com.volantis.mcs.interaction.impl.validation.ProxyValidator.validate()

        }
    }

    public void validate() {
        ProxyValidator proxyValidator = new ProxyValidator();
        proxyValidator.validate(this);
    }

    public Object copyModelObject() {
        if (modelObject == null) {
            return null;
View Full Code Here

Examples of com.volantis.mcs.model.validation.Validator.validate()

        if (object != null && object instanceof Validatable) {
            ModelFactory modelFactory = ModelFactory.getDefaultInstance();
            Validator validator = modelFactory.createValidator();

            // Validate the object being created
            validator.validate((Validatable) object);

            // Validate the already created selectors
            List selectors = listBuilder.getItems();
            Iterator it = selectors.iterator();
            while (it.hasNext() && validator.getDiagnostics().isEmpty()) {
View Full Code Here

Examples of com.volantis.mcs.xml.validation.DOMSupplementaryValidator.validate()

                Element element = tracker.currentElement();
                DOMSupplementaryValidator validator;
                for (int i = 0; i < validators.size(); i++) {
                    // ask the validator to validate the element
                    validator = (DOMSupplementaryValidator) validators.get(i);
                    validator.validate(element, errorReporter);
                }
            }
        }
    }
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.