|
From: Häyrinen, A. <ari...@jy...> - 2016-07-20 07:21:07
|
Hi,
there is a Java class called "GroupServiceImpl":
public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements GroupService
This class has mehod called "findByName":
@Override
public Group findByName(Context context, String name) throws SQLException {
So there are 2 arguments for that method.
I try to use this method like this (this is DSpace curator task):
class ConvertOldEmbargo(ScriptedTask):
def init(self, curator, taskName):
self.c = curator
def performDso(self, dso):
anonymous = GroupService.findByName(self.c.curationContext(), "Anonymous");
Jython complains:
TypeError: findByName(): expected 3 args; got 2
What is the third argument and how should I deliver it? Did I misunderstood something?
Any help much appreciated.
|