Hello,
I am looking for a way to retrieve only those metadata records to which a
user has edit rights. The "my metadata" tool in the admin interface would
seem to be the tool to do this trick, but I can't see that it is functioning
right.
"my metadata" calls main.search with the parameter "editable=true". I can't
see where this function can accept this argument. The functions
"main.search" (and "xml.search" which calls the same java class), return the
same results whether I use the 'editable argument or not.
What I need is to be able to retrieve only those records for a editor that
that editor can has permission too edit. How can this be done?
Cheers,
Byron Coochrane
LISAsoft
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-my-metadata-tool-to-return-editable-data-tp4462622p4462622.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
I can’t say it is the best way. But one way would be to make a CSW request as follows:
<?xml version="1.0" encoding="UTF-8"?> full relevance D similarity0.8_isTemplaten_owner1_isHarvestedn
The _owner shows obviously means the user has edit access, but you can also add groups to the query like:
ogc:PropertyName_op2</ogc:PropertyName>ogc:Literal8</ogc:Literal>
_op2 indicates edit access. The literal 8 is the groupId.
Yes more complicated than having edit working. But I am not so used to the geonetwork specific APIs.
Jesse
On Sun, Feb 12, 2012 at 7:22 PM, ByronCinNZ cochranes4@anonymised.com wrote:
Hello,
I am looking for a way to retrieve only those metadata records to which a
user has edit rights. The “my metadata” tool in the admin interface would
seem to be the tool to do this trick, but I can’t see that it is functioning
right.
“my metadata” calls main.search with the parameter “editable=true”. I can’t
see where this function can accept this argument. The functions
“main.search” (and “xml.search” which calls the same java class), return the
same results whether I use the 'editable argument or not.
What I need is to be able to retrieve only those records for a editor that
that editor can has permission too edit. How can this be done?
Cheers,
Byron Coochrane
LISAsoft
–
View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-my-metadata-tool-to-return-editable-data-tp4462622p4462622.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
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
hi Byron,
the My Metadata function returned also viewable (not only editable) metadata, because the search param ‘editable’ was ignored in LueneQueryInput and therefore had no effect. I have now fixed this in the 2.6.x branch and in trunk.
Kind regards,
Heikki Doeleman
On Sun, Feb 12, 2012 at 7:22 PM, ByronCinNZ cochranes4@anonymised.com wrote:
Hello,
I am looking for a way to retrieve only those metadata records to which a
user has edit rights. The “my metadata” tool in the admin interface would
seem to be the tool to do this trick, but I can’t see that it is functioning
right.
“my metadata” calls main.search with the parameter “editable=true”. I can’t
see where this function can accept this argument. The functions
“main.search” (and “xml.search” which calls the same java class), return the
same results whether I use the 'editable argument or not.
What I need is to be able to retrieve only those records for a editor that
that editor can has permission too edit. How can this be done?
Cheers,
Byron Coochrane
LISAsoft
–
View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-my-metadata-tool-to-return-editable-data-tp4462622p4462622.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
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