What’s New > Windchill > 11.0 F000 > Deployment and Configuration > Discussions: API and Property Changes
  
Discussions: API and Property Changes
Product: Windchill ProjectLink, PTC FlexPLM
Release: 11.0 F000
Benefit
As part of discussion enhancement work, several changes are being implemented that impact wt.workflow.forum APIs and properties.
Additional Details
The following changes have been made to wt.workflow.forum.ForumUtil methods:
API: countPostingsForTopicSinceLastVisit
A new API retrieves the number of new posts since a particular user’s last visit.
If there are no new posts since the last visit (a count of 0), the API does not return any data.

/*
* @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
With the implementation of countPostingsForTopicSinceLastVisit, the following APIs are deprecated:
@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
The following API is deprecated:
@Deprecated
public static TopicVisitData getTopicVisitDataByUserAndTopic
(WTPrincipal userPrincipal,DiscussionTopic topic)
Instead, you can use the existing getVisitDataOfUserForTopics method to retrieve topic visit data when given a user and a list of topics:

/*
* @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
The following changes have been made to properties set in wt.properties:
Property: wt.workflow.forum.ReplyToComment.enabled
This is a new property in Windchill 11.0 F000. This property applies only to non-PTC FlexPLM systems:
Default
false
Synopsis
Enable or disable the Reply to Comment action for the Discussions table in a non-PTC FlexPLM system.
Description
This property is available in wt.properties and is used to control the Reply to Comment action in a non-PTC FlexPLM system.
If set to true, users can reply to posted comments.
Property: wt.workflow.forum.TreeViewAndReplyPosting.enabled
This is an existing property; however, starting in Windchill 11.0 F000, this property applies only to PTC FlexPLM systems:
Default
true
Synopsis
Enable or disable the Tree View and the Reply to Comment action for the Discussions table in a PTC FlexPLM system.
Description
This property is available in wt.properties and only applies to PTC FlexPLM solutions.
Use this property to control the availability of the Tree View and the Reply to Comment action for the Discussions table.
If set to true, users can reply to posted comments and display the discussion using the Tree View.
Property: wt.workflow.forum.CreateDefaultTopics.enabled
This is an existing property. Starting in Windchill 11.0 F000, however, the default value is false; previously, the default value was true.
Default
false
Synopsis
Enable or disable the creation of default topics and comments in the Discussions table.
Description
This property is available in wt.properties and is used to control the creation of default topics and comments. By default this property is set to false, meaning that default topics and comments are not created. When set to true, default topics and comments are created when the Discussions table is viewed.
These default topics and comments are defined in DiscussionForumTemplate.