I am using My Documentum for Desktop, and I had to extend the behaviour of my DocBase - as creating new DocTypes and the related TBOs -. To be precise, I have created a new DocType, called emdd_document
; this inherits from the standard type dm_document
. Everything works fine and emdd_document
, with its TBO, has its own logic, derived from dm_document
's one.
However, I want to prevent users from using the standard dm_document
, allowing them to use only the derived one (emdd_document
), but I have no ideas about the way of doing this. If dm_document
was a derived DocType, I could create an empty doSave()
function in its TBO, blocking the object's saving action. Something like this:
@Override
protected synchronized void doSave(boolean saveLock, String versionLabel, Object[] extendedArgs) throws DfException {
DfLogger.debug(this, "This document type cannot be created!", null, null);
//super.doSave() is not called
}
But, being that a standard type, I cannot follow this approach.
So, I am asking: Is there a way to prevent the doSave() excecution for a standard type? Or, strictly speaking about My Documentum for Desktop, is there some configuration that prevent users to choose that DocType, during a document's creation (as explained in the picture below)?