[GeoNetwork-users] XML Services to Fetch Meatdata Privilege

Hello,
  I would like to know if there is any XML services in geonetwork Where I
can fetch the Privilege for a Given metadata . For example I want know which
all groups has view only access for this metadata and which all group has
edit and other access for this metadata.

Please let me know. Thanks

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/XML-Services-to-Fetch-Meatdata-Privilege-tp5091409.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi

There's a service for this: metadata.admin.form (see the definition in
WEB-INF/config-metadata.xml), but it outputs html. The service accepts the
metadata uuid as a parameter.

If you want only the xml response, you can add new service definition in
WEB-INF/config-metadata.xml, like this:

<service name="metadata.privileges">
<class name=".services.metadata.GetAdminOper"/>
</service>

If using 2.10 you also need to add in
WEB-INF/config-security-mapping.xmlthis like

<sec:intercept-url pattern="/srv/.*/metadata. privileges!?.*"
access="hasRole('Administrator')"></sec:intercept-url>

After these changes GeoNetwork requires a restart.

If no option to add a new service, you can call the existing one in debug
mode (adding ! to the URL). Not optimal, but should do the work:

http://localhost:8080/geonetwork/srv/eng/metadata.admin.form*!*
?uuid=METADATA_UUID

This invocation returns the complete xml that is passed to the xslt that
creates the html.

In the xpath /root/groups you can access to the privileges information of
each group (privileges set in oper nodes with <on /> element):

<group userGroup="true">
<id>3</id>
<name>Group1</name>
<description>
</description>
<email/>
<referrer/>
<label>
<eng>Group1</eng>
</label>
<oper>
<id>0</id>
*<on/>*
</oper>
<oper>
<id>1</id>
</oper>

Regards,
Jose García

On Wed, Nov 27, 2013 at 9:25 AM, udhaya <udhay.forum@anonymised.com> wrote:

Hello,
  I would like to know if there is any XML services in geonetwork Where I
can fetch the Privilege for a Given metadata . For example I want know
which
all groups has view only access for this metadata and which all group has
edit and other access for this metadata.

Please let me know. Thanks

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/XML-Services-to-Fetch-Meatdata-Privilege-tp5091409.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

* GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 13 6721 WD BennekomThe
Netherlandshttp://GeoCat.net/> *