gpt4 book ai didi

java - 防止在 Documentum 中创建特定的标准 DocType

转载 作者:行者123 更新时间:2023-11-30 11:21:36 26 4
gpt4 key购买 nike

我正在使用 My Documentum for Desktop,并且我必须扩展我的 DocBase 的行为——创建新的 DocType 和相关的 TBO。准确地说,我创建了一个新的 DocType,叫做 emdd_document;这继承自标准类型 dm_document。一切正常,emdd_document 及其 TBO 有自己的逻辑,源自 dm_document 的逻辑。

但是,我想阻止用户使用标准的 dm_document,只允许他们使用派生的文件 (emdd_document),但是我不知道这样做的方法。如果 dm_document 是派生的 DocType,我可以在其 TBO 中创建一个空的 doSave() 函数,阻止对象的保存操作。像这样:

@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
}

但是,作为一种标准类型,我不能遵循这种方法。

所以,我想问:有没有办法阻止标准类型的 doSave() 执行?或者,严格来说,对于 My Documentum for Desktop,是否有一些配置阻止用户在文档创建期间选择该 DocType(如下图所示)?

As I try to explain in the image, I wish dm_document to be not selectable, during a saving action.

最佳答案

防止用户在 Documentum 中使用某些类型(包括内置类型)的正确方法通常是配置客户端。对于大多数客户端,这是通过 DD(数据字典)机制使用显示配置完成的。

但是,对于 My Documentum Desktop,这似乎有些不同。我自己没有使用过它,但请看一下 My Documentum Desktop 安装和配置指南 6.7.2,第 25 页 -- 对象类型过滤器首选项集:

This sets the root object type that generates the list of object types from which users can select in the ingest dialog box. This also hides specific object types from display in MDD.

在第 56 页 -- 定义对象类型的设置 (Windows):

Default_Document_Object_Type=dm_document

我想前者的配置设置将帮助您隐藏 dm_document,而后者可以帮助您为客户端选择默认类型。

关于java - 防止在 Documentum 中创建特定的标准 DocType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22151132/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com