public class CommentDef
extends java.lang.Object
The CommentDef
defines a work item comment. Comment can be defined declaratively in a connector model meta data file, which can be used in the connector code for create, update, or remove comments from the work item at runtime.
Following code shows how to access CommentDef
in the code.
CommentDef commentDef = widef.getCommentDef();
Constructor and Description |
---|
CommentDef()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCriteriaRef()
Retrieves the query criteria definition.
|
java.lang.String |
getDataSource()
Retrieves the data source name where the comments are maintained.
|
java.lang.String |
getDefaultNewComments() |
java.lang.String |
getLinkKeyWords() |
java.lang.String |
getSourceAttrDef()
Retrieves the field name that the work item comment is based on.
|
void |
setCriteriaRef(java.lang.String criteriaRef)
Sets the query criteria for the comment.
|
void |
setDataSource(java.lang.String dataSource)
Sets the data source where the comments are maintained.
|
void |
setDefaultNewComments(java.lang.String newComments) |
void |
setLinkKeyWords(java.lang.String linkKeyWords) |
void |
setSourceAttrDef(java.lang.String srcAttr)
Sets the field name to get the comment from.
|
public CommentDef()
public void setDataSource(java.lang.String dataSource)
Sets the data source where the comments are maintained.
dataSource
- name of the data sourcepublic java.lang.String getDataSource()
Retrieves the data source name where the comments are maintained.
public void setSourceAttrDef(java.lang.String srcAttr)
Sets the field name to get the comment from.
srcAttr
- the source field name for the commentpublic java.lang.String getSourceAttrDef()
Retrieves the field name that the work item comment is based on.
public void setCriteriaRef(java.lang.String criteriaRef)
Sets the query criteria for the comment.
criteriaRef
- the criteria applied on the datasource when getting data for the commentpublic java.lang.String getCriteriaRef()
Retrieves the query criteria definition.
public java.lang.String getDefaultNewComments()
public void setDefaultNewComments(java.lang.String newComments)
public void setLinkKeyWords(java.lang.String linkKeyWords)
public java.lang.String getLinkKeyWords()