[GeoNetwork-devel] [GeoNetwork opensource Developer website] #408: Remove groupOwner from GeoNetwork

#408: Remove groupOwner from GeoNetwork
-------------------------+--------------------------------------------------
Reporter: heikki | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version: v2.6.1
Keywords: |
-------------------------+--------------------------------------------------
I think we can remove groupOwner completely from GeoNetwork. Since ticket
#400 it is no longer used in search, as its function in search can be just
as well expressed by querying for all metadata the current user may view
or edit (op0 and op2).

Metadata has view and edit privileges for each of the groups that the user
who created the metadata belongs to. So it is not clear at all what
"groupOwner" is really supposed to mean.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/408&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#408: Remove groupOwner from GeoNetwork
-------------------------+--------------------------------------------------
Reporter: heikki | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: minor | Milestone: v2.7.0
Component: General | Version: v2.6.1
Keywords: |
-------------------------+--------------------------------------------------

Comment(by fxp):

It's used in !GetByOwner
{{{
// if the user is a reviewer, return all metadata of the user's groups
         else if(userProfile.equals(Geonet.Profile.REVIEWER) ||
userProfile.equals(Geonet.Profile.USER_ADMIN)) {
             query = "SELECT id FROM Metadata "+
                         "WHERE groupOwner IN (SELECT groupId FROM
UserGroups WHERE userId='"+ownerId+
                         "' AND isHarvested='n')" ;
         }
}}}
(even if I think that this service should be removed because same query
could be made using !LuceneSearcher and xml.search service)

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/408#comment:1&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/geonetwork&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.