Ian,
I wanted to comment that University of MIchigan and @Mire (and a few other
members of the community) do have a project now planned for DSpace 3.0
to enhance Embargo Support with more advanced features. Which includes
individual bitstream embargo controls on the "File Upload" submission
page and support for Dark embargo, I would recommend looking here for
details.
https://wiki.duraspace.org/display/DSPACE/Advanced+Embargo+Support
We welcome feedback on any of your current requirements in the wiki page or
as notes.
Best,
Mark
On Fri, Mar 30, 2012 at 3:54 AM, helix84 <[email protected]> wrote:
> On Fri, Mar 30, 2012 at 12:40, Wellaway, Ian <[email protected]>
> wrote:
> > Is it possible to embargo individual bitstreams on a single item?
>
> Yes, it is. Here's an example for embargo lifter. Setter is the same thing.
>
> public void liftEmbargo(Context context, Item item) throws
> SQLException, AuthorizeException, IOException {
> ...
> Bundle[] bundles = item.getBundles("ORIGINAL");
> if(bundles.length != 1) {
> return;
> }
> Bundle originalBundle = bundles[0];
> Bitstream[] bitstreams = originalBundle.getBitstreams();
> for (int i = 0; i < bitstreams.length; i++) {
> Bitstream bitstream = bitstreams[i];
> ResourcePolicy policy = ResourcePolicy.create(context);
> policy.setAction(Constants.READ);
> policy.setEPerson(context.getCurrentUser());
> policy.setGroup(Group.findByName(context, "mygroup"));
> policy.setResource(bitstream);
> policy.update();
> }
> ...
> }
>
> But remember that metadata is per-item, not per-bitstream.
>
> Regards,
> ~~helix84
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
--
[image: @mire Inc.]
*Mark Diggory *(Schedule a
Meeting<https://www.google.com/calendar/selfsched?sstoken=UUdDSzJzTTlOUE1mfGRlZmF1bHR8MzgwMmEwYjk1NDc1NDQ1MGI0NWViYjYzZjExZDI3Mzg>
)
*2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
http://www.atmire.com
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech