Re: [Dev] GenericArtifacts Pagination

2015-04-11 Thread Shazni Nazeer
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

Re: [Dev] GenericArtifacts Pagination

2015-04-11 Thread Chathura Dilan
Hi Shazni, Thank you, I will try it On Sun, Apr 12, 2015 at 8:44 AM, Shazni Nazeer sha...@wso2.com wrote: 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

[Dev] GenericArtifacts Pagination

2015-04-06 Thread Chathura Dilan
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