Details
-
Improvement
-
Resolution: Duplicate
-
Major
-
None
-
1.0
-
None
-
patch
-
Low
-
N/A
-
N/A
-
Awaiting Contributor feedback
-
Description
In the current version access levels ("edit", "admin", "programming", etc) are strings retrieved with XWikiRightServiceImpl.getRight(String action) and all comparisons are made using "equals" on strings. It is somehow unsafe since an extra space, typo or wrong case would produce errors. Also, an enumerated model would allow comparisons to be made using "==" which improves the readability of the code and the performance.
Attachments
Issue Links
- is related to
-
XWIKI-436 Create an enumerated DocumentAction class for document actions (edit, view, download, etc)
-
- Closed
-