What extra argument is needed for java method call?

Häyrinen, Ari <[email protected]> Wed, 20 Jul 2016 07:20:56 +0000
Newsgroups gmane.comp.lang.jython.user
Message-ID <[email protected]>
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.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users