新增功能 > Windchill > 11.0 F000 > 部署和配置 > 讨论:API 和特性更改
  
讨论:API 和特性更改
产品:Windchill ProjectLinkPTC FlexPLM
版本:11.0 F000
优点
在讨论改进工作中,实施多项更改会影响 wt.workflow.forum API 和特性。
其他详细信息
已对 wt.workflow.forum.ForumUtil 方法进行以下更改:
API:countPostingsForTopicSinceLastVisit
新的 API 可检索自特定用户上次访问以来新发布的数目。
如果自上次访问以来没有新发布 (计数为 0),则 API 不会返回任何数据。

/*
* @param objects : List of discussion topic objects
* @param userPrincipal : The user to check unread
posts against

* @return List of HashMap : The HashMap key set
is: (LAST_POST_DATE, UNREAD_POST_COUNT, DISCUSSION_TOPIC)

* @throws WTException
*/
public static List <HashMap<String, Object>
> countPostingsForTopicSinceLastVisit(List objects,
WTPrincipal userPrincipal)
throws WTException
实施 countPostingsForTopicSinceLastVisit 后,将避免使用以下 API:
@Deprecated
public static HashMap<String,Object> getUnreadPostDetails
(WTPrincipal userPrincipal,DiscussionTopic topic)
@Deprecated
public static HashMap<String,Object> getUnreadPostDetailsForTopic
(WTPrincipal userPrincipal,DiscussionTopic topic, TopicVisitData topicVisitData)
@Deprecated
public static HashMap<String,Object> countPostingsForTopicSinceLastVisit
(DiscussionTopic topicObject,Timestamp lastVisitedTime)
API:getVisitDataOfUserForTopics
避免使用以下 API:
@Deprecated
public static TopicVisitData getTopicVisitDataByUserAndTopic
(WTPrincipal userPrincipal,DiscussionTopic topic)
如果用户和主题列表出现下列情况时,您可以改用现有的 getVisitDataOfUserForTopics 方法来检索主题访问数据:

/*
* @param userPrincipal : The user for which to retrieve
visit data

* @param topicList : List of discussion topic objects
* @return HashMap : Key = DiscussionTopic, Value =
TopicVisitData

* @throws WTException
*/
public static HashMap getVisitDataOfUserForTopics
(List objects, WTPrincipal userPrincipal)
throws WTException
已对 wt.properties 中设置的特性进行以下更改:
特性:wt.workflow.forum.ReplyToComment.enabled
这是 Windchill 11.0 F000 中的新特性。此特性仅适用于非 PTC FlexPLM 系统:
默认
false
简介
启用或禁用非 PTC FlexPLM 系统中“讨论”表格的“回复评论”操作。
说明
此特性位于 wt.properties 中,用于控制非 PTC FlexPLM 系统中的“回复评论”操作。
如果设置为 true,用户可以回复已发布的评论。
特性:wt.workflow.forum.TreeViewAndReplyPosting.enabled
这是一个现有特性;但是,从 Windchill 11.0 F000 开始,此特性仅适用于 PTC FlexPLM 系统:
默认
true
简介
启用或禁用 PTC FlexPLM 系统中“讨论”表格的“树状视图”“回复评论”操作。
说明
此特性位于 wt.properties 中,仅适用于 PTC FlexPLM 解决方案。
此特性可用于控制“讨论”表格的“树状视图”“回复评论”操作是否可用。
如果设置为 true,用户可以回复已发布的评论,并使用“树状视图”显示讨论。
特性:wt.workflow.forum.CreateDefaultTopics.enabled
这是一个现有特性。但是,从 Windchill 11.0 F000 开始,默认值为 false;之前,默认值为 true
默认
false
简介
启用或禁用在“讨论”表格中创建默认主题和评论。
说明
此特性位于 wt.properties 中,可用于控制默认主题和评论的创建。默认情况下,此特性设置为 false,这意味着不会创建默认主题和评论。如果设置为 true,则会在查看“讨论”表格时创建默认主题和评论。
这些默认主题和评论是在 DiscussionForumTemplate 中定义的。