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:
java.io.Serializable
public class ReplyModel extends AbstractCommentModel
Generated model class for type Reply 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_COMMENTREPLYRELATIONGenerated relation code constant for relationCommentReplyRelationdefining source attributecommentin extensioncomments.static java.lang.String_REPLYPARENTRELATIONGenerated relation code constant for relationReplyParentRelationdefining source attributerepliesin extensioncomments.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCOMMENTGenerated constant - Attribute key ofReply.commentattribute defined at extensioncomments.static java.lang.StringCOMMENTPOSGenerated constant - Attribute key ofReply.commentPOSattribute defined at extensioncomments.static java.lang.StringPARENTGenerated constant - Attribute key ofReply.parentattribute defined at extensioncomments.static java.lang.StringPARENTPOSGenerated constant - Attribute key ofReply.parentPOSattribute defined at extensioncomments.static java.lang.StringREPLIESGenerated constant - Attribute key ofReply.repliesattribute defined at extensioncomments.-
Fields inherited from class de.hybris.platform.comments.model.AbstractCommentModel
_COMMENTUSERSETTINGABSTRACTCOMMENTRELATION, ATTACHMENTS, AUTHOR, COMMENTUSERSETTINGS, SUBJECT, TEXT
-
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 ReplyModel()Generated constructor - Default constructor for generic creation.ReplyModel(UserModel _author, CommentModel _comment, ItemModel _owner, ReplyModel _parent, 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 parametersReplyModel(UserModel _author, CommentModel _comment, 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 parametersReplyModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommentModelgetComment()Generated method - Getter of theReply.commentattribute defined at extensioncomments.ReplyModelgetParent()Generated method - Getter of theReply.parentattribute defined at extensioncomments.java.util.List<ReplyModel>getReplies()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(java.util.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, setText
-
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
-
_REPLYPARENTRELATION
public static final java.lang.String _REPLYPARENTRELATION
Generated relation code constant for relationReplyParentRelationdefining source attributerepliesin extensioncomments.- See Also:
- Constant Field Values
-
_COMMENTREPLYRELATION
public static final java.lang.String _COMMENTREPLYRELATION
Generated relation code constant for relationCommentReplyRelationdefining source attributecommentin extensioncomments.- See Also:
- Constant Field Values
-
REPLIES
public static final java.lang.String REPLIES
Generated constant - Attribute key ofReply.repliesattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
PARENTPOS
public static final java.lang.String PARENTPOS
Generated constant - Attribute key ofReply.parentPOSattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
PARENT
public static final java.lang.String PARENT
Generated constant - Attribute key ofReply.parentattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
COMMENTPOS
public static final java.lang.String COMMENTPOS
Generated constant - Attribute key ofReply.commentPOSattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
COMMENT
public static final java.lang.String COMMENT
Generated constant - Attribute key ofReply.commentattribute defined at extensioncomments.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplyModel
public ReplyModel()
Generated constructor - Default constructor for generic creation.
-
ReplyModel
public ReplyModel(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, 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 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, 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 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 Detail
-
getComment
@Accessor(qualifier="comment", type=GETTER) public CommentModel getComment()
Generated method - Getter of theReply.commentattribute defined at extensioncomments.- Returns:
- the comment
-
getParent
@Accessor(qualifier="parent", type=GETTER) public ReplyModel getParent()
Generated method - Getter of theReply.parentattribute defined at extensioncomments.- Returns:
- the parent
-
getReplies
@Accessor(qualifier="replies", type=GETTER) public java.util.List<ReplyModel> 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
@Accessor(qualifier="comment", type=SETTER) public void setComment(CommentModel value)
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
@Accessor(qualifier="parent", type=SETTER) public void setParent(ReplyModel value)
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
@Accessor(qualifier="replies", type=SETTER) public void setReplies(java.util.List<ReplyModel> value)
Generated method - Setter ofReply.repliesattribute defined at extensioncomments.- Parameters:
value- the replies
-
-