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:
java.io.Serializable
- Direct Known Subclasses:
CommentModel
,ReplyModel
public class AbstractCommentModel extends ItemModel
Generated model class for type AbstractComment 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
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION
Generated relation code constant for relationCommentUserSettingAbstractCommentRelation
defining source attributecommentUserSettings
in extensioncomments
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
ATTACHMENTS
Generated constant - Attribute key ofAbstractComment.attachments
attribute defined at extensioncomments
.static java.lang.String
AUTHOR
Generated constant - Attribute key ofAbstractComment.author
attribute defined at extensioncomments
.static java.lang.String
COMMENTUSERSETTINGS
Generated constant - Attribute key ofAbstractComment.commentUserSettings
attribute defined at extensioncomments
.static java.lang.String
SUBJECT
Generated constant - Attribute key ofAbstractComment.subject
attribute defined at extensioncomments
.static java.lang.String
TEXT
Generated constant - Attribute key ofAbstractComment.text
attribute defined at extensioncomments
.-
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 AbstractCommentModel()
Generated constructor - Default constructor for generic creation.AbstractCommentModel(UserModel _author, 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 parametersAbstractCommentModel(UserModel _author, 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 parametersAbstractCommentModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<CommentAttachmentModel>
getAttachments()
Generated method - Getter of theAbstractComment.attachments
attribute defined at extensioncomments
.UserModel
getAuthor()
Generated method - Getter of theAbstractComment.author
attribute defined at extensioncomments
.java.lang.String
getSubject()
Generated method - Getter of theAbstractComment.subject
attribute defined at extensioncomments
.java.lang.String
getText()
Generated method - Getter of theAbstractComment.text
attribute defined at extensioncomments
.void
setAttachments(java.util.Collection<CommentAttachmentModel> value)
Generated method - Setter ofAbstractComment.attachments
attribute defined at extensioncomments
.void
setAuthor(UserModel value)
Generated method - Initial setter ofAbstractComment.author
attribute defined at extensioncomments
.void
setSubject(java.lang.String value)
Generated method - Setter ofAbstractComment.subject
attribute defined at extensioncomments
.void
setText(java.lang.String value)
Generated method - Setter ofAbstractComment.text
attribute defined at extensioncomments
.-
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
-
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION
public static final java.lang.String _COMMENTUSERSETTINGABSTRACTCOMMENTRELATION
Generated relation code constant for relationCommentUserSettingAbstractCommentRelation
defining source attributecommentUserSettings
in extensioncomments
.- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
Generated constant - Attribute key ofAbstractComment.subject
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
TEXT
public static final java.lang.String TEXT
Generated constant - Attribute key ofAbstractComment.text
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
ATTACHMENTS
public static final java.lang.String ATTACHMENTS
Generated constant - Attribute key ofAbstractComment.attachments
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
AUTHOR
public static final java.lang.String AUTHOR
Generated constant - Attribute key ofAbstractComment.author
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
COMMENTUSERSETTINGS
public static final java.lang.String COMMENTUSERSETTINGS
Generated constant - Attribute key ofAbstractComment.commentUserSettings
attribute defined at extensioncomments
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractCommentModel
public AbstractCommentModel()
Generated constructor - Default constructor for generic creation.
-
AbstractCommentModel
public AbstractCommentModel(ItemModelContext ctx)
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, 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
_text
- initial attribute declared by typeAbstractComment
at extensioncomments
-
AbstractCommentModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractCommentModel(UserModel _author, 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
_owner
- initial attribute declared by typeItem
at extensioncore
_text
- initial attribute declared by typeAbstractComment
at extensioncomments
-
-
Method Detail
-
getAttachments
@Accessor(qualifier="attachments", type=GETTER) public java.util.Collection<CommentAttachmentModel> getAttachments()
Generated method - Getter of theAbstractComment.attachments
attribute defined at extensioncomments
. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the attachments
-
getAuthor
@Accessor(qualifier="author", type=GETTER) public UserModel getAuthor()
Generated method - Getter of theAbstractComment.author
attribute defined at extensioncomments
.- Returns:
- the author
-
getSubject
@Accessor(qualifier="subject", type=GETTER) public java.lang.String getSubject()
Generated method - Getter of theAbstractComment.subject
attribute defined at extensioncomments
.- Returns:
- the subject - Subject of a comment
-
getText
@Accessor(qualifier="text", type=GETTER) public java.lang.String getText()
Generated method - Getter of theAbstractComment.text
attribute defined at extensioncomments
.- Returns:
- the text - Content of a comment
-
setAttachments
@Accessor(qualifier="attachments", type=SETTER) public void setAttachments(java.util.Collection<CommentAttachmentModel> value)
Generated method - Setter ofAbstractComment.attachments
attribute defined at extensioncomments
.- Parameters:
value
- the attachments
-
setAuthor
@Accessor(qualifier="author", type=SETTER) public void setAuthor(UserModel value)
Generated method - Initial setter ofAbstractComment.author
attribute defined at extensioncomments
. Can only be used at creation of model - before first save.- Parameters:
value
- the author
-
setSubject
@Accessor(qualifier="subject", type=SETTER) public void setSubject(java.lang.String value)
Generated method - Setter ofAbstractComment.subject
attribute defined at extensioncomments
.- Parameters:
value
- the subject - Subject of a comment
-
-