>
> +1 for adding the samples and descriptions to Docs.
>
> IMO it is necessary to update the Docs with these two scenarios as it
> helps understand the difference and usage between these two use-cases.
>

I'll have a look. Thanks!


> On Tue, Mar 17, 2015 at 4:38 PM, Sagara Gunathunga <sag...@wso2.com>
> wrote:
>
>>
>>
>> On Tue, Mar 17, 2015 at 2:57 PM, Nirdesha Munasinghe <nirde...@wso2.com>
>> wrote:
>>
>>> Copying Tania
>>>
>>> On Tue, Mar 17, 2015 at 2:17 PM, Isuruwan Herath <isuru...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Mar 17, 2015 at 1:26 PM, Punnadi Gunarathna <punn...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Isuruwan and Sagara,
>>>>>
>>>>> Thank you for the explanation. I can share the sample and descriptions.
>>>>>
>>>>> On Tue, Mar 17, 2015 at 1:06 PM, Sagara Gunathunga <sag...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 17, 2015 at 12:25 PM, Isuruwan Herath <isuru...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Punnadi,
>>>>>>>
>>>>>>> Option 1 will only retrieve the artifacts according to the criteria
>>>>>>> of the given attribute key-value pair. Option 2 can do custom filtering 
>>>>>>> as
>>>>>>> well and its implementation underneath will query all artifacts of the
>>>>>>> given type first (calling getAllGovernanceArtifacts() ) and then do
>>>>>>> the filtering. This could be the reason why you are getting the 
>>>>>>> exception
>>>>>>> in second method.
>>>>>>>
>>>>>>
>>>>>> Shall we incorporate your description with 2 examples into API Java
>>>>>> doc, in case if it's not already there ?
>>>>>>
>>>>>
>>>> +1 Sagara. It should go here [1].
>>>>
>>>> [1]
>>>> https://docs.wso2.com/display/Governance460/Configurable+Governance+Artifacts+with+API
>>>>
>>>>
>>>
>> It's ok to update user docs but my original point is we need to annotate
>> these details in to Java interface as Java doc comment, that's will help
>> developers a lot.
>>
>> Thanks !
>>
>>>
>>>>>> Thanks !
>>>>>>
>>>>>>>
>>>>>>> Thanks!
>>>>>>> Isuruwan
>>>>>>>
>>>>>>> On Tue, Mar 17, 2015 at 10:23 AM, Punnadi Gunarathna <
>>>>>>> punn...@wso2.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> I am working with GenericArtifactManager and just wanted to know
>>>>>>>> the difference between these two implementations:
>>>>>>>>
>>>>>>>>
>>>>>>>> 1. Passing an attribute map to findGenericArtifacts method
>>>>>>>> 2. Passing GenericArtifactFilter instance to findGenericArtifacts
>>>>>>>> method
>>>>>>>>
>>>>>>>> Because in my case, when one of the saved artifact is corrupted, 1
>>>>>>>> would return correct artifact objects of rest of the artifacts saved in
>>>>>>>> Greg where as 2 would throw an exception.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Thanks and Regards,
>>>>>>>>
>>>>>>>> Punnadi Gunarathna
>>>>>>>> Senior Software Engineer,
>>>>>>>> WSO2, Inc.; http://wso2.com <http://wso2>
>>>>>>>> Blog: http://hi-my-world.blogspot.com/
>>>>>>>> Tel : 94 11 214 5345
>>>>>>>> Fax :94 11 2145300
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  <http://lalajisureshika.blogspot.com/>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Isuruwan Herath
>>>>>>> Technical Lead
>>>>>>>
>>>>>>> Contact: +94 776 273 296
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sagara Gunathunga
>>>>>>
>>>>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>>>>> V.P Apache Web Services;    http://ws.apache.org/
>>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>>> Blog ;  http://ssagara.blogspot.com
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks and Regards,
>>>>>
>>>>> Punnadi Gunarathna
>>>>> Senior Software Engineer,
>>>>> WSO2, Inc.; http://wso2.com <http://wso2>
>>>>> Blog: http://hi-my-world.blogspot.com/
>>>>> Tel : 94 11 214 5345
>>>>> Fax :94 11 2145300
>>>>>
>>>>>
>>>>>
>>>>>  <http://lalajisureshika.blogspot.com/>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Isuruwan Herath
>>>> Technical Lead
>>>>
>>>> Contact: +94 776 273 296
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "WSO2 Documentation" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to documentation+unsubscr...@wso2.com.
>>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Thanks,
>>>
>>> Nirdesha Munasinghe,
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>>
>>> Mobile: +94 776321920
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;    http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Thanks and Regards,
>
> Punnadi Gunarathna
> Senior Software Engineer,
> WSO2, Inc.; http://wso2.com <http://wso2>
> Blog: http://hi-my-world.blogspot.com/
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
>
>  <http://lalajisureshika.blogspot.com/>
>



-- 
Tania Mahanama
Senior Technical Writer

Contact:
Mob: +94 077 5129270
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to