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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.