Class CmsContentAugmentationDetails
java.lang.Object
org.opencms.ade.contenteditor.shared.CmsContentAugmentationDetails
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsContentAugmentationDetails
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
Contains status information about a content augmentation that has just been run.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the exception (if any) from the server side.Gets the message to display to the user, in HTML format.Gets the locales that are part of the augmented content (as strings).Gets tje next locale to switch to (might be null if we should remain in the current locale).Gets the progress message.Gets the caption to display on the result dialog.booleanChecks if the augmentation job was aborted.booleanisDone()Checks if the content augmentation has sucessfully completed.voidsetException(Throwable exception) Sets the exception to display.voidsetHtmlMessage(String htmlMessage) Sets the message to display, in HTML formatvoidsetLocales(List<String> locales) Sets the locales.voidsetNextLocale(String nextLocale) Sets the next locale to switch to (can be null if current locale should be maintained).voidsetProgress(String progress) Sets the progress message.voidsetResultCaption(String resultCaption) Sets the caption to display on the results dialog.
-
Field Details
-
PROGRESS_ABORTED
Indicates that the job was aborted.- See Also:
-
PROGRESS_DONE
Indicates that the job has finished.- See Also:
-
-
Constructor Details
-
CmsContentAugmentationDetails
public CmsContentAugmentationDetails()Creates a new instance.
-
-
Method Details
-
getException
Gets the exception (if any) from the server side.- Returns:
- the exception from the server side
-
getHtmlMessage
Gets the message to display to the user, in HTML format.- Returns:
- the HTML message
-
getLocales
Gets the locales that are part of the augmented content (as strings).- Returns:
- the list of locales
-
getNextLocale
Gets tje next locale to switch to (might be null if we should remain in the current locale).- Returns:
- the locale to switch to
-
getProgress
Gets the progress message.- Returns:
- the progress message
-
getResultCaption
Gets the caption to display on the result dialog.- Returns:
- the caption to display on the results dialog
-
isAborted
Checks if the augmentation job was aborted.- Returns:
- true if the augmentation job was aborted.
-
isDone
Checks if the content augmentation has sucessfully completed.- Returns:
- true if the content augmentation has successfully completed
-
setException
Sets the exception to display.- Parameters:
exception- the exception to display
-
setHtmlMessage
Sets the message to display, in HTML format- Parameters:
htmlMessage- the message to display
-
setLocales
Sets the locales.- Parameters:
locales- the locales
-
setNextLocale
Sets the next locale to switch to (can be null if current locale should be maintained).- Parameters:
nextLocale- the next locale to switch to
-
setProgress
Sets the progress message.- Parameters:
progress- the progress message
-
setResultCaption
Sets the caption to display on the results dialog.- Parameters:
resultCaption- the caption to display on the results dialog
-