On Tue, Jan 20, 2009 at 6:11 PM, Jean-Vincent Drean
<[email protected]> wrote:
> On Tue, Jan 20, 2009 at 5:48 PM, Thomas Mortagne
> <[email protected]> wrote:
>>>
>>> public List<String> getTags(boolean distinct);
>>
>> Why boolean distinct ?
>
> To be able to get every occurence of every tag when needed (like in
> the tag cloud).
> I could add a getTags() method to ease the most common usage (getting
> on entry per different tag in the wiki).
> WDYT ?

Wouldn't

public List<String> getTagsNames();
public Map<String, Integer> getTagsOccurences();

or something similar be better ?

the List<String> is difficult to use to count occurrences and also it
could be very big if tags are used a lots in the wiki.

>
>>
>>> public List<String> getPagesWithTag(String tag);
>>> public boolean renameTag(String tag, String newTag);
>>> public boolean deleteTag(String tag);
>>>
>
> JV.
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
>



-- 
Thomas Mortagne
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to