Re: [Dev] Is there a direct method to retrieve number of assets from the registry?

2014-07-30 Thread Ayesha Dissanayaka
Hi, Considering above constrains we have decided to go with following two options. 1. Use infinite scroll As the scroll go down, an API call is sent to retrieve next set of assets (using query parameters 'start 'count'') Once empty(or less than count) array of assets are retrieved, it will

[Dev] Is there a direct method to retrieve number of assets from the registry?

2014-07-29 Thread Ayesha Dissanayaka
Hi, In order to provide pagination via ES-API we need to get the number of available assets of a given type. ex: Registry.ArtifactManager.getCount(); If registry provides such direct method, what would be it? If not, is it possible to provide such method or what would be the best approach?

Re: [Dev] Is there a direct method to retrieve number of assets from the registry?

2014-07-29 Thread Ayesha Dissanayaka
Hi all, According to the off-line discussions I had with Subash and Ruchira, how governance handles pagination in UI is as follows. - Use 'getAllGenericArtifactIds' method [01] to get all the asset-id's of a given type. - Get asset count from the result. - Then implement pagination