Hi Damian,
 
Welcome to the DSpace community.
 
You could use the event mechanism, but hopefully the 'special groups' facility 
will do what you want. It is possible to define 'special groups' that a user 
becomes a member of if they fit a particular rule. So assuming you want all 
logged in users to be able to submit to a collection, do the following:
 
 - Create a new 'group' for example 'allusers'. Do not add any users to this 
group.
 - Assign the group the relevant permissions (e.g. add it as a submitter to 
each collection)
 - Edit dspace.cfg and find the key 'password.login.specialgroup' (or 
ldap.login.specialgroup if you use LDAP authentication) and set the value to 
'allusers' or whatever you called your group
 - Restart tomcat
 
Now, whenever a user logs in, they will temporarily become a member of that 
group for the duration of their session. However, because these are 'special 
groups' when you view the group, you will not see a list of members.
 
I hope that helps,
 

Stuart Lewis
Digital Services Programmer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz 
<https://libex1.lbr.auckland.ac.nz/exchweb/bin/redir.asp?URL=http://www.library.auckland.ac.nz/>
 /


________________________________

From: Sobieralski, Damian Michael [mailto:[email protected]]
Sent: Thu 25/06/2009 04:21
To: [email protected]
Subject: [Dspace-tech] Registration Group



I am new to Dspace to please forgive the basic questions.  I am trying to 
implement a system that uses the self subscribe system of Dspace (1.5.2).  I 
would like the users, once validated, to automatically be able to submit to the 
collections.  I was quite surprised to not find a registered group built into 
Dspace to accommodate this. Or maybe there is any I didn't see it?

 I mentioned this need to a co-worker who has more experience with Dspace than 
I. He mentioned that possibly with Dspace's new event model that I might be 
able to set up some code to run on an eperson creation event (is that the right 
event?) after the user clicks on the validation link in the final step of the 
registration process.  Then, of course, I would need to access some sort of API 
to programmatically add this validated user to a group that has submission 
permission for the collection(s).

 I have been trying to find some examples of how to do this. Would some kind 
soul help me with the following (links to docs and/or examples would be GREAT):

1) How to use a Dspace event

2) How would one use an API to programmatically add a user to a group

3) I find it hard to believe that someone hasn't written this already.  Self 
subscription is rather useless without the ability to automatically elevate a 
validated user to a group other than anonymous.  So if there is something out 
there that would do this already and is available for sharing, I'd be most 
happy :)

Thanks, in advance, for any assistance that you can offer.

- Damian


------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech


------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to