Package com.polarion.alm.tracker.model
Interface IModuleComment
- All Superinterfaces:
IAdaptable
,IChangeListener
,ICommentBase<IModuleComment>
,IHasCustomValues
,IHasValues
,IPObject
,IUniqueObject
- Author:
- Stepan Roh
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.polarion.alm.tracker.model.ICommentBase
ICommentBase.SortBy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
Specifies to which work item this comment refers.static final String
Fields inherited from interface com.polarion.alm.tracker.model.ICommentBase
KEY_AUTHOR, KEY_CHILD_COMMENTS, KEY_CREATED, KEY_PARENT_COMMENT, KEY_RESOLVED, KEY_SIGNATURE_DATA, KEY_TAGS, KEY_TEXT
Fields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT
-
Method Summary
Modifier and TypeMethodDescriptioncreateChildComment
(Text text) Shortcut forcreateChildComment(text, true)
.createChildComment
(Text text, boolean reopen) Creates a child comment and optionally reopens the comment thread, if it is resolved.createImportedComment
(String author, String initials, Date created) seeKEY_REFERRED_WORK_ITEM
, can return nullvoid
setReferredWorkItem
(IWorkItem value) seeKEY_REFERRED_WORK_ITEM
, can be called only on root commentMethods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.alm.tracker.model.ICommentBase
can, getAuthor, getChildComments, getCreated, getSignatureData, getTags, getText, getTrackerService, isResolvedComment, setResolvedComment, setSignatureData
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.platform.persistence.model.IPObject
copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
Methods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProject, getProjectId
-
Field Details
-
PROTO
- See Also:
-
KEY_MODULE
- See Also:
-
KEY_IMPORTED_COMMENT
- See Also:
-
KEY_REFERRED_WORK_ITEM
Specifies to which work item this comment refers. Now it is used for external work items, but in future it can be also used for headings.- Since:
- 3.6.0
- See Also:
-
-
Method Details
-
getModule
IModule getModule() -
getRootComment
- Specified by:
getRootComment
in interfaceICommentBase<IModuleComment>
-
getParentComment
- Specified by:
getParentComment
in interfaceICommentBase<IModuleComment>
-
createChildComment
Description copied from interface:ICommentBase
Shortcut forcreateChildComment(text, true)
.- Specified by:
createChildComment
in interfaceICommentBase<IModuleComment>
- See Also:
-
createChildComment
Description copied from interface:ICommentBase
Creates a child comment and optionally reopens the comment thread, if it is resolved. If the thread is reopened,IPObject.save()
is called on the root comment.- Specified by:
createChildComment
in interfaceICommentBase<IModuleComment>
- Since:
- 3.7.1
-
getImportedComment
IModuleComment.IImportedCommentStruct getImportedComment() -
createImportedComment
IModuleComment.IImportedCommentStruct createImportedComment(String author, String initials, Date created) -
getReferredWorkItem
IWorkItem getReferredWorkItem()seeKEY_REFERRED_WORK_ITEM
, can return null- Since:
- 3.6.0
-
setReferredWorkItem
seeKEY_REFERRED_WORK_ITEM
, can be called only on root comment- Throws:
IllegalStateException
- if called for comment which is not root, exactly:if (getParentComment() != null)
- Since:
- 3.6.0
-