rave-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciancetta, Jesse E." <jc...@mitre.org>
Subject RE: Portal preferences set by admin
Date Thu, 03 Nov 2011 14:21:13 GMT
I've seen Spring HandlerInterceptor's used in the past for this sort of thing and it's worked
out pretty well:


More specifically -- I've seen a class extending HandlerInterceptorAdapter registered with
the DefaultAnnotationHandlerMapping to add common objects to the ModelAndView in the HandlerInterceptorAdapter.postHandle(...)

Tony was actually the one who implemented the specific case I'm thinking of for our internal
portal -- maybe he could comment further if there are questions on it.


>-----Original Message-----
>From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
>Sent: Thursday, November 03, 2011 8:56 AM
>To: rave-dev@incubator.apache.org
>Subject: Portal preferences set by admin
>in the design of the admin interface there's also a tab for portal wide
>preferences. The admin can change things like
>- the title suffix for each page (" - Rave" will then be replaced by " -
>ACME University")
>- the number of items on a page in the widget store (or any other pageable
>- company logo
>etc etc
>We could create some base controller with a "getPortalSettings" that calls
>some PortalSettingsService that retrieves settings through a repository
>from the db (for each request...). All controllers should then extend this
>base controller.
>I'm wondering what the cleanest solution would be in Spring MVC or should
>my suggestion be the good enough option for the time being?
>Jasha Joachimsthal
>Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466
>US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)

View raw message