Hi all,
I'd like to introduce a new extension point for modules to provide extra
content to the geoserver home page, just like
CapabilitiesHomePageLinkProvider does for the getcapabilities panel.
The interface would be pretty much the same:
public interface HomeContentProvider {
public Component getCapabilitiesComponent(final String id);
}
Except returned components are meant to be part of the main home page
body instead of the right caps panel, and it'd be valid to return null
(so that a provider may choose under what circumstances to return
content at all, like in whether the admin is logged in, etc.)
My current use case is to provide a link to the geosearch sitemap on the
home page, but there could be more useful information other components
may want to contribute to the home page.
Thoughts?
Cheers,
Gabriel
--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers
On Fri, 2011-05-06 at 11:57 -0300, Gabriel Roldán wrote:
Hi all,
I'd like to introduce a new extension point for modules to provide extra
content to the geoserver home page, just like
CapabilitiesHomePageLinkProvider does for the getcapabilities panel.
The interface would be pretty much the same:
public interface HomeContentProvider {
public Component getCapabilitiesComponent(final String id);
of course it would be more like
public Component getBodyComponent(final String id);
or so.
}
Except returned components are meant to be part of the main home page
body instead of the right caps panel, and it'd be valid to return null
(so that a provider may choose under what circumstances to return
content at all, like in whether the admin is logged in, etc.)
My current use case is to provide a link to the geosearch sitemap on the
home page, but there could be more useful information other components
may want to contribute to the home page.
Thoughts?
Cheers,
Gabriel
--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers
On Fri, May 6, 2011 at 4:57 PM, Gabriel Roldán <groldan@anonymised.com> wrote:
Hi all,
I'd like to introduce a new extension point for modules to provide extra
content to the geoserver home page, just like
CapabilitiesHomePageLinkProvider does for the getcapabilities panel.
The interface would be pretty much the same:
public interface HomeContentProvider {
public Component getCapabilitiesComponent(final String id);
}
Except returned components are meant to be part of the main home page
body instead of the right caps panel, and it'd be valid to return null
(so that a provider may choose under what circumstances to return
content at all, like in whether the admin is logged in, etc.)
My current use case is to provide a link to the geosearch sitemap on the
home page, but there could be more useful information other components
may want to contribute to the home page.
Thoughts?
One, with a plus before it.
Aka as +1
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
On Fri, 2011-05-06 at 17:10 +0200, Andrea Aime wrote:
On Fri, May 6, 2011 at 4:57 PM, Gabriel Roldán <groldan@anonymised.com> wrote:
> Hi all,
>
> I'd like to introduce a new extension point for modules to provide extra
> content to the geoserver home page, just like
> CapabilitiesHomePageLinkProvider does for the getcapabilities panel.
>
> The interface would be pretty much the same:
> public interface HomeContentProvider {
> public Component getCapabilitiesComponent(final String id);
> }
>
> Except returned components are meant to be part of the main home page
> body instead of the right caps panel, and it'd be valid to return null
> (so that a provider may choose under what circumstances to return
> content at all, like in whether the admin is logged in, etc.)
>
> My current use case is to provide a link to the geosearch sitemap on the
> home page, but there could be more useful information other components
> may want to contribute to the home page.
>
> Thoughts?
One, with a plus before it.
Aka as +1
ok, cool. Jira created: <http://jira.codehaus.org/browse/GEOS-4538>
Thanks for the quick response.
Cheers,
Gabriel
Cheers
Andrea
--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers