Author: chris.laprun(a)jboss.com
Date: 2012-03-15 08:52:23 -0400 (Thu, 15 Mar 2012)
New Revision: 8605
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIApplication.java
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIPopupMessages.java
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/exception/MessageException.java
Log:
- Adding methods to help backward compatibility.
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIApplication.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIApplication.java 2012-03-15
06:53:24 UTC (rev 8604)
+++
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIApplication.java 2012-03-15
12:52:23 UTC (rev 8605)
@@ -88,6 +88,11 @@
getUIPopupMessages().addMessage(message);
}
+ public void addMessage(ApplicationMessage message)
+ {
+ addMessage((AbstractApplicationMessage)message);
+ }
+
public void clearMessages()
{
getUIPopupMessages().clearMessages();
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIPopupMessages.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIPopupMessages.java 2012-03-15
06:53:24 UTC (rev 8604)
+++
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/core/UIPopupMessages.java 2012-03-15
12:52:23 UTC (rev 8605)
@@ -120,6 +120,11 @@
infos_.add(msg);
}
}
+
+ public void addMessage(ApplicationMessage msg)
+ {
+ addMessage((AbstractApplicationMessage)msg);
+ }
private ResourceBundle getResourceBundle()
{
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/exception/MessageException.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/exception/MessageException.java 2012-03-15
06:53:24 UTC (rev 8604)
+++
epp/portal/branches/EPP_5_2_Branch/webui/framework/src/main/java/org/exoplatform/webui/exception/MessageException.java 2012-03-15
12:52:23 UTC (rev 8605)
@@ -20,6 +20,7 @@
package org.exoplatform.webui.exception;
import org.exoplatform.web.application.AbstractApplicationMessage;
+import org.exoplatform.web.application.ApplicationMessage;
/**
* Created by The eXo Platform SARL
@@ -39,6 +40,11 @@
this.message = message;
}
+ public MessageException(ApplicationMessage message)
+ {
+ this((AbstractApplicationMessage)message);
+ }
+
public AbstractApplicationMessage getDetailMessage()
{
return message;
Show replies by date