History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LOOM-150
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Ignacio Coloma
Reporter: Ignacio Coloma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Loom

An easy way to generate public RESTful ids

Created: 17/Feb/09 12:18 PM   Updated: 17/Feb/09 12:28 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1


 Description  « Hide
There should be an easy way to generate public IDs, i.e.:

* "2010 ya está aquí" -> "2010-ya-esta-aqui"

 All   Comments   Change History      Sort Order:
Ignacio Coloma - 17/Feb/09 12:28 PM
A StringUtils.generateID can been added to the String project to calculate a string candidate.
A IdGeneratorService has been added to the addons project to check in the database that the candidate has not been already used, and add numeric indexes as needed to avoid collisions.