Issue Details (XML | Word | Printable)

Key: BCMS-259
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Savvas Triantafyllou
Reporter: Savvas Triantafyllou
Votes: 0
Watchers: 0
Operations

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

Change type of property 'language' in administrativeMetadataType complex property

Created: 28/May/10 10:35 AM   Updated: 28/May/10 10:59 AM
Component/s: betacms-repository
Affects Version/s: 2.1.1.GA
Fix Version/s: 2.2.0.GA

Time Tracking:
Not Specified

Support Type: Code development


 Description  « Hide
With the introduction of the new builtin vocabulary (taxonomy) 'language' , it make sense to change the type of property 'language' in 'administrativeMetadataType' from simpleType 'languageType' to topicType, i.e. to become a Topic property.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 28/May/10 10:45 AM
Since 2.1.2 release is a few days away and this change requires more than just changing property's type (migration script for existing values, change of all queries which contain language criterion, etc), only for version 2.1.2, its type will change to string.

In BetaCMS web console, interface will change accordingly so that value enumeration will contain values from 'language' taxonomy topics.

Savvas Triantafyllou added a comment - 28/May/10 10:54 AM
For those, who use BetaCMS API to insert values for this property, they must use topic's name as the value. For example

BetaCmsRepositoryClient betaCmsRepositoryClient = ...
ContentObject myBlog = .....

//Take the first topic in the taxonomy
Topic blogLanguage = betacmsRepositoryClient.getTaxonomyService().getTaxonomy('language').getRootTopics().get(0);

((StringProperty)myBlog.getCmsProperty('profile.language')).addSimpleTypeValue(blogLanguage.getName());

Savvas Triantafyllou added a comment - 28/May/10 10:59 AM
Committed revision 4376