On Wed, Oct 20, 2010 at 10:57, Vincent
Massol<vincent(a)massol.net> wrote:
On Oct 19, 2010, at 10:04 PM, Marius Dumitru Florea wrote:
On 10/19/2010 09:43 PM, Vincent Massol wrote:
Hi,
We currently have 2 methods introduced in 2.5 timeframe in the WikiModel class:
String getAttachmentURL(ResourceReference attachmentReference);
String getImageURL(ResourceReference attachmentReference, Map<String, String>
parameters);
I think we should merge them into a single method in charge of returning the URL of any
resource reference:
getResourceURL(ResourceReference reference,
Map<String, String> parameters);
Are you going to use the current implementation of getImageURL for all
ResourceType.ATTACHMENT resources?
You're right, since we have no way of differentiating links and images in
ResourceReference we need to have 2 methods:
- getImageURL
- getLinkURL
(better than getAttachmentURL IMO)