Changes for page Release Notes for XWiki 4.3 Milestone 2
Last modified by Thomas Mortagne on 2023/10/13
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. RalucaMoisa1 +XWiki.mflorea - Content
-
... ... @@ -156,7 +156,29 @@ 156 156 157 157 * The methods setUrlPatternMatcher and getUrlPatternMatcher have been removed from the core class com.xpn.xwiki.XWiki. The underlying URLPatternMatcher could not really be used as a singleton instance and was causing irregular failures in the basic authentication method. Thus these methods cannot be meaningfully relied upon and have therefore been removed. 158 158 * When setting the value using setValue (or setList) on a list field in an XWiki object, the list will now be copied. To be able to update the list, you must call getValue (or getList) and update the returned list. This is due to {{jira style="enum" url="http://jira.xwiki.org"}}XWIKI-8398{{/jira}}. 159 +* The behaviour of ##com.xpn.xwiki.api.PropertyClass#getClassType()## (public API) and ##com.xpn.xwiki.objects.classes.PropertyClass#getClassType()## (protected API) has changed. They don't return the canonical Java class name of the property implementation anymore but an implementation hint. Here's the code:((( 160 +{{code language="java"}} 161 +/** 162 + * Each type of XClass property is identified by a string that specifies the data type of the property value (e.g. 163 + * 'String', 'Number', 'Date') without disclosing implementation details. The internal implementation of an XClass 164 + * property type can change over time but its {@code classType} should not. 165 + * <p> 166 + * The {@code classType} can be used as a hint to lookup various components related to this specific XClass property 167 + * type. See {@link com.xpn.xwiki.internal.objects.classes.PropertyClassProvider} for instance. 168 + * 169 + * @return an identifier for the data type of the property value (e.g. 'String', 'Number', 'Date') 170 + */ 171 +public String getClassType() 172 +{ 173 + // By default the hint is computed by removing the Class suffix, if present, from the Java simple class name 174 + // (without the package). Subclasses can overwrite this method to use a different hint format. 175 + return StringUtils.removeEnd(getClass().getSimpleName(), "Class"); 176 +} 177 +{{/code}} 159 159 179 +This means that instead of returning ##com.xpn.xwiki.objects.classes.DBListClass## these methods now return ##DBList##. This is due to {{jira style="enum" url="http://jira.xwiki.org"}}XWIKI-8355{{/jira}}. 180 +))) 181 + 160 160 == API Breakages == 161 161 162 162 The following APIs were modified since 4.2: