[GeoNetwork-users] Harvesting for specified users?

Hi Andrea,

Thanks again for the time you spend to answer my questions.

This is our situation:
-----------------------------
node A (holds the original metadata):

user1 which is a member op group1
user2 which is a member op group2
metadataset1 is visible and downloadable only to members of the group1 group.
metadataset2 is visible and downloadable only to members of the group2 group.

node B (wants to harvest metadata from node A):

user1 which is a member op group1
user2 which is a member op group2

What we want to do:
------------------------------
1/ harvest metadataset1 from nodeA into nodeB and setting the visible
and downloadable privilege for group1
2/ harvest metadataset2 from nodeA into nodeB and setting the visible
and downloadable privilege for group2
--> So users which are member of group2 should not be able to see the
harvested metadataset1 (and Internet/All users shouldn't see it
either)

Our main question:
----------------------------
Is a situation like this configurable? And if yes, how do we do it?

So far, I've managed to get 1/ going. So, we are able to harvest
metadataset1 (which is visible and downloadable to members of group1
in node A) into node B and make this metadataset visible to members of
group1 in node B. But 2/ isn' performend.

As you can see there are two <schedule></schedule> configuration
parts. So, GeoNetwork is performing the same metadata synchronisation
on the same host, but with a different user. The first one for user1
is executed, but the second for uses2 isn't. Why??

See below an abstract from node B's config.xml file:
---------------------------------------------------------------------------

                <schedule name="geonetwork sync"
class=".schedules.MetadataSync" when="30 sec">
                        <param name="sites">
                                <site name="geonetwork">
                                        <general>
                                                <host>xxx.xx.xxx.xxx</host>
                                                <port>8080</port>
                                                <language>en</language>
                                                <username>user1</username>
                                                <password>pwd1</password>
                                        </general>
                                        <services>
                                                <login>xml.user.login</login>
                                                <logout>xml.user.logout</logout>
                                                <search>xml.search</search>
                                                <get>xml.metadata.get</get>
                                        </services>
                                        <search>
                                                <extended>off</extended>
                                                <help>off</help>
                                                <relation>equal</relation>
                                                <any />
                                                <remote>off</remote>
                                                <region></region>
                                                <paper>off</paper>
                                                <siteId>abc</siteId>
                                        </search>
                                        <group id="14">
                                                <privilege>view</privilege>
                                                <privilege>download</privilege>
                                        </group>
                                </site>
                        </param>
                </schedule>

                <schedule name="geonetwork sync"
class=".schedules.MetadataSync" when="30 sec">
                        <param name="sites">
                                <site name="geonetwork">
                                        <general>
                                                <host>xxx.xx.xxx.xxx</host>
                                                <port>8080</port>
                                                <language>en</language>
                                                <username>user2</username>
                                                <password>pwd2</password>
                                        </general>
                                        <services>
                                                <login>xml.user.login</login>
                                                <logout>xml.user.logout</logout>
                                                <search>xml.search</search>
                                                <get>xml.metadata.get</get>
                                        </services>
                                        <search>
                                                <extended>off</extended>
                                                <help>off</help>
                                                <relation>equal</relation>
                                                <any />
                                                <remote>off</remote>
                                                <region></region>
                                                <paper>off</paper>
                                                <siteId>abc</siteId>
                                        </search>
                                        <group id="8">
                                                <privilege>view</privilege>
                                                <privilege>download</privilege>
                                        </group>
                                </site>
                        </param>
                </schedule>

Hi Michael,

On Sep 8, 2006, at 10:38 AM, Michael Vanderhoydonk wrote:

Hi Andrea,

Thanks again for the time you spend to answer my questions.

This is our situation:
-----------------------------
node A (holds the original metadata):

user1 which is a member op group1
user2 which is a member op group2
metadataset1 is visible and downloadable only to members of the group1 group.
metadataset2 is visible and downloadable only to members of the group2 group.

node B (wants to harvest metadata from node A):

user1 which is a member op group1
user2 which is a member op group2

What we want to do:
------------------------------
1/ harvest metadataset1 from nodeA into nodeB and setting the visible
and downloadable privilege for group1
2/ harvest metadataset2 from nodeA into nodeB and setting the visible
and downloadable privilege for group2
--> So users which are member of group2 should not be able to see the
harvested metadataset1 (and Internet/All users shouldn't see it
either)

Our main question:
----------------------------
Is a situation like this configurable? And if yes, how do we do it?

Yes it should, try to move the <site name="geonetwork">....</server> section of the second <schedule> into the first <schedule> and repeat as many times as you need and configure each one with specific privileges and queries.

Jeroen

So far, I've managed to get 1/ going. So, we are able to harvest
metadataset1 (which is visible and downloadable to members of group1
in node A) into node B and make this metadataset visible to members of
group1 in node B. But 2/ isn' performend.

As you can see there are two <schedule></schedule> configuration
parts. So, GeoNetwork is performing the same metadata synchronisation
on the same host, but with a different user. The first one for user1
is executed, but the second for uses2 isn't. Why??

Hi Michael,

the configuration is ok but you may have only 1 schedule instance for
the harvesting, so change the config.xml into this:

  &lt;schedule name=&quot;geonetwork sync&quot; class=&quot;\.schedules\.MetadataSync&quot; when=&quot;30 sec&quot;&gt;
                    &lt;param name=&quot;sites&quot;&gt;
                            &lt;site name=&quot;geonetwork&quot;&gt;
                                    &lt;general&gt;
                                            &lt;host&gt;xxx\.xx\.xxx\.xxx&lt;/host&gt;
                                            &lt;port&gt;8080&lt;/port&gt;
                                            &lt;language&gt;en&lt;/language&gt;
                                            &lt;username&gt;user1&lt;/username&gt;
                                            &lt;password&gt;pwd1&lt;/password&gt;
                                    &lt;/general&gt;
                                    &lt;services&gt;
                                            &lt;login&gt;xml\.user\.login&lt;/login&gt;
                                            &lt;logout&gt;xml\.user\.logout&lt;/logout&gt;
                                            &lt;search&gt;xml\.search&lt;/search&gt;
                                            &lt;get&gt;xml\.metadata\.get&lt;/get&gt;
                                    &lt;/services&gt;
                                    &lt;search&gt;
                                            &lt;extended&gt;off&lt;/extended&gt;
                                            &lt;help&gt;off&lt;/help&gt;
                                            &lt;relation&gt;equal&lt;/relation&gt;
                                            &lt;any /&gt;
                                            &lt;remote&gt;off&lt;/remote&gt;
                                            &lt;region&gt;&lt;/region&gt;
                                            &lt;paper&gt;off&lt;/paper&gt;
                                            &lt;siteId&gt;abc&lt;/siteId&gt;
                                    &lt;/search&gt;
                                    &lt;group id=&quot;14&quot;&gt;
                                            &lt;privilege&gt;view&lt;/privilege&gt;
                                            &lt;privilege&gt;download&lt;/privilege&gt;
                                    &lt;/group&gt;
                            &lt;/site&gt;
                            &lt;site name=&quot;geonetwork&quot;&gt;
                                    &lt;general&gt;
                                            &lt;host&gt;xxx\.xx\.xxx\.xxx&lt;/host&gt;
                                            &lt;port&gt;8080&lt;/port&gt;
                                            &lt;language&gt;en&lt;/language&gt;
                                            &lt;username&gt;user2&lt;/username&gt;
                                            &lt;password&gt;pwd2&lt;/password&gt;
                                    &lt;/general&gt;
                                    &lt;services&gt;
                                            &lt;login&gt;xml\.user\.login&lt;/login&gt;
                                            &lt;logout&gt;xml\.user\.logout&lt;/logout&gt;
                                            &lt;search&gt;xml\.search&lt;/search&gt;
                                            &lt;get&gt;xml\.metadata\.get&lt;/get&gt;
                                    &lt;/services&gt;
                                    &lt;search&gt;
                                            &lt;extended&gt;off&lt;/extended&gt;
                                            &lt;help&gt;off&lt;/help&gt;
                                            &lt;relation&gt;equal&lt;/relation&gt;
                                            &lt;any /&gt;
                                            &lt;remote&gt;off&lt;/remote&gt;
                                            &lt;region&gt;&lt;/region&gt;
                                            &lt;paper&gt;off&lt;/paper&gt;
                                            &lt;siteId&gt;abc&lt;/siteId&gt;
                                    &lt;/search&gt;
                                    &lt;group id=&quot;8&quot;&gt;
                                            &lt;privilege&gt;view&lt;/privilege&gt;
                                            &lt;privilege&gt;download&lt;/privilege&gt;
                                    &lt;/group&gt;
                            &lt;/site&gt;
                    &lt;/param&gt;
            &lt;/schedule&gt;

Cheers,
Andrea

Hi Andrea,

Thanks again for the time you spend to answer my questions.

This is our situation:
-----------------------------
node A (holds the original metadata):
> user1 which is a member op group1
> user2 which is a member op group2
> metadataset1 is visible and downloadable only to members of the group1 group.
> metadataset2 is visible and downloadable only to members of the group2 group.

node B (wants to harvest metadata from node A):
> user1 which is a member op group1
> user2 which is a member op group2

What we want to do:
------------------------------
1/ harvest metadataset1 from nodeA into nodeB and setting the visible
and downloadable privilege for group1
2/ harvest metadataset2 from nodeA into nodeB and setting the visible
and downloadable privilege for group2
--> So users which are member of group2 should not be able to see the
harvested metadataset1 (and Internet/All users shouldn't see it
either)

Our main question:
----------------------------
Is a situation like this configurable? And if yes, how do we do it?

So far, I've managed to get 1/ going. So, we are able to harvest
metadataset1 (which is visible and downloadable to members of group1
in node A) into node B and make this metadataset visible to members of
group1 in node B. But 2/ isn' performend.

As you can see there are two <schedule></schedule> configuration
parts. So, GeoNetwork is performing the same metadata synchronisation
on the same host, but with a different user. The first one for user1
is executed, but the second for uses2 isn't. Why??

See below an abstract from node B's config.xml file:
---------------------------------------------------------------------------

                <schedule name="geonetwork sync"
class=".schedules.MetadataSync" when="30 sec">
                        <param name="sites">
                                <site name="geonetwork">
                                        <general>
                                                <host>xxx.xx.xxx.xxx</host>
                                                <port>8080</port>
                                                <language>en</language>
                                                <username>user1</username>
                                                <password>pwd1</password>
                                        </general>
                                        <services>
                                                <login>xml.user.login</login>
                                                <logout>xml.user.logout</logout>
                                                <search>xml.search</search>
                                                <get>xml.metadata.get</get>
                                        </services>
                                        <search>
                                                <extended>off</extended>
                                                <help>off</help>
                                                <relation>equal</relation>
                                                <any />
                                                <remote>off</remote>
                                                <region></region>
                                                <paper>off</paper>
                                                <siteId>abc</siteId>
                                        </search>
                                        <group id="14">
                                                <privilege>view</privilege>
                                                <privilege>download</privilege>
                                        </group>
                                </site>
                        </param>
                </schedule>

                <schedule name="geonetwork sync"
class=".schedules.MetadataSync" when="30 sec">
                        <param name="sites">
                                <site name="geonetwork">
                                        <general>
                                                <host>xxx.xx.xxx.xxx</host>
                                                <port>8080</port>
                                                <language>en</language>
                                                <username>user2</username>
                                                <password>pwd2</password>
                                        </general>
                                        <services>
                                                <login>xml.user.login</login>
                                                <logout>xml.user.logout</logout>
                                                <search>xml.search</search>
                                                <get>xml.metadata.get</get>
                                        </services>
                                        <search>
                                                <extended>off</extended>
                                                <help>off</help>
                                                <relation>equal</relation>
                                                <any />
                                                <remote>off</remote>
                                                <region></region>
                                                <paper>off</paper>
                                                <siteId>abc</siteId>
                                        </search>
                                        <group id="8">
                                                <privilege>view</privilege>
                                                <privilege>download</privilege>
                                        </group>
                                </site>
                        </param>
                </schedule>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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