Re: [Dev] Carbon Context API Documentation

2015-03-17 Thread Aruna Karunarathna
Hi Pubudu, Here is some sample code snippet, You'll get an idea on how to iterate through. if (governanceRegistry.resourceExists(Constants.GREG_RESOURCE_PATH)) { Collection govCollection = (Collection) governanceRegistry.get(Constants.GREG_RESOURCE_PATH); String[] child = govCollection.ge

Re: [Dev] Carbon Context API Documentation

2015-03-16 Thread Danushka Fernando
AFAIU what you want is to get all resources in a collection. You can retrieve collection from registry and iterate though all resources in that collection. Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Mar 16, 2015 at 1:28 PM, Pubudu

Re: [Dev] Carbon Context API Documentation

2015-03-16 Thread Pubudu Dodangoda
If I say it specifically,I want to know how to get all the resources in a directory in registry I know how to do this when the resource names are known, by using this registry.getResource("resourceName") I want to get all the resources Thank You and kind regards On Mon, Mar 16, 2015 at 1:19 PM,

[Dev] Carbon Context API Documentation

2015-03-16 Thread Pubudu Dodangoda
Where can I find the complete documentations for carbon context API? link I mean something similar to this collections My truest intention is to get an idea about the