override doSave() of an xCP type
For Audit I need to get the full java stack trace when any client saves a modified xCP object. In classic Documentum I would create a TBO with the doSave() method.
xCP has the Business Event "<typename> Updated", but it fires on pre-commit which is too late and I can't determine the caller of save().
I managed to add a default non-xCP aspect to the xCP type, but it breaks further deployments when xDA is in production mode: Unable to remove default aspect 'audit' from type tst_testsave
0
Comments
-
I was able to replace an xCP Type Fragment with my aspect using Composer.
Therefore I was able to add a TBO into an xCP type.
This approach doesn't break subsequent deploys, becase xCP will not try to undo our changes to the Type Fragment.
Initially, for a Type Fragment xCP creates an aspect with the primary class com.emc.xcp.runtime.aspect.impl.DefaultAspect and puts defaultaspect.jar into the aspect dm_folder.
With the help of Composer I managed to upload my custom implementation jar into this folder and to replace the primary class with mine that overrides doSave().DCTM_Guru said:- What are you trying to capture?
0 -
Glad to hear that you found a solution. Kind of extreme that you have dump stack trace for auditing purposes. Audit management built into Content Server is very robust. Sometimes its too robust; we actually create version object that copies the attribute values of "parent" object to version object any time xcp object is modified (as well as version the version object).0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management