[GeoNetwork-devel] Xml services to manage groups/users

Hi

I want to add/change some services for group/user management:

  • xml.user.get → allow to retrieve by username (apart of by id as now)
  • xml.group.get → , group name (apart of id as now)

In the documentation for Xml group services is mentioned these service: xml.group.create.update and xml.group.remove, that doesn’t exists.

I would like to add them, been equivalent to the existing ones used in UI, but returning xml response instead of xml.

Also there’s now a service call xml.group.update, but it’s only used to update the translations of groups. So the group services would be like:

xml.group.update → Update/create a group returning xml response
xml.group.remove → Delete a group, returning xml response
xml.group.updatetranslations → Actual xml.group.update

With user services happen similar situation, not sure if xml.user.XXXX services existed in some old version or just the documentation was invalid. I would like to create these services, as calling the related services used in UI return html content.

Is this ok?

Regards,

Jose García


GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net

Hola Jose,

···

2013/10/7 Jose Garcia <jose.garcia@anonymised.com>

Hi

I want to add/change some services for group/user management:

  • xml.user.get → allow to retrieve by username (apart of by id as now)
  • xml.group.get → , group name (apart of id as now)

In the documentation for Xml group services is mentioned these service: xml.group.create.update and xml.group.remove, that doesn’t exists.

I would like to add them, been equivalent to the existing ones used in UI, but returning xml response instead of xml.

Also there’s now a service call xml.group.update, but it’s only used to update the translations of groups. So the group services would be like:

xml.group.update → Update/create a group returning xml response
xml.group.remove → Delete a group, returning xml response
xml.group.updatetranslations → Actual xml.group.update

With user services happen similar situation, not sure if xml.user.XXXX services existed in some old version or just the documentation was invalid. I would like to create these services, as calling the related services used in UI return html content.

Is this ok?

I had similar needs for the admin UI refactoring and created the following services for users and groups
https://github.com/geonetwork/core-geonetwork/blob/refactor_ui/web/src/main/webapp/WEB-INF/config/config-service-admin-user-and-group.xml#L4

All services returned XML/JSON responses.

About naming, I think we should get rid of the “xml.” as services may return other format (like json when adding “@json” flag).
For the documentation, It could be good to move the doc to the service config file so it’s easier to maintain it.
I’ll try to be online for tomorrow IRC meeting so we can discuss that if needed.

Cheers.

Francois

Regards,

Jose García


GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Ok, lets discuss tomorrow then.

Regards,
Jose García

···

On Mon, Oct 7, 2013 at 10:37 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hola Jose,


GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net

2013/10/7 Jose Garcia <jose.garcia@anonymised.com>

Hi

I want to add/change some services for group/user management:

  • xml.user.get → allow to retrieve by username (apart of by id as now)
  • xml.group.get → , group name (apart of id as now)

In the documentation for Xml group services is mentioned these service: xml.group.create.update and xml.group.remove, that doesn’t exists.

I would like to add them, been equivalent to the existing ones used in UI, but returning xml response instead of xml.

Also there’s now a service call xml.group.update, but it’s only used to update the translations of groups. So the group services would be like:

xml.group.update → Update/create a group returning xml response
xml.group.remove → Delete a group, returning xml response
xml.group.updatetranslations → Actual xml.group.update

With user services happen similar situation, not sure if xml.user.XXXX services existed in some old version or just the documentation was invalid. I would like to create these services, as calling the related services used in UI return html content.

Is this ok?

I had similar needs for the admin UI refactoring and created the following services for users and groups
https://github.com/geonetwork/core-geonetwork/blob/refactor_ui/web/src/main/webapp/WEB-INF/config/config-service-admin-user-and-group.xml#L4

All services returned XML/JSON responses.

About naming, I think we should get rid of the “xml.” as services may return other format (like json when adding “@json” flag).
For the documentation, It could be good to move the doc to the service config file so it’s easier to maintain it.
I’ll try to be online for tomorrow IRC meeting so we can discuss that if needed.

Cheers.

Francois

Regards,

Jose García


GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net


October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork