Class ReplyModel
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.ReplyModel
- All Implemented Interfaces:
Serializable
Generated model class for type Reply 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 relation code constant for relationCommentReplyRelationdefining source attributecommentin extensioncomments.static final StringGenerated relation code constant for relationReplyParentRelationdefining source attributerepliesin extensioncomments.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofReply.commentattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofReply.commentPOSattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofReply.parentattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofReply.parentPOSattribute defined at extensioncomments.static final StringGenerated constant - Attribute key ofReply.repliesattribute 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.ReplyModel(UserModel _author, CommentModel _comment, ItemModel _owner, ReplyModel _parent, 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 parametersReplyModel(UserModel _author, CommentModel _comment, 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 parametersReplyModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theReply.commentattribute defined at extensioncomments.Generated method - Getter of theReply.parentattribute defined at extensioncomments.Generated method - Getter of theReply.repliesattribute defined at extensioncomments.voidsetComment(CommentModel value) Generated method - Initial setter ofReply.commentattribute defined at extensioncomments.voidsetParent(ReplyModel value) Generated method - Initial setter ofReply.parentattribute defined at extensioncomments.voidsetReplies(List<ReplyModel> value) Generated method - Setter ofReply.repliesattribute 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:
-
_REPLYPARENTRELATION
Generated relation code constant for relationReplyParentRelationdefining source attributerepliesin extensioncomments.- See Also:
-
_COMMENTREPLYRELATION
Generated relation code constant for relationCommentReplyRelationdefining source attributecommentin extensioncomments.- See Also:
-
REPLIES
Generated constant - Attribute key ofReply.repliesattribute defined at extensioncomments.- See Also:
-
PARENTPOS
Generated constant - Attribute key ofReply.parentPOSattribute defined at extensioncomments.- See Also:
-
PARENT
Generated constant - Attribute key ofReply.parentattribute defined at extensioncomments.- See Also:
-
COMMENTPOS
Generated constant - Attribute key ofReply.commentPOSattribute defined at extensioncomments.- See Also:
-
COMMENT
Generated constant - Attribute key ofReply.commentattribute defined at extensioncomments.- See Also:
-
-
Constructor Details
-
ReplyModel
public ReplyModel()Generated constructor - Default constructor for generic creation. -
ReplyModel
public ReplyModel(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
-
ReplyModel
@Deprecated(since="4.1.1", forRemoval=true) public ReplyModel(UserModel _author, CommentModel _comment, 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_comment- initial attribute declared by typeReplyat extensioncomments_text- initial attribute declared by typeAbstractCommentat extensioncomments
-
ReplyModel
@Deprecated(since="4.1.1", forRemoval=true) public ReplyModel(UserModel _author, CommentModel _comment, ItemModel _owner, ReplyModel _parent, 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_comment- initial attribute declared by typeReplyat extensioncomments_owner- initial attribute declared by typeItemat extensioncore_parent- initial attribute declared by typeReplyat extensioncomments_text- initial attribute declared by typeAbstractCommentat extensioncomments
-
-
Method Details
-
getComment
Generated method - Getter of theReply.commentattribute defined at extensioncomments.- Returns:
- the comment
-
getParent
Generated method - Getter of theReply.parentattribute defined at extensioncomments.- Returns:
- the parent
-
getReplies
Generated method - Getter of theReply.repliesattribute defined at extensioncomments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the replies
-
setComment
Generated method - Initial setter ofReply.commentattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the comment
-
setParent
Generated method - Initial setter ofReply.parentattribute defined at extensioncomments. Can only be used at creation of model - before first save.- Parameters:
value- the parent
-
setReplies
Generated method - Setter ofReply.repliesattribute defined at extensioncomments.- Parameters:
value- the replies
-