Issue Details (XML | Word | Printable)

Key: BCMS-78
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

ContentObject property 'systemName' must be mandatory and unique

Created: 06/Oct/09 10:36 PM   Updated: 18/Nov/09 09:50 PM
Component/s: None
Affects Version/s: 2.1.0.CR1
Fix Version/s: 2.1.0.CR2

Time Tracking:
Not Specified


 Description  « Hide
ContentObject built in property 'systemName' must be mandatory and unique among all content objects regardless of their type.

Value for this property could be

1. provided by the user
2. generated automatically from value of property 'title' of complex type 'administrativeMetadataType', processed thoroughly in order to contain only Latin characters with no spaces but dashes (value length should not be over 50 characters)
3. generated automatically from the path of jcr node representing content object. This path has the form year/month/day/contentType[index]

2 or 3 could be defined in XSD of the content type by built in boolean attribute useProfileTitleAsDefaultSystemName

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 18/Nov/09 12:27 PM
ContentObject built in property 'systemName' is now unique and follows pattern [A-Za-z0-9_\-]{1,60} which allows at most 60 latin characters, any digit and dash (-).

During content object save or update 'systemName' uniqueness is checked.

Also, if user does not provide a value for 'systemName' , then a value is automatically generated from property 'title' of complex type 'administrativeMetadataType'. If this property does not have a value, then content object corresponding jcr node path is used for system name value. This path has the form year/month/day/contentObjectId .


Savvas Triantafyllou added a comment - 18/Nov/09 02:00 PM
Also systemName is case insensitive, i.e. values 'latestNews' and 'LATESTNEWS' are the same

Savvas Triantafyllou added a comment - 18/Nov/09 09:39 PM
In cases where system name has already been provided, BetaCMS generates a temporary system name which consists content object id and content object's profile title.

If this value is (nearly impossible) provided as well then an exception is thrown