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:
Serializable
- Direct Known Subclasses:
CMSWorkflowCommentModel,CsTicketEventModel
Generated model class for type Comment first defined at extension comments.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofComment.assignedToattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.codeattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.commentAuthorEmailattribute defined at extensionsapquoteintegration.static final StringGenerated constant - Attribute key ofComment.commentCodeattribute defined at extensionc4ccpiquote.static final StringGenerated constant - Attribute key ofComment.commentTypeattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.componentattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.cpqCommentAuthorEmailattribute defined at extensionsapcpqquoteintegration.static final StringGenerated constant - Attribute key ofComment.priorityattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.relatedItemsattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.repliesattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.sourceattribute defined at extensionsapcpqquoteintegration.static final StringGenerated constant - Attribute key ofComment.watchersattribute defined at extensioncomments.Fields inherited from class de.hybris.platform.comments.model.AbstractCommentModel
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION, ATTACHMENTS, AUTHOR, COMMENTUSERSETTINGS, SUBJECT, TEXTFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, ItemModel _owner, 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, 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(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theComment.assignedToattribute defined at extensioncomments.getCode()Generated method - Getter of theComment.codeattribute defined at extensioncomments.Generated method - Getter of theComment.commentAuthorEmailattribute defined at extensionsapquoteintegration.Generated method - Getter of theComment.commentCodeattribute defined at extensionc4ccpiquote.Generated method - Getter of theComment.commentTypeattribute defined at extensioncomments.Generated method - Getter of theComment.componentattribute defined at extensioncomments.Generated method - Getter of theComment.cpqCommentAuthorEmailattribute defined at extensionsapcpqquoteintegration.Generated method - Getter of theComment.priorityattribute defined at extensioncomments.Deprecated, for removal: This API element is subject to removal in a future version.since agesGenerated method - Getter of theComment.repliesattribute defined at extensioncomments.Generated method - Getter of theComment.sourceattribute defined at extensionsapcpqquoteintegration.Generated method - Getter of theComment.watchersattribute defined at extensioncomments.voidsetAssignedTo(Collection<UserModel> value) Generated method - Setter ofComment.assignedToattribute defined at extensioncomments.voidGenerated method - Setter ofComment.codeattribute defined at extensioncomments.voidsetCommentAuthorEmail(String value) Generated method - Setter ofComment.commentAuthorEmailattribute defined at extensionsapquoteintegration.voidsetCommentCode(String value) Generated method - Setter ofComment.commentCodeattribute defined at extensionc4ccpiquote.voidsetCommentType(CommentTypeModel value) Generated method - Initial setter ofComment.commentTypeattribute defined at extensioncomments.voidsetComponent(ComponentModel value) Generated method - Initial setter ofComment.componentattribute defined at extensioncomments.voidsetCpqCommentAuthorEmail(String value) Generated method - Setter ofComment.cpqCommentAuthorEmailattribute defined at extensionsapcpqquoteintegration.voidsetPriority(Integer value) Generated method - Setter ofComment.priorityattribute defined at extensioncomments.voidsetRelatedItems(Collection<ItemModel> value) Deprecated, for removal: This API element is subject to removal in a future version.since agesvoidsetReplies(List<ReplyModel> value) Generated method - Setter ofComment.repliesattribute defined at extensioncomments.voidGenerated method - Setter ofComment.sourceattribute defined at extensionsapcpqquoteintegration.voidsetWatchers(Collection<PrincipalModel> value) Generated method - Setter ofComment.watchersattribute defined at extensioncomments.Methods inherited from class de.hybris.platform.comments.model.AbstractCommentModel
getAttachments, getAuthor, getSubject, getText, setAttachments, setAuthor, setSubject, setTextMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
CODE
Generated constant - Attribute key ofComment.codeattribute defined at extensioncomments.- See Also:
-
PRIORITY
Generated constant - Attribute key ofComment.priorityattribute defined at extensioncomments.- See Also:
-
RELATEDITEMS
Generated constant - Attribute key ofComment.relatedItemsattribute defined at extensioncomments.- See Also:
-
REPLIES
Generated constant - Attribute key ofComment.repliesattribute defined at extensioncomments.- See Also:
-
ASSIGNEDTO
Generated constant - Attribute key ofComment.assignedToattribute defined at extensioncomments.- See Also:
-
WATCHERS
Generated constant - Attribute key ofComment.watchersattribute defined at extensioncomments.- See Also:
-
COMPONENT
Generated constant - Attribute key ofComment.componentattribute defined at extensioncomments.- See Also:
-
COMMENTTYPE
Generated constant - Attribute key ofComment.commentTypeattribute defined at extensioncomments.- See Also:
-
CPQCOMMENTAUTHOREMAIL
Generated constant - Attribute key ofComment.cpqCommentAuthorEmailattribute defined at extensionsapcpqquoteintegration.- See Also:
-
SOURCE
Generated constant - Attribute key ofComment.sourceattribute defined at extensionsapcpqquoteintegration.- See Also:
-
COMMENTAUTHOREMAIL
Generated constant - Attribute key ofComment.commentAuthorEmailattribute defined at extensionsapquoteintegration.- See Also:
-
COMMENTCODE
Generated constant - Attribute key ofComment.commentCodeattribute defined at extensionc4ccpiquote.- See Also:
-
-
Constructor Details
-
CommentModel
public CommentModel()Generated constructor - Default constructor for generic creation. -
CommentModel
public CommentModel(de.hybris.platform.servicelayer.model.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, 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 typeAbstractCommentat extensioncomments_commentType- initial attribute declared by typeCommentat extensioncomments_component- initial attribute declared by typeCommentat extensioncomments_text- initial attribute declared by typeAbstractCommentat extensioncomments
-
CommentModel
@Deprecated(since="4.1.1", forRemoval=true) public CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, ItemModel _owner, 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 typeAbstractCommentat extensioncomments_commentType- initial attribute declared by typeCommentat extensioncomments_component- initial attribute declared by typeCommentat extensioncomments_owner- initial attribute declared by typeItemat extensioncore_text- initial attribute declared by typeAbstractCommentat extensioncomments
-
-
Method Details
-
getAssignedTo
Generated method - Getter of theComment.assignedToattribute defined at extensioncomments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the assignedTo
-
getCode
Generated method - Getter of theComment.codeattribute defined at extensioncomments.- Returns:
- the code - unique identifier of the comment; will be generated if not set
-
getCommentAuthorEmail
Generated method - Getter of theComment.commentAuthorEmailattribute defined at extensionsapquoteintegration.- Returns:
- the commentAuthorEmail - Temporary placeholder to map Author of comments
-
getCommentCode
Generated method - Getter of theComment.commentCodeattribute defined at extensionc4ccpiquote.- Returns:
- the commentCode - Temporary placeholder to keep comments unique
-
getCommentType
Generated method - Getter of theComment.commentTypeattribute defined at extensioncomments.- Returns:
- the commentType
-
getComponent
Generated method - Getter of theComment.componentattribute defined at extensioncomments.- Returns:
- the component
-
getCpqCommentAuthorEmail
Generated method - Getter of theComment.cpqCommentAuthorEmailattribute defined at extensionsapcpqquoteintegration.- Returns:
- the cpqCommentAuthorEmail - Temporary placeholder to map Author of comments
-
getPriority
Generated method - Getter of theComment.priorityattribute defined at extensioncomments.- Returns:
- the priority - Priority of a comment
-
getRelatedItems
@Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="relatedItems", type=GETTER) public Collection<ItemModel> getRelatedItems()Deprecated, for removal: This API element is subject to removal in a future version.since agesGenerated method - Getter of theComment.relatedItemsattribute defined at extensioncomments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the relatedItems - Related items of this comment
-
getReplies
Generated method - Getter of theComment.repliesattribute defined at extensioncomments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the replies
-
getSource
Generated method - Getter of theComment.sourceattribute defined at extensionsapcpqquoteintegration.- Returns:
- the source - Temporary place to map source to comments
-
getWatchers
Generated method - Getter of theComment.watchersattribute 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(Collection<UserModel> value) Generated method - Setter ofComment.assignedToattribute defined at extensioncomments.- Parameters:
value- the assignedTo
-
setCode
Generated method - Setter ofComment.codeattribute 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(String value) Generated method - Setter ofComment.commentAuthorEmailattribute defined at extensionsapquoteintegration.- Parameters:
value- the commentAuthorEmail - Temporary placeholder to map Author of comments
-
setCommentCode
Generated method - Setter ofComment.commentCodeattribute defined at extensionc4ccpiquote.- Parameters:
value- the commentCode - Temporary placeholder to keep comments unique
-
setCommentType
Generated method - Initial setter ofComment.commentTypeattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the commentType
-
setComponent
Generated method - Initial setter ofComment.componentattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the component
-
setCpqCommentAuthorEmail
@Accessor(qualifier="cpqCommentAuthorEmail", type=SETTER) public void setCpqCommentAuthorEmail(String value) Generated method - Setter ofComment.cpqCommentAuthorEmailattribute defined at extensionsapcpqquoteintegration.- Parameters:
value- the cpqCommentAuthorEmail - Temporary placeholder to map Author of comments
-
setPriority
Generated method - Setter ofComment.priorityattribute 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(Collection<ItemModel> value) Deprecated, for removal: This API element is subject to removal in a future version.since agesGenerated method - Setter ofComment.relatedItemsattribute defined at extensioncomments.- Parameters:
value- the relatedItems - Related items of this comment
-
setReplies
Generated method - Setter ofComment.repliesattribute defined at extensioncomments.- Parameters:
value- the replies
-
setSource
Generated method - Setter ofComment.sourceattribute defined at extensionsapcpqquoteintegration.- Parameters:
value- the source - Temporary place to map source to comments
-
setWatchers
@Accessor(qualifier="watchers", type=SETTER) public void setWatchers(Collection<PrincipalModel> value) Generated method - Setter ofComment.watchersattribute defined at extensioncomments.- Parameters:
value- the watchers
-