[jboss-dev-forums] [Design of JBoss Portal] - Re: LayouStrategy and StrategyResponse API
julien@jboss.com
do-not-reply at jboss.com
Mon Jan 22 15:59:00 EST 2007
So actually I transformed that into portal eventing object. Now there are :
base page event :
| public abstract class PageEvent extends PortalNodeEvent
| {
| ...
| }
|
page render event
| public class PageRenderEvent extends PageEvent
| {
| ...
| }
|
provide access to a portion of the navigational state managed by the portal :
| public interface NavigationalStateContext
| {
| WindowState getWindowState(PortalNode window) throws IllegalArgumentException;
| void setWindowState(PortalNode window, WindowState windowState) throws IllegalArgumentException;
| Mode getMode(PortalNode window) throws IllegalArgumentException;
| void setMode(PortalNode window, Mode mode) throws IllegalArgumentException;
| }
|
I have recoded the previous interceptor I did (and removed it) using the public API (so it can be considered as a supported feature and will not break in the future with the 2.x versions).
The example has been commited as org.jboss.portal.core.portlet.test.event.WindowConstraintEventListener and is a little bit complex (because your use case is very special) so I will not list it here.
You can find it in the core-samples module in trunk.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004991#4004991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004991
More information about the jboss-dev-forums
mailing list