Package com.polarion.alm.tracker.model
Interface ICommentBase<T extends ICommentBase<T>>
- Type Parameters:
T- particular comment type
- All Superinterfaces:
IAdaptable,IChangeListener,IHasCustomValues,IHasValues,IPObject,IUniqueObject
- All Known Subinterfaces:
IComment,IModuleComment,IRichPageComment,ITestRunComment
- Since:
- 3.5.0
- Author:
- Stepan Roh
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface com.polarion.alm.projects.model.IUniqueObject
KEY_ID, KEY_PROJECT -
Method Summary
Modifier and TypeMethodDescriptioncom.polarion.platform.persistence.internal.ICommentPermissionscan()Returns the permissions for this objectcreateChildComment(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.Signature related data.getTags()getText()booleanChecks if this comment is in a resolved comments thread.voidsetResolvedComment(boolean resolved) Sets the resolved state of this comment.setSignatureData(IWorkflowSignature workflowSignature, String workflowActionId) Sets signature data.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adaptMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomFieldMethods 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, updateMethods inherited from interface com.polarion.alm.projects.model.IUniqueObject
getId, getProject, getProjectId
-
Field Details
-
PROTO
- See Also:
-
KEY_AUTHOR
- See Also:
-
KEY_CREATED
- See Also:
-
KEY_TEXT
- See Also:
-
KEY_PARENT_COMMENT
- Since:
- 3.1.1
- See Also:
-
KEY_CHILD_COMMENTS
- Since:
- 3.1.1
- See Also:
-
KEY_TAGS
- Since:
- 3.7.1
- See Also:
-
KEY_RESOLVED
- Since:
- 3.7.1
- See Also:
-
KEY_SIGNATURE_DATA
- Since:
- 3.9.0
- See Also:
-
-
Method Details
-
getAuthor
IUser getAuthor() -
getCreated
Date getCreated() -
getText
-
getChildComments
- Since:
- 3.1.1
-
getRootComment
- Since:
- 3.1.1
-
getParentComment
- Since:
- 3.1.1
-
createChildComment
Shortcut forcreateChildComment(text, true).- Since:
- 3.1.1
- See Also:
-
createChildComment
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.- Since:
- 3.7.1
-
getTags
IEnumSet<ICommentTagOpt> getTags()- Since:
- 3.7.1
-
setResolvedComment
void setResolvedComment(boolean resolved) Sets the resolved state of this comment. Can be used only for the root comments.- Since:
- 3.7.1
-
isResolvedComment
boolean isResolvedComment()Checks if this comment is in a resolved comments thread.- Since:
- 3.7.1
-
getSignatureData
Signature related data.- Since:
- 3.9.0
- See Also:
-
setSignatureData
@NotNull ISignatureData setSignatureData(@NotNull IWorkflowSignature workflowSignature, @Nullable String workflowActionId) Sets signature data. Adds the tagICommentTagOpt.OPT_SIGNATURESif it is missing.- Returns:
- the created signature data
- Since:
- 3.9.0
-
can
@NotNull com.polarion.platform.persistence.internal.ICommentPermissions can()Returns the permissions for this object -
getTrackerService
- Since:
- 3.10.0
-