Class CmsClientAliasImportResult

java.lang.Object
org.opencms.ade.sitemap.client.alias.CmsClientAliasImportResult

public class CmsClientAliasImportResult extends Object
A client-side bean for representing the results of an alias import.

  • Constructor Details

    • CmsClientAliasImportResult

      public CmsClientAliasImportResult(String line, org.opencms.gwt.shared.alias.CmsAliasImportStatus status, String message)
      Creates a new instance.

      Parameters:
      line - the CSV line containing the alias
      status - the import status
      message - the import message
  • Method Details

    • parse

      public static CmsClientAliasImportResult parse(com.google.gwt.json.client.JSONObject json)
      Parses an alias import result from a JSON object.

      Parameters:
      json - the JSON object containing the alias import result data
      Returns:
      the alias import result bean
    • parseArray

      public static List<CmsClientAliasImportResult> parseArray(com.google.gwt.json.client.JSONArray array)
      Extracts alias import results from a JSON array.

      Parameters:
      array - the JSON array
      Returns:
      the alias import results from the array
    • getString

      protected static String getString(com.google.gwt.json.client.JSONObject json, String key)
      Helper method to get a string value from a JSON object.

      Parameters:
      json - the JSON object
      key - the key whose value should be extracted as a string
      Returns:
      the string value for the given key
    • getLine

      public String getLine()
      Gets the CSV line containing the alias.

      Returns:
      the CSV line
    • getMessage

      public String getMessage()
      Gets the import message.

      Returns:
      the import message
    • getStatus

      public org.opencms.gwt.shared.alias.CmsAliasImportStatus getStatus()
      Gets the import status.

      Returns:
      the import status