Sorry, forgot to mention that is DSpace 6 installation.

On Wednesday, 20 July 2016 12:57:57 UTC+3, Ari wrote:
>
> Hi,
> I'm trying to set bitstreampolicy with Jython. I can get bundle, bitstream 
> and current policy without problems. But how do I set new policy to a 
> bitstream?
>
> I found this:
>
> *authorizeService.addPolicy*
> So i tried something like this:
> from org.dspace.authorize.service import AuthorizeService
>
> class ConvertOldEmbargo(ScriptedTask):
>     def init(self, curator, taskName):
>         self.c = curator
>  
>     def performDso(self, dso):
>         self.data.clear()
>         g = AuthorizeService();
>
>
> This results:
>
> No visible constructors for class (org.dspace.authorize.service.
> AuthorizeService)
>
>
> I cannot instantiate AuthorizeService. I know it is an interface but how 
> can I use it?
>
> My lack of Java knowledge make things hard for me...
>
>

-- 
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.

Reply via email to