Class CmsSaveResult

java.lang.Object
org.opencms.ade.contenteditor.shared.CmsSaveResult
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsSaveResult extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Stores the editor save result information.

  • Constructor Details

    • CmsSaveResult

      public CmsSaveResult(boolean hasChangedSettings, CmsValidationResult validationResult, boolean warningsAsError, Map<String,List<CmsPair<List<CmsPair<String,Integer>>,String>>> issuesToDisplay)
      Constructor.

      Parameters:
      hasChangedSettings - if container element settings where changed
      validationResult - the validation result
      warningsAsError - flag, indicating if warnings should be treated as errors
      issuesToDisplay - the issues (warnings or errors) to display, already localized and sorted as needed.
    • CmsSaveResult

      protected CmsSaveResult()
      Constructor for serialization only.

  • Method Details

    • getIssueInformation

      Returns the validation issue information to display.
      Returns:
      the validation issue information to display.
    • getValidationResult

      Returns the validation result.

      Returns:
      the validation result
    • hasErrors

      public boolean hasErrors()
      Returns whether the validation result has errors.

      Returns:
      true in case the validation result has errors
    • isHasChangedSettings

      public boolean isHasChangedSettings()
      Returns whether container element settings where changed.

      Returns:
      true in case container element settings where changed