A CqContextResource is constructed as follows:
- Create a new location for the resource by adding a child segment
to the selected folder location.
- Obtain a proxy for that location from the provider in whose change
context you want to perform the modifications.
- Populate the proxy with the property values appropriate for the
new resource. The CqRecord.ACTION property must be set when
creating a record or attachment.
- Invoke the appropriate doCreateXxx() method
on the proxy, which returns a proxy for the newly created resource that contains
any property values requested in the create-resource operation.
- Deliver the new resource to a project. This final step is needed
to make the new resource available to other users of the system. It is also
the main trigger for business logic that runs on the server.
The steps of the process to create a new context resource can be
executed in one roundtrip to the server using the appropriate deliveryOrder value.
The doCreateXxx methods contact the repository (which
can be a server or a file area) referenced in the proxy's Location to construct
a new resource and then write the property values in the proxy to the
new resource.