不允许的自定义
* 
避免使用不属于 Java SE 库或与 Windchill+ 指导原则冲突的 API。
有关允许在自定义中使用的元素的信息,请参阅允许的自定义
下表列出不允许在自定义中使用的元素及其相应的错误代码。该表还指出元素用法是当前不允许,或是计划在将来的某个日期被禁止,还是处于警告状态。
* 
这些错误代码显示在 Windchill Performance Advisor (WPA) 中的 Customization Analysis 仪表板所提供的合并报告中,或在 CloudWave 的执行期间生成。有关详情,请参阅 WPA 帮助中心的 Consolidated Report
元素
详情
错误代码
不允许的状况
内部 API
避免使用 Javadoc 中未标记为受支持的 API。
Use of internal classes and methods
警告
为确保符合 Windchill+ 指导原则,请将所有未标记为受支持的 API 替换为已标记为受支持的 API。
弃用的 API
避免使用 Javadoc 中标记为已弃用的 API。
将任何已弃用 API 中的代码转变为标记为受支持的适用替代 API。
有关弃用的 API 的列表,请参阅弃用的 API
Use of deprecated API
警告
为确保符合 Windchill+ 指导原则,请将已弃用的 API 替换为其所支持的替代 API。
JSP 标记
请不要使用 Windchill 标记库“Windchill 客户端体系结构组件库”(components.tld, uri=http://www.ptc.com/windchill/taglib/components) 中定义的以下 JSP 标记子集:
describeTable
describeColumn
setComponentProperty
getModel
describeTableTree
setTablePlugin
addServiceArgument
describeStatusGlyph
describeInfoPage
addPropertyPanelDescriptor
renderAccessibilityLink
excludeColumn
describePropertyPanel
enableCorePlatform
Use of unauthorized JSP tags or AngularJS
警告有效期至 2026 年 10 月
在此日期之后,如果 CCD 包所含的 JSP 页面使用了上述任何 JSP 标记,包部署将被阻止。
未来发行版将弃用这些 JSP 标记。建议将旧版 Windchill JCA 标记实现替换为新式 Windchill GUI 组件,这些组件是使用 Java 构建器代码开发的,该代码支持 MVC (模型-视图-控制器) 体系结构标准。有关详情,请参阅 MVC 组件
内嵌 Java 代码的工作流模板
不允许创建内嵌 Java 代码的工作流模板。必须通过外部化工作流表达式来创建此类模板。
有关详情,请参阅外部化工作流模板的表达式
The workflow “<workflow name>” in the container “<container>” is not externalized.
Refer to the WorkflowsReport.txt file for a list of workflow templates that are not externalized.
警告有效期至 2026 年 10 月
在此日期之后,将阻止部署其中包含工作流模板 (具有嵌入式 Java 代码) 的 CCD 包。
预设 (OOTB) 文件
不允许对预设文件 (允许的自定义中列出的文件除外) 进行修改。
Modification to OOTB file or package
不允许
Windchill 类
不允许实现和扩展以下类:
wt.templateutil.processor.DefaultTemplateProcessor
wt.enterprise.BasicTemplateProcessor
wt.enterprise.TemplateProcessor
com.ptc.cat.gxt.client.AbstractEntryPoint
wt.services.ServiceEventListenerAdapter
com.infoengine.object.factory.AdapterWebject
com.infoengine.SAK.ObjectWebject
com.infoengine.SAK.ActionWebject
Use of unauthorized windchill class implementation
不允许
Java 包
java.lang.reflect
java.lang.invoke
java.rmi
java.nio.channels
java.nio.file.attribute
java.nio.file.spi
Use of unauthorized Java packages
不允许
Java 网络调用
TrustManager
TrustManagerFactory
X509TrustManager
CertPathTrustManagerParameters
HandshakeCompletedEvent
HandshakeCompletedListener
Use of unauthorized Java packages
不允许
数据库自定义
自定义模型化对象
表格、存储的过程、触发器等数据库扩展
Unauthorized hard modelling
不允许
自定义 UI 或自定义预设 UI
使用以下内容进行构建的 UI:
预设 JavaServer 页面 (.jsp)
AngularJS
GWT
模板处理器
使用 MVC 构建器来构建 UI。
Use of unauthorized JSP tags or AngularJS
不允许
覆盖预设 UI、操作和服务
使用操作和操作模型来创建自定义 UI。有关详情,请参阅 Windchill 操作框架
Modification to OOTB file or package
不允许
第三方库
自定义期间不允许使用第三方库,比如预设的第三方库。不过,也有一些例外。有关允许的第三方库的信息,请参阅允许的自定义
Use of unauthorized third-party libraries
不允许
访问服务器命令行
不允许进行需要访问服务器命令行的自定义。
Use of main method
不允许
远程文件服务器自定义
示例:自定义内容病毒扫描程序
不允许
JDBC 对 Windchill 数据库的访问
仅使用 Windchill 支持的 API 连接到 Windchill 数据库并进行查询。
Use of unauthorized Java packages
不允许
到 LDAP 用户存储的 JNDI 连接
不支持 LDAP。
The External System Integration category in Windchill Performance Advisor displays Adapter Integration.
不允许
Info*Engine
自定义 Info*Engine 任务或 webject
自定义 Info*Engine Web 服务
自定义 Info*Engine 适配器
使用 Windchill REST Services 获取 Windchill 数据以生成报告和其他需求。
Unauthorized hard modelling
Use of unauthorized windchill class implementation
不允许
JNI 自定义
不允许调用原生 API。
Use of unsecure code
不允许
注释
com.ptc.windchill.annotations.metadata.GenAsBinaryLink
com.ptc.windchill.annotations.metadata.GenAsDatastoreArray
com.ptc.windchill.annotations.metadata.GenAsDatastoreSequence
com.ptc.windchill.annotations.metadata.GenAsDatastoreStruct
com.ptc.windchill.annotations.metadata.GenAsObjectMappable
com.ptc.windchill.annotations.metadata.GenAsPersistable
com.ptc.windchill.annotations.metadata.GenAsPrimitiveType
com.ptc.windchill.annotations.metadata.GenAsUnPersistable
com.infoengine.object.factory.WebjectDef
Unauthorized hard modelling
不允许
这对您有帮助吗?