Hi Andrea, thank you for the feedback. As far I have investigate, LayerInfo is always delegating on ResourceInfo for those values. Enabled flag are supported by a catalog filter: https://github.com/geoserver/geoserver/blob/master/src/main/src/main/ja va/org/geoserver/security/DisabledResourceFilter.java ... and there is two methods one for layers (hideLayer) and one for resources (hideResource). I don't intend to change the current handling of those values for existing concrete implementations of layers info and resource info. I will add instead add a more generic case for catalog info, the sub implementations may decide to override or not. Cheers, Nuno Oliveira On Fri, 2019-08-23 at 15:00 +0200, Andrea Aime wrote: > On Fri, Aug 23, 2019 at 2:57 PM Nuno Oliveira > tions.it> wrote: > > That was our initial goal, then we realized that enabled and > > advertised options are available in both ResourceInfo, LayerInfo > > and LayerGroupInfo, hence we decided to normalize and add it on > > catalog info. > > Although I'm ok in putting this in PublishInfo, I would like to add > > that IMHO it kind of makes sense for a catalog GeoServer object to > > be marked as enabled or advertised, hence CatalogInfo interface :) > > > If you want to go there, it might work, if LayerInfo just reflects > out the values found in its ResouceInfo (it's already doing it for a > number of other scenarios). > But not sure it will help much when it comes to AdvertisedCatalog and > friends, which is where the advertised flag is processed (I can't > remember how enabled is > processed though...) > > Cheers > Andrea > > == > GeoServer Professional Services from the experts! Visit http://goo.gl > /it488V for more information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions S.A.S. > Via di Montramito 3/A > 55054 Massarosa (LU) > phone: +39 0584 962313 > fax: +39 0584 1660272 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://twitter.com/geosolutions_it > > > ------------------------------------------------------- > > Con riferimento alla normativa sul trattamento dei dati personali > (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati > “GDPR”), si precisa che ogni circostanza inerente alla presente email > (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui > conoscenza è riservata al/i solo/i destinatario/i indicati dallo > scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a > cancellarlo, ogni altra operazione è illecita. Le sarei comunque > grato se potesse darmene notizia. > > This email is intended only for the person or entity to which it is > addressed and may contain information that is privileged, > confidential or otherwise protected from disclosure. We remind that - > as provided by European Regulation 2016/679 “GDPR” - copying, > dissemination or use of this e-mail or the information herein by > anyone other than the intended recipient is prohibited. If you have > received this email by mistake, please notify us immediately by > telephone or e-mail. -- Regards, Nuno Oliveira == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. ==
Nuno Miguel Carvalho Oliveira @nmcoliveira Software Engineer GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 1660272 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel