Hi Dulitha

To add to eranda's answer. I think
GovernanceUtils.findGovernanceArtifactConfigurations [1] method will come
help to some extent you can get all the configurations using this and then
find the asset type by getting governanceArtifactConfiguration.getKey() and
use that to create the GenericArtifactManager.



[1]
http://wso2.com/project/registry/4.1.1/docs/apidocs/governance/org/wso2/carbon/governance/api/util/GovernanceUtils.html#findGovernanceArtifactConfigurations(org.wso2.carbon.registry.core.Registry)

Regards,
Pulasthi


On Thu, Jun 20, 2013 at 1:08 PM, Eranda Sooriyabandara <era...@wso2.com>wrote:

> Hi Dulitha,
>
>
> On Thu, Jun 20, 2013 at 12:50 PM, Chan <duli...@wso2mobile.com> wrote:
>
>> Hi all,
>>
>> For the mobile app store we have several artifact types (iOS, Android etc).
>> We want to know if there is a method to retrieve multiple asset types
>> (Since GenericArtifactManager requires artifact type given in constructor).
>>
>
> There was a mathod to retrieve all artifacts,
> GovernanceUtils.getAllArtifacts(), but we removed it from 4.6.0 onwards
> since the cost of this method is high and there is no point of retrieving
> artifacts which related to multiple artifact types.  So what we recommend
> here is to make GenericArtifactManager for each artifacttype, so you won't
> able to filter out iOS, Androd etc...
>
> thanks
> Eranda
>
>
>
>
>>
>> Thank you.
>> --
>> Chan (Dulitha Wijewantha)
>> Software Engineer - Mobile Development
>> WSO2Mobile
>> Lean.Enterprise.Mobileware
>>  * ~Email       duli...@wso2mobile.com*
>> *  ~Mobile     +94712112165*
>> *  ~Website   dulithawijewantha.com
>> *
>> *  ~Blog         blog.dulithawijewantha.com<http://dulichan.github.io/chan/>
>> *
>> *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>>
>
>
>
> --
> *Eranda Sooriyabandara
> *Senior Software Engineer;
> Integration Technologies Team;
> WSO2 Inc.; http://wso2.com
> Lean . Enterprise . Middleware
>
> E-mail: eranda AT wso2.com
> Mobile: +94 716 472 816
> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
> Blog: http://emsooriyabandara.blogspot.com/
>
>
>
> *
> *
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Pulasthi Supun
Software Engineer; WSO2 Inc.; http://wso2.com,
Email: pulas...@wso2.com
Mobile: +94 (71) 9258281
Blog : http://pulasthisupun.blogspot.com/
Git hub profile: https://github.com/pulasthi
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to