Examples of validateTemplate()


Examples of com.sun.enterprise.admin.servermgmt.domain.DomainBuilder.validateTemplate()

            domainConfig.put(DomainConfig.K_TEMPLATE_NAME, template);
            domainConfig.put(DomainConfig.K_PORTBASE, portBase);
            initSecureAdminSettings(domainConfig);
            try {
                DomainBuilder domainBuilder = new DomainBuilder(domainConfig);
                domainBuilder.validateTemplate();
                domainBuilder.run();
            } catch (Exception e) {
                throw new DomainException(e.getMessage());
            }
        }
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.domain.DomainBuilder.validateTemplate()

            domainConfig.put(DomainConfig.K_TEMPLATE_NAME, template);
            domainConfig.put(DomainConfig.K_PORTBASE, portBase);
            initSecureAdminSettings(domainConfig);
            try {
                DomainBuilder domainBuilder = new DomainBuilder(domainConfig);
                domainBuilder.validateTemplate();
                domainBuilder.run();
            } catch (Exception e) {
                throw new DomainException(e.getMessage());
            }
        }
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.domain.DomainBuilder.validateTemplate()

            domainConfig.put(DomainConfig.K_PORTBASE, portBase);
            domainConfig.put(DomainConfig.K_INITIAL_ADMIN_USER_GROUPS, Version.getInitialAdminGroups());
            initSecureAdminSettings(domainConfig);
            try {
                DomainBuilder domainBuilder = new DomainBuilder(domainConfig);
                domainBuilder.validateTemplate();
                domainBuilder.run();
            } catch (Exception e) {
                throw new DomainException(e.getMessage());
            }
        }
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.domain.DomainBuilder.validateTemplate()

            domainConfig.put(DomainConfig.KEYTOOLOPTIONS, keytoolOptions);
            domainConfig.put(DomainConfig.K_TEMPLATE_NAME, template);
            initSecureAdminSettings(domainConfig);
            try {
                DomainBuilder domainBuilder = new DomainBuilder(domainConfig);
                domainBuilder.validateTemplate();
                domainBuilder.run();
            } catch (Exception e) {
                throw new DomainException(e.getMessage());
            }
        }
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.domain.DomainBuilder.validateTemplate()

            domainConfig.put(DomainConfig.K_PORTBASE, portBase);
            domainConfig.put(DomainConfig.K_INITIAL_ADMIN_USER_GROUPS, Version.getInitialAdminGroups());
            initSecureAdminSettings(domainConfig);
            try {
                DomainBuilder domainBuilder = new DomainBuilder(domainConfig);
                domainBuilder.validateTemplate();
                domainBuilder.run();
            } catch (Exception e) {
                throw new DomainException(e.getMessage());
            }
        }
View Full Code Here

Examples of evolaris.framework.async.business.TemplateEngine.validateTemplate()

    allowedPlaceholders.addAll(TemplateEngine.VALID_REQUESTING_USER_PLACEHOLDERS);
    allowedPlaceholders.addAll(TemplateEngine.VALID_CONTACT_USER_PLACEHOLDERS);
    if (new Integer(6).equals(getDestinationSelection())) { // message to msisdn must not contain placeholders for (destination) user
      allowedPlaceholders.removeAll(TemplateEngine.VALID_SMS_MESSAGE_PLACEHOLDERS);
    }
    if (!templateEngine.validateTemplate(getMessage(), allowedPlaceholders)) {
      errors.add("message", new ActionMessage("smssvc.illegalPlaceholdersFound"));
    } else if (templateEngine.computeMaxMessageLength(getMessage()) == Integer.MAX_VALUE) {
      errors.add("message", new ActionMessage("smssvc.missingPlaceholderLengths"));
    } else if (templateEngine.computeMaxMessageLength(getMessage()) > SmsInteractionEnterOrEditAction.MAX_MESSAGE_TEXT_LENGTH) {
      errors.add("message", new ActionMessage("smssvc.messageLongerThan450characters"));     
View Full Code Here

Examples of evolaris.framework.async.business.TemplateEngine.validateTemplate()

    placeholders.addAll(TemplateEngine.VALID_CONTACT_USER_PLACEHOLDERS);

    if (new Integer(3).equals(getDestinationSelection())){ // message to explicitly provided e-mail address must not contain placeholders for (destination) user
      placeholders.removeAll(TemplateEngine.VALID_EMAIL_MESSAGE_PLACEHOLDERS);
    }
    if (!templateEngine.validateTemplate(getMessage(), placeholders)) {
      errors.add("message", new ActionMessage("smssvc.illegalPlaceholdersFound"));
    } else if (!templateEngine.validateTemplate(getSubject(), placeholders)) {
      errors.add("subject", new ActionMessage("smssvc.illegalPlaceholdersFound"));
    }
    return errors;
View Full Code Here

Examples of evolaris.framework.async.business.TemplateEngine.validateTemplate()

    if (new Integer(3).equals(getDestinationSelection())){ // message to explicitly provided e-mail address must not contain placeholders for (destination) user
      placeholders.removeAll(TemplateEngine.VALID_EMAIL_MESSAGE_PLACEHOLDERS);
    }
    if (!templateEngine.validateTemplate(getMessage(), placeholders)) {
      errors.add("message", new ActionMessage("smssvc.illegalPlaceholdersFound"));
    } else if (!templateEngine.validateTemplate(getSubject(), placeholders)) {
      errors.add("subject", new ActionMessage("smssvc.illegalPlaceholdersFound"));
    }
    return errors;
  }
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.