Examples of validate()


Examples of org.exoplatform.webui.form.validator.MandatoryValidator.validate()

         UIRegisterInputSet registerInput = registerForm.getChild(UIRegisterInputSet.class);
         UIFormStringInput userNameInput = registerInput.getUIStringInput(UIRegisterInputSet.USER_NAME);
         MandatoryValidator validator = new MandatoryValidator();
         try
         {
            validator.validate(userNameInput);
         }
         catch (MessageException e)
         {
            event.getRequestContext().getUIApplication().addMessage(e.getDetailMessage());
            return;
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.validate()

          String category = config.mapCategory(catDir);
          String schema   = config.mapSchema(catDir);

          if (validate)
            dm.validate(schema, xml);

          alImport.add(new ImportInfo(schema, category, xml));
          counter++;
        }
      }
View Full Code Here

Examples of org.fcrepo.client.utility.validate.ObjectValidator.validate()

            Iterator<String> pids = getPidIterator(parms, objectSource);

            // Go through the list, validating.
            ObjectValidator validator = new ObjectValidator(objectSource);
            while (pids.hasNext()) {
                results.record(validator.validate(pids.next()));
            }

            // Display the results.
            results.closeResults();
        } catch (ValidatorProcessUsageException e) {
View Full Code Here

Examples of org.fcrepo.server.validation.DOValidatorImpl.validate()

                        new DOValidatorImpl(null,
                                            xmlSchemaMap,
                                            "dist/server/schematron/preprocessor.xslt",
                                            ruleSchemaMap);
                if (args[1].equals("1")) {
                    v.validate(newIn,
                               METS_EXT1_1.uri,
                               DOValidatorImpl.VALIDATE_XML_SCHEMA,
                               "ingest");
                    System.out.println("XML Schema validation: PASSED!");
                } else {
View Full Code Here

Examples of org.fcrepo.server.validation.DOValidatorXMLSchema.validate()

    public void testFoxmlValidation() throws Exception {
        InputStream in =
                new FileInputStream(RESOURCES + "demo/demo-objects/foxml/local-server-demos/simple-image-demo/obj_demo_5.xml");
        DOValidatorXMLSchema dov =
                new DOValidatorXMLSchema(RESOURCES + "xsd/foxml1-1.xsd");
        dov.validate(in);
    }

    @Test
    public void testMetsValidation() throws Exception {
        InputStream in =
View Full Code Here

Examples of org.fcrepo.server.validation.RelsValidator.validate()

    public void testValidateValidRelsExt() throws Exception {
        pid = PID.getInstance("demo:888");
        InputStream in = new ByteArrayInputStream(RELS_EXT);
        RelsValidator validator = new RelsValidator();
        validator.validate(pid, "RELS-EXT", in);
    }
    public void testValidateValidRelsInt() throws Exception {
        pid = PID.getInstance("demo:888");
        InputStream in = new ByteArrayInputStream(RELS_INT);
        RelsValidator validator = new RelsValidator();
View Full Code Here

Examples of org.fenixedu.academic.domain.AlumniIdentityCheckRequest.validate()

                            bean.getParishOfBirth(), bean.getSocialSecurityNumber(), bean.getNameOfFather(),
                            bean.getNameOfMother(), bean.getRequestType());

            identityRequest.setAlumni(alumni);
            if (identityRequest.isValid()) {
                identityRequest.validate(Boolean.TRUE);
                sendIdentityCheckEmail(identityRequest, Boolean.TRUE);
            }

        } else {
            throw new DomainException("alumni.has.pending.identity.requests");
View Full Code Here

Examples of org.fenixedu.academic.domain.candidacy.PersonalInformationBean.validate()

    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {

        final PersonalInformationBean personalInformationBean = getRenderedObject("personalInformationBean");

        final Set<String> messages = personalInformationBean.validate();

        if (!messages.isEmpty()) {
            for (final String each : messages) {
                addActionMessage(request, each);
            }
View Full Code Here

Examples of org.fenixedu.academic.domain.util.email.EmailBean.validate()

    public ActionForward sendEmail(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        EmailBean emailBean = getRenderedObject("emailBean");
        RenderUtils.invalidateViewState();
        String validate = emailBean.validate();
        if (validate != null) {
            final String noneSentString = BundleUtil.getString(Bundle.APPLICATION, "error.email.none.sent");
            request.setAttribute("errorMessage", noneSentString + " " + validate);
            request.setAttribute("emailBean", emailBean);
            return mapping.findForward("new.email");
View Full Code Here

Examples of org.fenixedu.academic.domain.util.workflow.Form.validate()

    }

    private boolean validateCurrentForm(HttpServletRequest request) {
        final Form form =
                (Form) RenderUtils.getViewState("fillData" + getCurrentFormPosition(request)).getMetaObject().getObject();
        final List<LabelFormatter> messages = form.validate();
        if (!messages.isEmpty()) {
            request.setAttribute("formMessages",
                    solveLabelFormatterArgs(request, messages.toArray(new LabelFormatter[messages.size()])));
            request.setAttribute("currentForm", form);
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.