Details
-
Improvement
-
Resolution: Fixed
-
Major
-
3.2
-
None
-
Unit
-
Medium
-
Description
Make entity reference immutable:
- make all setters protected
- remove getChild()
- remove clone() and Clonable
- add a copy constructor
- add a copy and replace parent construtor: copy a reference, and replace one of the parent in the parent chain by another one. This is helps circumvent most current use of setters in existing code. Existing code should be latter improved to avoid this. In particular, resolver could use a private mutable reference as suggested by Thomas.
Add parameters to EntityReference:
- add a TreeMap of parameters
- add public getter and protected setter for a parameter
- add construtor with parameters
- update copy constructors, equals, hashcode and Comparable
Add Locale and Version to DocumentReference:
- add getter and protected setter for locale and version
- add construtors with locale and/or version
see http://markmail.org/thread/rjtoldp6wntf662h for vote and discussion
Attachments
Issue Links
- relates to
-
XE-1067 XWiki.ClassSheet doesn't detect properly the class template
- Closed
-
XWIKI-8349 DocumentReference Locale is ignored by the platform
- Closed