Class CmsClientAliasImportResult
java.lang.Object
org.opencms.ade.sitemap.client.alias.CmsClientAliasImportResult
A client-side bean for representing the results of an alias import.
-
Constructor Summary
ConstructorDescriptionCmsClientAliasImportResult
(String line, org.opencms.gwt.shared.alias.CmsAliasImportStatus status, String message) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetLine()
Gets the CSV line containing the alias.Gets the import message.org.opencms.gwt.shared.alias.CmsAliasImportStatus
Gets the import status.protected static String
Helper method to get a string value from a JSON object.static CmsClientAliasImportResult
parse
(com.google.gwt.json.client.JSONObject json) Parses an alias import result from a JSON object.static List<CmsClientAliasImportResult>
parseArray
(com.google.gwt.json.client.JSONArray array) Extracts alias import results from a JSON array.
-
Constructor Details
-
Method Details
-
parse
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
Helper method to get a string value from a JSON object.- Parameters:
json
- the JSON objectkey
- the key whose value should be extracted as a string- Returns:
- the string value for the given key
-
getLine
Gets the CSV line containing the alias.- Returns:
- the CSV line
-
getMessage
Gets the import message.- Returns:
- the import message
-
getStatus
Gets the import status.- Returns:
- the import status
-