Can I set up a CSW virtual point using filter to a group name?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I set up a CSW virtual point using filter to a group name?

Tomas_Kliment
Dear developers,

I found the new CSW virtual endpoint function as very useful for my project.
I would need to configure CSW endpoints for each group I have created within my catalogue.
I was looking at config-lucene.xml file in order to understand whether I may or may not to configure it there.
However I could not find a field definition for the group.
Could anybody advise me how to configure it in order to provide CSW virtual endpoint for each group?

Many thanks in advance,
Tomas 

--
------------------------------------------------------------------
Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: +421 907 232019
Tel: +39 389 4955 954 
e-mail: [hidden email]
www: http://about.me/klimeto
-------------------
Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: +421 259274 297
e-mail: [hidden email]
-------------------
Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of  Marine Science, Venice, Italy 
-------------------  
External consultant:
Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Can I set up a CSW virtual point using filter to a group name?

jesse.eichar
I usually use Luke: http://code.google.com/p/luke/ to open the lucene index to see what fields exist since config-lucene does not show all options.

Groups are a little tricky though because they are not fields per say.  They are operations allowed for the particular group.  

So _op0 will contain the operations allowed for the public group.  Look at the _opX for the operations allowed for a given group.  

Hope that helps,

Jesse

On Mon, Jul 9, 2012 at 10:29 AM, Tomas Kliment <[hidden email]> wrote:
Dear developers,

I found the new CSW virtual endpoint function as very useful for my project.
I would need to configure CSW endpoints for each group I have created within my catalogue.
I was looking at config-lucene.xml file in order to understand whether I may or may not to configure it there.
However I could not find a field definition for the group.
Could anybody advise me how to configure it in order to provide CSW virtual endpoint for each group?

Many thanks in advance,
Tomas 

--
------------------------------------------------------------------
Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: <a href="tel:%2B421%20907%20232019" value="+421907232019" target="_blank">+421 907 232019
Tel: <a href="tel:%2B39%20389%204955%20954" value="+393894955954" target="_blank">+39 389 4955 954 
e-mail: [hidden email]
www: http://about.me/klimeto
-------------------
Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: <a href="tel:%2B421%20259274%20297" value="+421259274297" target="_blank">+421 259274 297
e-mail: [hidden email]
-------------------
Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of  Marine Science, Venice, Italy 
-------------------  
External consultant:
Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Can I set up a CSW virtual point using filter to a group name?

Florent gravin-2
Hi,

I've just submit a pull request that may fix your needs.
Look the ticket : http://trac.osgeo.org/geonetwork/ticket/990

The aim is to add a new field in the index that list all groups one metadata record is published in.
You can then set virtual csw matching this field.

Hope it helps,



--
Florent Gravin
CampToCamp - Chambéry
0479444492


On Mon, Jul 9, 2012 at 10:56 AM, Jesse Eichar <[hidden email]> wrote:
I usually use Luke: http://code.google.com/p/luke/ to open the lucene index to see what fields exist since config-lucene does not show all options.

Groups are a little tricky though because they are not fields per say.  They are operations allowed for the particular group.  

So _op0 will contain the operations allowed for the public group.  Look at the _opX for the operations allowed for a given group.  

Hope that helps,

Jesse

On Mon, Jul 9, 2012 at 10:29 AM, Tomas Kliment <[hidden email]> wrote:
Dear developers,

I found the new CSW virtual endpoint function as very useful for my project.
I would need to configure CSW endpoints for each group I have created within my catalogue.
I was looking at config-lucene.xml file in order to understand whether I may or may not to configure it there.
However I could not find a field definition for the group.
Could anybody advise me how to configure it in order to provide CSW virtual endpoint for each group?

Many thanks in advance,
Tomas 

--
------------------------------------------------------------------
Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: <a href="tel:%2B421%20907%20232019" value="+421907232019" target="_blank">+421 907 232019
Tel: <a href="tel:%2B39%20389%204955%20954" value="+393894955954" target="_blank">+39 389 4955 954 
e-mail: [hidden email]
www: http://about.me/klimeto
-------------------
Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: <a href="tel:%2B421%20259274%20297" value="+421259274297" target="_blank">+421 259274 297
e-mail: [hidden email]
-------------------
Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of  Marine Science, Venice, Italy 
-------------------  
External consultant:
Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Can I set up a CSW virtual point using filter to a group name?

Tomas_Kliment
In reply to this post by jesse.eichar
Hi Jesse and Florent,

I followed the procedure provided by Jesse like this:

       <service name="csw-air">
            <class name=".services.main.CswDiscoveryDispatcher" >
                   <param name="filter" value="+_op0:5 AND +_op3:5"/>
                </class>
            </service>

Where, firstly I found what option has which number (Publish - op0, Download - op1, Interactive Map - op5, Featured - op6, Editing - op2, Notify - op3)
Then queried GeoNetwork DB, table Groups in order to find out IDs for individual groups I have created.

The problem of an example provided above taken from the config-csw-servers.xml is that the virtual csw-air gives indeed back only MD record from the group ID=5 but only those ones that have set the privileges op0 (Publish) and op3 (Notify). I defined those 2 ones, because GeoNetworks does define them automatically after the user selects the group, creates MD record and saves to that group. 
The problem would be if the group admin changes the privileges for the particular MD record, so adds or remove.

Cheers,
Tomas


On 9 July 2012 10:56, Jesse Eichar <[hidden email]> wrote:
I usually use Luke: http://code.google.com/p/luke/ to open the lucene index to see what fields exist since config-lucene does not show all options.

Groups are a little tricky though because they are not fields per say.  They are operations allowed for the particular group.  

So _op0 will contain the operations allowed for the public group.  Look at the _opX for the operations allowed for a given group.  

Hope that helps,

Jesse

On Mon, Jul 9, 2012 at 10:29 AM, Tomas Kliment <[hidden email]> wrote:
Dear developers,

I found the new CSW virtual endpoint function as very useful for my project.
I would need to configure CSW endpoints for each group I have created within my catalogue.
I was looking at config-lucene.xml file in order to understand whether I may or may not to configure it there.
However I could not find a field definition for the group.
Could anybody advise me how to configure it in order to provide CSW virtual endpoint for each group?

Many thanks in advance,
Tomas 

--
------------------------------------------------------------------
Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: <a href="tel:%2B421%20907%20232019" value="+421907232019" target="_blank">+421 907 232019
Tel: <a href="tel:%2B39%20389%204955%20954" value="+393894955954" target="_blank">+39 389 4955 954 
e-mail: [hidden email]
www: http://about.me/klimeto
-------------------
Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: <a href="tel:%2B421%20259274%20297" value="+421259274297" target="_blank">+421 259274 297
e-mail: [hidden email]
-------------------
Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of  Marine Science, Venice, Italy 
-------------------  
External consultant:
Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork




--
------------------------------------------------------------------
Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: +421 907 232019
Tel: +39 389 4955 954 
e-mail: [hidden email]
www: http://about.me/klimeto
-------------------
Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: +421 259274 297
e-mail: [hidden email]
-------------------
Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of  Marine Science, Venice, Italy 
-------------------  
External consultant:
Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork