Hi Chathura, You may try using get(path, int, int) in Registry class. This is a method defined in the CoreRegistry interface in the org.wso2.carbon.registry.core package. Registry class implements this interface. This method returns the collection you need.
Shazni Nazeer Senior Software Engineer Mob : +94 777737331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Mon, Apr 6, 2015 at 4:51 PM, Chathura Dilan <[email protected]> wrote: > Hi All, > > I want to get artifact set by giving offset and limit. I tried with > PaginationContext but I'm not getting the expected output. > > Can anyone explain how PaginationContext.init() is working and how to set > offset and limit to get a specific artifact set. > > Eg. If I have 1000 artifacts and I want to get the artifacts between 20 > and 50, how offset (which is 20) and limit (which is 30) can be used in > PaginationContext.init(). > > Thanks > > -- > Regards, > > Chatura Dilan Perera > *(Senior Software Engineer** - WSO2 Inc.**)* > www.dilan.me > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
