as the JIRA site is currently not reachable ("Service Temporarily
Unavailable"), I just ask here:
Actually it would be useful if I could create a provider strategy
where I could prefix the data with the attribute name of the filled
property. If I have a class with a String property "phone", then it
would be nice if I was able to generate a value like
"phone_0912837871237", just to know that I am displaying the right
field in the presentation layer.
Currently this does not seem to be possible. It would require a
rewrite of PodamFactoryImpl (which in fact is quite big and a "god
class") and of the interface DataProviderStrategy. Do you think that
this is something you might include in a later release? I might try it
by myself, but I am afraid that I would do more harm than benefit.
One feature that will be part of PODAM next release is the possibility to provide Strategies with metadata about the field being filled with data. Then, in your case, you would be able to implement a custom strategy that prepended the field name to the value. So, at a high-level, you would compose your custom strategy with the default strategy and then you could have:
What I can't tell you is when I will be releasing the next version. I'm very busy at the moment but if anyone feels they could implement this functionality fork the code, try it out and when ready issue a pull request.
-----Original Message----- From: podam@googlegroups.com [mailto:podam@googlegroups.com] On Behalf Of
Marcus K. Sent: 22 August 2011 15:53 To: PODAM Subject: [PODAM - Google] JIRA down, Feature Request regarding "data population strategy"
Hi Marco,
as the JIRA site is currently not reachable ("Service Temporarily Unavailable"), I just ask here:
Actually it would be useful if I could create a provider strategy where I could prefix the data with the attribute name of the filled property. If I have a class with a String property "phone", then it would be nice if I was able to generate a value like "phone_0912837871237", just to know that I am displaying the right field in the presentation layer.
Currently this does not seem to be possible. It would require a rewrite of PodamFactoryImpl (which in fact is quite big and a "god class") and of the interface DataProviderStrategy. Do you think that this is something you might include in a later release? I might try it by myself, but I am afraid that I would do more harm than benefit.
I will happily try out the new feature next week. Thanks a lot for
adding this feature.
One other quuestion regarding JIRA: I wonder why the project are only
visible to registered users instead of all anonymous ones. This might
encourage others to use the issue tracker, especially if they can see
that there is activity.
Regards,
Marcus
On 22 Aug., 23:30, Marco Tedone <marco.ted...@gmail.com> wrote:
> One feature that will be part of PODAM next release is the possibility to
> provide Strategies with metadata about the field being filled with data.
> Then, in your case, you would be able to implement a custom strategy that
> prepended the field name to the value. So, at a high-level, you would
> compose your custom strategy with the default strategy and then you could
> have:
> What I can't tell you is when I will be releasing the next version. I'm very
> busy at the moment but if anyone feels they could implement this
> functionality fork the code, try it out and when ready issue a pull request.
> Best,
> Marco
> -----Original Message-----
> From: podam@googlegroups.com [mailto:podam@googlegroups.com] On Behalf Of
> Marcus K.
> Sent: 22 August 2011 15:53
> To: PODAM
> Subject: [PODAM - Google] JIRA down, Feature Request regarding "data
> population strategy"
> Hi Marco,
> as the JIRA site is currently not reachable ("Service Temporarily
> Unavailable"), I just ask here:
> Actually it would be useful if I could create a provider strategy where I
> could prefix the data with the attribute name of the filled property. If I
> have a class with a String property "phone", then it would be nice if I was
> able to generate a value like "phone_0912837871237", just to know that I am
> displaying the right field in the presentation layer.
> Currently this does not seem to be possible. It would require a rewrite of
> PodamFactoryImpl (which in fact is quite big and a "god
> class") and of the interface DataProviderStrategy. Do you think that this is
> something you might include in a later release? I might try it by myself,
> but I am afraid that I would do more harm than benefit.