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.commentTypeattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofComment.componentattribute defined at extensioncomments.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.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.commentTypeattribute defined at extensioncomments.Generated method - Getter of theComment.componentattribute defined at extensioncomments.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.watchersattribute defined at extensioncomments.voidsetAssignedTo(Collection<UserModel> value) Generated method - Setter ofComment.assignedToattribute defined at extensioncomments.voidGenerated method - Setter ofComment.codeattribute defined at extensioncomments.voidsetCommentType(CommentTypeModel value) Generated method - Initial setter ofComment.commentTypeattribute defined at extensioncomments.voidsetComponent(ComponentModel value) Generated method - Initial setter ofComment.componentattribute defined at extensioncomments.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.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:
-
-
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
-
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
-
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
-
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
-
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
-
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
-
setWatchers
@Accessor(qualifier="watchers", type=SETTER) public void setWatchers(Collection<PrincipalModel> value) Generated method - Setter ofComment.watchersattribute defined at extensioncomments.- Parameters:
value- the watchers
-