Hello community,
in D5 it was possible to extend WcmContent to append functionality for example after checkin. I extend WcmContent and overwrite
public void performPostCheckin() throws DfException
than in dbor.properties I changed the entry for WcmContent. I try to implement this in D6.5 but I had no success yet.
My way was to extend WcmContent in the TBO:
public interface EBaseDocumentTboIfc extends IWcmContent,IDfBusinessObject {}
public class EBaseDocumentTbo extends WcmContent implements
EBaseDocumentTboIfc, IDfDynamicInheritance {
public void performPostCheckin() throws DfException {
super.performPostCheckin();
[...]
}
}
But I got exceptions like:
java.lang.AbstractMethodError: de.dlh.lsyi.dctm.eb3.tbo.impl.EBaseDocumentTbo.removeAllMyTemplateFolderRelations()V
at de.dlh.lsyi.dctm.eb3.tbo.impl.EBaseDocumentTbo___PROXY.removeAllMyTemplateFolderRelations(EBaseDocumentTbo___PROXY.java)
at com.documentum.wcm.type.WcmContentTemplate.__copyAsContent(WcmContentTemplate.java:1430)
After looking in the WebPublisher reference project I found that WcmContent is defined as an Aspect. The documentation and web tells me what a dctm aspect is and how to implement a new. But how extend the WcmContent aspect or some other already defined aspect is not described and I have no idea how to do it?
So the question is how to extend performPostCheckin and other Wcm functionality?
Some ideas?
Thanks a lot,
Mike