Package com.dotcms.repackage.javax.portlet

Examples of com.dotcms.repackage.javax.portlet.PreferencesValidator


        Validator.isNotNull(prefsValidator) &&
        GetterUtil.getBoolean(PropsUtil.get(
          PropsUtil.PREFERENCE_VALIDATE_ON_STARTUP))) {

        try {
          PreferencesValidator prefsValidatorObj =
            PortalUtil.getPreferencesValidator(portletModel);

          prefsValidatorObj.validate(
            PortletPreferencesSerializer.fromDefaultXML(
              defaultPreferences));
        }
        catch (Exception e) {
          _log.warn(
View Full Code Here


        PortletContextPool.get(portlet.getPortletId());

      return pcw.getPreferencesValidator();
    }
    else {
      PreferencesValidator prefsValidator = null;

      if (Validator.isNotNull(portlet.getPreferencesValidator())) {
        prefsValidator =
          (PreferencesValidator)InstancePool.get(
            portlet.getPreferencesValidator());
View Full Code Here

    boolean active = ParamUtil.getBoolean(req, "portlet_active");

    Portlet portlet = PortletManagerUtil.getPortletById(
      PortalUtil.getCompanyId(req), portletId);

    PreferencesValidator prefsValidator =
      PortalUtil.getPreferencesValidator(portlet);

    if (prefsValidator != null) {
      try {
        prefsValidator.validate(
          PortletPreferencesSerializer.fromDefaultXML(
            defaultPreferences));
      }
      catch (Exception e) {
        throw new PortletDefaultPreferencesException();
View Full Code Here

    try {
      Portlet portlet =
        PortletManagerUtil.getPortletById(_companyId, _pk.portletId);

      PreferencesValidator prefsValidator =
        PortalUtil.getPreferencesValidator(portlet);

      if (prefsValidator != null) {
        prefsValidator.validate(this);
      }

      PortletPreferencesManagerUtil.updatePreferences(_pk, this);
    }
    catch (PortalException pe) {
View Full Code Here

        if (Validator.isNotNull(portlet.getSchedulerClass())) {
          schedulerInstance = (Scheduler)contextClassLoader.loadClass(
            portlet.getSchedulerClass()).newInstance();
        }

        PreferencesValidator prefsValidator = null;
        if (Validator.isNotNull(portlet.getPreferencesValidator())) {
          prefsValidator =
            (PreferencesValidator)contextClassLoader.loadClass(
              portlet.getPreferencesValidator()).newInstance();

          try {
            if (GetterUtil.getBoolean(PropsUtil.get(
                PropsUtil.PREFERENCE_VALIDATE_ON_STARTUP))) {

              prefsValidator.validate(
                PortletPreferencesSerializer.fromDefaultXML(
                  portlet.getDefaultPreferences()));
            }
          }
          catch (Exception e1) {
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.javax.portlet.PreferencesValidator

Copyright © 2018 www.massapicom. 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.