Class LayoutStyleValidator

java.lang.Object
io.meeds.layout.util.LayoutStyleValidator

public final class LayoutStyleValidator extends Object
Validates the style values a page or a site layout carries before it is saved, on every editor save path (page layout and site layout alike). A refused value fails the save with an IllegalArgumentException.
  • Method Details

    • validate

      public static void validate(org.exoplatform.portal.config.model.ModelObject modelObject)
      Validates the style values of the given layout object and of every descendant container.
      Parameters:
      modelObject - the page, site layout or container to validate, null accepted (nothing to validate)
      Throws:
      IllegalArgumentException - when a style value is refused