Class CommentModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.comments.model.AbstractCommentModel
-
- de.hybris.platform.comments.model.CommentModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CMSWorkflowCommentModel
,CsTicketEventModel
public class CommentModel extends AbstractCommentModel
Generated model class for type Comment first defined at extension comments.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ASSIGNEDTO
Generated constant - Attribute key ofComment.assignedTo
attribute defined at extensioncomments
.static java.lang.String
CODE
Generated constant - Attribute key ofComment.code
attribute defined at extensioncomments
.static java.lang.String
COMMENTAUTHOREMAIL
Generated constant - Attribute key ofComment.commentAuthorEmail
attribute defined at extensionsapquoteintegration
.static java.lang.String
COMMENTMETADATA
Generated constant - Attribute key ofComment.commentMetadata
attribute defined at extensioncockpit
.static java.lang.String
COMMENTTYPE
Generated constant - Attribute key ofComment.commentType
attribute defined at extensioncomments
.static java.lang.String
COMPONENT
Generated constant - Attribute key ofComment.component
attribute defined at extensioncomments
.static java.lang.String
PRIORITY
Generated constant - Attribute key ofComment.priority
attribute defined at extensioncomments
.static java.lang.String
RELATEDITEMS
Generated constant - Attribute key ofComment.relatedItems
attribute defined at extensioncomments
.static java.lang.String
REPLIES
Generated constant - Attribute key ofComment.replies
attribute defined at extensioncomments
.static java.lang.String
WATCHERS
Generated constant - Attribute key ofComment.watchers
attribute defined at extensioncomments
.-
Fields inherited from class de.hybris.platform.comments.model.AbstractCommentModel
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION, ATTACHMENTS, AUTHOR, COMMENTUSERSETTINGS, SUBJECT, TEXT
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description CommentModel()
Generated constructor - Default constructor for generic creation.CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, ItemModel _owner, java.lang.String _text)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, java.lang.String _text)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCommentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<UserModel>
getAssignedTo()
Generated method - Getter of theComment.assignedTo
attribute defined at extensioncomments
.java.lang.String
getCode()
Generated method - Getter of theComment.code
attribute defined at extensioncomments
.java.lang.String
getCommentAuthorEmail()
Generated method - Getter of theComment.commentAuthorEmail
attribute defined at extensionsapquoteintegration
.java.util.Collection<CommentMetadataModel>
getCommentMetadata()
Generated method - Getter of theComment.commentMetadata
attribute defined at extensioncockpit
.CommentTypeModel
getCommentType()
Generated method - Getter of theComment.commentType
attribute defined at extensioncomments
.ComponentModel
getComponent()
Generated method - Getter of theComment.component
attribute defined at extensioncomments
.java.lang.Integer
getPriority()
Generated method - Getter of theComment.priority
attribute defined at extensioncomments
.java.util.Collection<ItemModel>
getRelatedItems()
Deprecated, for removal: This API element is subject to removal in a future version.since agesjava.util.List<ReplyModel>
getReplies()
Generated method - Getter of theComment.replies
attribute defined at extensioncomments
.java.util.Collection<PrincipalModel>
getWatchers()
Generated method - Getter of theComment.watchers
attribute defined at extensioncomments
.void
setAssignedTo(java.util.Collection<UserModel> value)
Generated method - Setter ofComment.assignedTo
attribute defined at extensioncomments
.void
setCode(java.lang.String value)
Generated method - Setter ofComment.code
attribute defined at extensioncomments
.void
setCommentAuthorEmail(java.lang.String value)
Generated method - Setter ofComment.commentAuthorEmail
attribute defined at extensionsapquoteintegration
.void
setCommentMetadata(java.util.Collection<CommentMetadataModel> value)
Generated method - Setter ofComment.commentMetadata
attribute defined at extensioncockpit
.void
setCommentType(CommentTypeModel value)
Generated method - Initial setter ofComment.commentType
attribute defined at extensioncomments
.void
setComponent(ComponentModel value)
Generated method - Initial setter ofComment.component
attribute defined at extensioncomments
.void
setPriority(java.lang.Integer value)
Generated method - Setter ofComment.priority
attribute defined at extensioncomments
.void
setRelatedItems(java.util.Collection<ItemModel> value)
Deprecated, for removal: This API element is subject to removal in a future version.since agesvoid
setReplies(java.util.List<ReplyModel> value)
Generated method - Setter ofComment.replies
attribute defined at extensioncomments
.void
setWatchers(java.util.Collection<PrincipalModel> value)
Generated method - Setter ofComment.watchers
attribute defined at extensioncomments
.-
Methods inherited from class de.hybris.platform.comments.model.AbstractCommentModel
getAttachments, getAuthor, getSubject, getText, setAttachments, setAuthor, setSubject, setText
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofComment.code
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
PRIORITY
public static final java.lang.String PRIORITY
Generated constant - Attribute key ofComment.priority
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
RELATEDITEMS
public static final java.lang.String RELATEDITEMS
Generated constant - Attribute key ofComment.relatedItems
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
REPLIES
public static final java.lang.String REPLIES
Generated constant - Attribute key ofComment.replies
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
ASSIGNEDTO
public static final java.lang.String ASSIGNEDTO
Generated constant - Attribute key ofComment.assignedTo
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
WATCHERS
public static final java.lang.String WATCHERS
Generated constant - Attribute key ofComment.watchers
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
COMPONENT
public static final java.lang.String COMPONENT
Generated constant - Attribute key ofComment.component
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
COMMENTTYPE
public static final java.lang.String COMMENTTYPE
Generated constant - Attribute key ofComment.commentType
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
COMMENTMETADATA
public static final java.lang.String COMMENTMETADATA
Generated constant - Attribute key ofComment.commentMetadata
attribute defined at extensioncockpit
.- See Also:
- Constant Field Values
-
COMMENTAUTHOREMAIL
public static final java.lang.String COMMENTAUTHOREMAIL
Generated constant - Attribute key ofComment.commentAuthorEmail
attribute defined at extensionsapquoteintegration
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentModel
public CommentModel()
Generated constructor - Default constructor for generic creation.
-
CommentModel
public CommentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
CommentModel
@Deprecated(since="4.1.1", forRemoval=true) public CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, java.lang.String _text)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_author
- initial attribute declared by typeAbstractComment
at extensioncomments
_commentType
- initial attribute declared by typeComment
at extensioncomments
_component
- initial attribute declared by typeComment
at extensioncomments
_text
- initial attribute declared by typeAbstractComment
at extensioncomments
-
CommentModel
@Deprecated(since="4.1.1", forRemoval=true) public CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, ItemModel _owner, java.lang.String _text)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_author
- initial attribute declared by typeAbstractComment
at extensioncomments
_commentType
- initial attribute declared by typeComment
at extensioncomments
_component
- initial attribute declared by typeComment
at extensioncomments
_owner
- initial attribute declared by typeItem
at extensioncore
_text
- initial attribute declared by typeAbstractComment
at extensioncomments
-
-
Method Detail
-
getAssignedTo
@Accessor(qualifier="assignedTo", type=GETTER) public java.util.Collection<UserModel> getAssignedTo()
Generated method - Getter of theComment.assignedTo
attribute defined at extensioncomments
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the assignedTo
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theComment.code
attribute defined at extensioncomments
.- Returns:
- the code - unique identifier of the comment; will be generated if not set
-
getCommentAuthorEmail
@Accessor(qualifier="commentAuthorEmail", type=GETTER) public java.lang.String getCommentAuthorEmail()
Generated method - Getter of theComment.commentAuthorEmail
attribute defined at extensionsapquoteintegration
.- Returns:
- the commentAuthorEmail - Temporary placeholder to map Author of comments
-
getCommentMetadata
@Accessor(qualifier="commentMetadata", type=GETTER) public java.util.Collection<CommentMetadataModel> getCommentMetadata()
Generated method - Getter of theComment.commentMetadata
attribute defined at extensioncockpit
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the commentMetadata
-
getCommentType
@Accessor(qualifier="commentType", type=GETTER) public CommentTypeModel getCommentType()
Generated method - Getter of theComment.commentType
attribute defined at extensioncomments
.- Returns:
- the commentType
-
getComponent
@Accessor(qualifier="component", type=GETTER) public ComponentModel getComponent()
Generated method - Getter of theComment.component
attribute defined at extensioncomments
.- Returns:
- the component
-
getPriority
@Accessor(qualifier="priority", type=GETTER) public java.lang.Integer getPriority()
Generated method - Getter of theComment.priority
attribute defined at extensioncomments
.- Returns:
- the priority - Priority of a comment
-
getRelatedItems
@Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="relatedItems", type=GETTER) public java.util.Collection<ItemModel> getRelatedItems()
Deprecated, for removal: This API element is subject to removal in a future version.since agesGenerated method - Getter of theComment.relatedItems
attribute defined at extensioncomments
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the relatedItems - Related items of this comment
-
getReplies
@Accessor(qualifier="replies", type=GETTER) public java.util.List<ReplyModel> getReplies()
Generated method - Getter of theComment.replies
attribute defined at extensioncomments
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the replies
-
getWatchers
@Accessor(qualifier="watchers", type=GETTER) public java.util.Collection<PrincipalModel> getWatchers()
Generated method - Getter of theComment.watchers
attribute defined at extensioncomments
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the watchers
-
setAssignedTo
@Accessor(qualifier="assignedTo", type=SETTER) public void setAssignedTo(java.util.Collection<UserModel> value)
Generated method - Setter ofComment.assignedTo
attribute defined at extensioncomments
.- Parameters:
value
- the assignedTo
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Setter ofComment.code
attribute defined at extensioncomments
.- Parameters:
value
- the code - unique identifier of the comment; will be generated if not set
-
setCommentAuthorEmail
@Accessor(qualifier="commentAuthorEmail", type=SETTER) public void setCommentAuthorEmail(java.lang.String value)
Generated method - Setter ofComment.commentAuthorEmail
attribute defined at extensionsapquoteintegration
.- Parameters:
value
- the commentAuthorEmail - Temporary placeholder to map Author of comments
-
setCommentMetadata
@Accessor(qualifier="commentMetadata", type=SETTER) public void setCommentMetadata(java.util.Collection<CommentMetadataModel> value)
Generated method - Setter ofComment.commentMetadata
attribute defined at extensioncockpit
.- Parameters:
value
- the commentMetadata
-
setCommentType
@Accessor(qualifier="commentType", type=SETTER) public void setCommentType(CommentTypeModel value)
Generated method - Initial setter ofComment.commentType
attribute defined at extensioncomments
. Can only be used at creation of model - before first save.- Parameters:
value
- the commentType
-
setComponent
@Accessor(qualifier="component", type=SETTER) public void setComponent(ComponentModel value)
Generated method - Initial setter ofComment.component
attribute defined at extensioncomments
. Can only be used at creation of model - before first save.- Parameters:
value
- the component
-
setPriority
@Accessor(qualifier="priority", type=SETTER) public void setPriority(java.lang.Integer value)
Generated method - Setter ofComment.priority
attribute defined at extensioncomments
.- Parameters:
value
- the priority - Priority of a comment
-
setRelatedItems
@Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="relatedItems", type=SETTER) public void setRelatedItems(java.util.Collection<ItemModel> value)
Deprecated, for removal: This API element is subject to removal in a future version.since agesGenerated method - Setter ofComment.relatedItems
attribute defined at extensioncomments
.- Parameters:
value
- the relatedItems - Related items of this comment
-
setReplies
@Accessor(qualifier="replies", type=SETTER) public void setReplies(java.util.List<ReplyModel> value)
Generated method - Setter ofComment.replies
attribute defined at extensioncomments
.- Parameters:
value
- the replies
-
setWatchers
@Accessor(qualifier="watchers", type=SETTER) public void setWatchers(java.util.Collection<PrincipalModel> value)
Generated method - Setter ofComment.watchers
attribute defined at extensioncomments
.- Parameters:
value
- the watchers
-
-