Issue Details (XML | Word | Printable)

Key: BCMS-64
Type: New Feature New Feature
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

Allow users to define projections in ContentObjectCriteria

Created: 05/Jul/09 11:02 AM   Updated: 05/Jul/09 11:16 AM
Component/s: None
Affects Version/s: 2.1.0.CR1
Fix Version/s: 2.1.0.CR1

Time Tracking:
Not Specified


 Description  « Hide
When querying a repository using ContentObjectCriteria, all matching content object returned carry no properties as by default lazy loading is enabled.

It would be helpful if users could specify some properties to be preloaded.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 05/Jul/09 11:03 AM
Added new methods in ContentObjectCriteria

addPropertyPathWhoseValueWillBePreLoaded
getPropertyPathsWhichWillBePreLoaded

Savvas Triantafyllou added a comment - 05/Jul/09 11:05 AM
This also has impact when querying repository and results are returned as XML.

This feature allows users to be able to retrieve only the necessary information and thus processing much less smaller XML responses.

Savvas Triantafyllou added a comment - 05/Jul/09 11:06 AM
Updated content-api as well by providing a new query parameter

projectionPaths

whose value is a commaDelimited string containing one or more property paths

Savvas Triantafyllou added a comment - 05/Jul/09 11:16 AM
Committed revisions

betacms-repository-api 3157
betacms-repository-model 3158
betacms-repository 3163
betacms-content-api 3166