Patent ID: 8244713

Claim:
A computer-implemented method for a content management system that manages a plurality of objects in a repository to reference a data source external to the repository, the method comprising the steps of: when checking into the repository an XML document that contains a query, performing the steps of: executing the query; evaluating data returned from the query to determine whether the data satisfies classification rules; if the data satisfies the classification rules, performing the steps of: creating a returned data object in the repository containing the data; creating a query object in the repository containing the query; replacing the query in the XML document with a link to the retuned data object; creating a link between the query object and the returned data object; configuring a lifecycle policy corresponding to the query object that determines when the query in the query object is executed; if the data does not satisfy the classification rules, performing the step of: importing the data directly into the XML document; when checking the returned data object out of the repository, performing the steps of: determine from the lifecycle policy corresponding to the query object whether the query in the query object should be executed; if the query in the query object should be executed, performing the step of updating the returned data object with results of executing the query within the query object with the link to the returned data object; and if the query in the query object should not be executed, performing the step of breaking the link between the query object and the returned data object.