Class AbstractCommentModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.comments.model.AbstractCommentModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommentModel,ReplyModel
Generated model class for type AbstractComment first defined at extension comments.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationCommentUserSettingAbstractCommentRelationdefining source attributecommentUserSettingsin extensioncomments.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAbstractComment.attachmentsattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofAbstractComment.authorattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofAbstractComment.commentUserSettingsattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofAbstractComment.subjectattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofAbstractComment.textattribute defined at extensioncomments.Fields 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.AbstractCommentModel(UserModel _author, 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 parametersAbstractCommentModel(UserModel _author, 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 - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theAbstractComment.attachmentsattribute defined at extensioncomments.Generated method - Getter of theAbstractComment.authorattribute defined at extensioncomments.Generated method - Getter of theAbstractComment.subjectattribute defined at extensioncomments.getText()Generated method - Getter of theAbstractComment.textattribute defined at extensioncomments.voidGenerated method - Setter ofAbstractComment.attachmentsattribute defined at extensioncomments.voidGenerated method - Initial setter ofAbstractComment.authorattribute defined at extensioncomments.voidsetSubject(String value) Generated method - Setter ofAbstractComment.subjectattribute defined at extensioncomments.voidGenerated method - Setter ofAbstractComment.textattribute defined at extensioncomments.Methods 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:
-
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION
Generated relation code constant for relationCommentUserSettingAbstractCommentRelationdefining source attributecommentUserSettingsin extensioncomments.- See Also:
-
SUBJECT
Generated constant - Attribute key ofAbstractComment.subjectattribute defined at extensioncomments.- See Also:
-
TEXT
Generated constant - Attribute key ofAbstractComment.textattribute defined at extensioncomments.- See Also:
-
ATTACHMENTS
Generated constant - Attribute key ofAbstractComment.attachmentsattribute defined at extensioncomments.- See Also:
-
AUTHOR
Generated constant - Attribute key ofAbstractComment.authorattribute defined at extensioncomments.- See Also:
-
COMMENTUSERSETTINGS
Generated constant - Attribute key ofAbstractComment.commentUserSettingsattribute defined at extensioncomments.- See Also:
-
-
Constructor Details
-
AbstractCommentModel
public AbstractCommentModel()Generated constructor - Default constructor for generic creation. -
AbstractCommentModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
AbstractCommentModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCommentModel(UserModel _author, 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_text- initial attribute declared by typeAbstractCommentat extensioncomments
-
AbstractCommentModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCommentModel(UserModel _author, 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_owner- initial attribute declared by typeItemat extensioncore_text- initial attribute declared by typeAbstractCommentat extensioncomments
-
-
Method Details
-
getAttachments
@Accessor(qualifier="attachments", type=GETTER) public Collection<CommentAttachmentModel> getAttachments()Generated method - Getter of theAbstractComment.attachmentsattribute defined at extensioncomments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the attachments
-
getAuthor
Generated method - Getter of theAbstractComment.authorattribute defined at extensioncomments.- Returns:
- the author
-
getSubject
Generated method - Getter of theAbstractComment.subjectattribute defined at extensioncomments.- Returns:
- the subject - Subject of a comment
-
getText
Generated method - Getter of theAbstractComment.textattribute defined at extensioncomments.- Returns:
- the text - Content of a comment
-
setAttachments
@Accessor(qualifier="attachments", type=SETTER) public void setAttachments(Collection<CommentAttachmentModel> value) Generated method - Setter ofAbstractComment.attachmentsattribute defined at extensioncomments.- Parameters:
value- the attachments
-
setAuthor
Generated method - Initial setter ofAbstractComment.authorattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the author
-
setSubject
Generated method - Setter ofAbstractComment.subjectattribute defined at extensioncomments.- Parameters:
value- the subject - Subject of a comment
-
setText
Generated method - Setter ofAbstractComment.textattribute defined at extensioncomments.- Parameters:
value- the text - Content of a comment
-