Re: [dspace-tech] Assigning ITEM directly to e-person

2018-03-16 Thread Monika Mevenkamp
If there is a pattern that lets you decide who should have access based on item 
metadata you could write code 
you could do something along the lines of 

find item 
determine netid 
create person if not exists 
create group if not exists   and add person
for all original bitstreams in item 
set bitstream read to group

For this type of scripting I use jruby and a gem I developed that allows me to 
access the DSpace objects in the Java API from ruby code. The gem interacts 
with dspace version 5 and  is available from github:   jrdspace 
gem>.  you can see the scripts I developed 
at  cli-dspace>. For example I have a create script 
that   given a first name , last name and netid  creates an EPerson record - 
see 

https://github.com/akinom/dspace-cli/blob/master/netid/create.rb#L13-L21 


If you are interested in using this - I’d be glad to answer any question you 
have. 

Alternatively you could make this a curation task that you then allow to run on 
communities, collections, as well as individual items. the DSpace Wiki has 
documentation HERE 

Monika




> On Mar 16, 2018, at 1:42 AM, Ghazi Anwar  wrote:
> 
> Hi friends
> Is there a way to assign an item or bitstream directly to e-person in dspace 
> 5. I need this because it is our requirement where each e-person shall be 
> given rights to certain documents.No other e-person can view them. in the 
> current setup of dspace we need to create as many group as e-person then 
> assigning the item level policy to these group. this has become a very 
> tedious and length process when 1000 of documents are there. do you have any 
> idea of how to achieve that. 
> if there is no way can we write our customized pages to do that where we will 
> select the documents then assign it to a e-person. 
> 
> Please let me know the way out.  
> 
> Regards
> Ghazi
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dspace-tech+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to dspace-tech@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/dspace-tech 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Assigning ITEM directly to e-person

2018-03-16 Thread Ghazi Anwar
Hi friends
Is there a way to assign an item or bitstream directly to e-person in 
dspace 5. I need this because it is our requirement where each e-person 
shall be given rights to certain documents.No other e-person can view them. 
in the current setup of dspace we need to create as many group as e-person 
then assigning the item level policy to these group. this has become a very 
tedious and length process when 1000 of documents are there. do you have 
any idea of how to achieve that. 
if there is no way can we write our customized pages to do that where we 
will select the documents then assign it to a e-person. 

Please let me know the way out.  

Regards
Ghazi

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.