public class CommentModel extends AbstractCommentModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
ASSIGNEDTO
Generated constant - Attribute key of
Comment.assignedTo attribute defined at extension comments. |
static java.lang.String |
CODE
Generated constant - Attribute key of
Comment.code attribute defined at extension comments. |
static java.lang.String |
COMMENTTYPE
Generated constant - Attribute key of
Comment.commentType attribute defined at extension comments. |
static java.lang.String |
COMPONENT
Generated constant - Attribute key of
Comment.component attribute defined at extension comments. |
static java.lang.String |
PRIORITY
Generated constant - Attribute key of
Comment.priority attribute defined at extension comments. |
static java.lang.String |
RELATEDITEMS
Generated constant - Attribute key of
Comment.relatedItems attribute defined at extension comments. |
static java.lang.String |
REPLIES
Generated constant - Attribute key of
Comment.replies attribute defined at extension comments. |
static java.lang.String |
WATCHERS
Generated constant - Attribute key of
Comment.watchers attribute defined at extension comments. |
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION, ATTACHMENTS, AUTHOR, COMMENTUSERSETTINGS, SUBJECT, TEXT_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED| Constructor and Description |
|---|
CommentModel()
Generated constructor - Default constructor for generic creation.
|
CommentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
CommentModel(UserModel _author,
CommentTypeModel _commentType,
ComponentModel _component,
ItemModel _owner,
java.lang.String _text)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
CommentModel(UserModel _author,
CommentTypeModel _commentType,
ComponentModel _component,
java.lang.String _text)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<UserModel> |
getAssignedTo()
Generated method - Getter of the
Comment.assignedTo attribute defined at extension comments. |
java.lang.String |
getCode()
Generated method - Getter of the
Comment.code attribute defined at extension comments. |
CommentTypeModel |
getCommentType()
Generated method - Getter of the
Comment.commentType attribute defined at extension comments. |
ComponentModel |
getComponent()
Generated method - Getter of the
Comment.component attribute defined at extension comments. |
java.lang.Integer |
getPriority()
Generated method - Getter of the
Comment.priority attribute defined at extension comments. |
java.util.Collection<ItemModel> |
getRelatedItems()
Deprecated.
since ages
|
java.util.List<ReplyModel> |
getReplies()
Generated method - Getter of the
Comment.replies attribute defined at extension comments. |
java.util.Collection<PrincipalModel> |
getWatchers()
Generated method - Getter of the
Comment.watchers attribute defined at extension comments. |
void |
setAssignedTo(java.util.Collection<UserModel> value)
Generated method - Setter of
Comment.assignedTo attribute defined at extension comments. |
void |
setCode(java.lang.String value)
Generated method - Setter of
Comment.code attribute defined at extension comments. |
void |
setCommentType(CommentTypeModel value)
Generated method - Initial setter of
Comment.commentType attribute defined at extension comments. |
void |
setComponent(ComponentModel value)
Generated method - Initial setter of
Comment.component attribute defined at extension comments. |
void |
setPriority(java.lang.Integer value)
Generated method - Setter of
Comment.priority attribute defined at extension comments. |
void |
setRelatedItems(java.util.Collection<ItemModel> value)
Deprecated.
since ages
|
void |
setReplies(java.util.List<ReplyModel> value)
Generated method - Setter of
Comment.replies attribute defined at extension comments. |
void |
setWatchers(java.util.Collection<PrincipalModel> value)
Generated method - Setter of
Comment.watchers attribute defined at extension comments. |
getAttachments, getAuthor, getSubject, getText, setAttachments, setAuthor, setSubject, setTextgetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerpublic static final java.lang.String _TYPECODE
public static final java.lang.String CODE
Comment.code attribute defined at extension comments.public static final java.lang.String PRIORITY
Comment.priority attribute defined at extension comments.public static final java.lang.String RELATEDITEMS
Comment.relatedItems attribute defined at extension comments.public static final java.lang.String REPLIES
Comment.replies attribute defined at extension comments.public static final java.lang.String ASSIGNEDTO
Comment.assignedTo attribute defined at extension comments.public static final java.lang.String WATCHERS
Comment.watchers attribute defined at extension comments.public static final java.lang.String COMPONENT
Comment.component attribute defined at extension comments.public static final java.lang.String COMMENTTYPE
Comment.commentType attribute defined at extension comments.public CommentModel()
public CommentModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, java.lang.String _text)
_author - initial attribute declared by type AbstractComment at extension comments_commentType - initial attribute declared by type Comment at extension comments_component - initial attribute declared by type Comment at extension comments_text - initial attribute declared by type AbstractComment at extension comments@Deprecated public CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, ItemModel _owner, java.lang.String _text)
_author - initial attribute declared by type AbstractComment at extension comments_commentType - initial attribute declared by type Comment at extension comments_component - initial attribute declared by type Comment at extension comments_owner - initial attribute declared by type Item at extension core_text - initial attribute declared by type AbstractComment at extension commentspublic java.util.Collection<UserModel> getAssignedTo()
Comment.assignedTo attribute defined at extension comments.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.public java.lang.String getCode()
Comment.code attribute defined at extension comments.public CommentTypeModel getCommentType()
Comment.commentType attribute defined at extension comments.public ComponentModel getComponent()
Comment.component attribute defined at extension comments.public java.lang.Integer getPriority()
Comment.priority attribute defined at extension comments.@Deprecated public java.util.Collection<ItemModel> getRelatedItems()
Comment.relatedItems attribute defined at extension comments.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.public java.util.List<ReplyModel> getReplies()
Comment.replies attribute defined at extension comments.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.public java.util.Collection<PrincipalModel> getWatchers()
Comment.watchers attribute defined at extension comments.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.public void setAssignedTo(java.util.Collection<UserModel> value)
Comment.assignedTo attribute defined at extension comments.value - the assignedTopublic void setCode(java.lang.String value)
Comment.code attribute defined at extension comments.value - the code - unique identifier of the comment; will be generated if not setpublic void setCommentType(CommentTypeModel value)
Comment.commentType attribute defined at extension comments. Can only be used at creation of model - before first save.value - the commentTypepublic void setComponent(ComponentModel value)
Comment.component attribute defined at extension comments. Can only be used at creation of model - before first save.value - the componentpublic void setPriority(java.lang.Integer value)
Comment.priority attribute defined at extension comments.value - the priority - Priority of a comment@Deprecated public void setRelatedItems(java.util.Collection<ItemModel> value)
Comment.relatedItems attribute defined at extension comments.value - the relatedItems - Related items of this commentpublic void setReplies(java.util.List<ReplyModel> value)
Comment.replies attribute defined at extension comments.value - the repliespublic void setWatchers(java.util.Collection<PrincipalModel> value)
Comment.watchers attribute defined at extension comments.value - the watchersCopyright © 2018 SAP SE. All Rights Reserved.