新功能 > 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 系統︰
Default
false
概要
啟用或停用非 PTC FlexPLM 系統中「討論區」表格的「回覆意見」動作。
描述
此屬性出現在 wt.properties 中,用來控制非 PTC FlexPLM 系統中的「回覆意見」動作。
如果設定為 true,使用者可以回覆張貼的意見。
屬性︰wt.workflow.forum.TreeViewAndReplyPosting.enabled
這是現有的屬性;但是,從 Windchill 11.0 F000 開始,此屬性僅適用於 PTC FlexPLM 系統︰
Default
true
概要
啟用或停用 PTC FlexPLM 系統中「討論區」表格的「樹狀檢視」「回覆意見」動作。
描述
此屬性出現在 wt.properties 中,僅適用於 PTC FlexPLM 解決方案。
此屬性可用來控制「討論區」表格的「樹狀檢視」「回覆意見」動作是否可用。
如果設定為 true,使用者可以回覆張貼的意見,並使用「樹狀檢視」顯示討論區。
屬性︰wt.workflow.forum.CreateDefaultTopics.enabled
這是現有的屬性。不過,從 Windchill 11.0 F000 開始,預設值為 false;在過去,預設值為 true
Default
false
概要
啟用或停用在「討論區」表格中建立預設主題與意見。
描述
此屬性出現在 wt.properties 中,可用來控制建立預設主題與意見。此屬性預設設定為 false,表示不會建立預設主題與意見。如果設定為 true,則在檢視「討論區」表格時將建立預設主題與意見。
這些預設主題和意見是在 DiscussionForumTemplate 中定義的。