Class ReplyModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

public class ReplyModel extends AbstractCommentModel
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated relation code constant for relation CommentReplyRelation defining source attribute comment in extension comments.
    static final String
    Generated relation code constant for relation ReplyParentRelation defining source attribute replies in extension comments.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Reply.comment attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Reply.commentPOS attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Reply.parent attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Reply.parentPOS attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Reply.replies attribute defined at extension comments.

    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
    Generated 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 parameters
    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 parameters
    ReplyModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the Reply.comment attribute defined at extension comments.
    Generated method - Getter of the Reply.parent attribute defined at extension comments.
    Generated method - Getter of the Reply.replies attribute defined at extension comments.
    void
    Generated method - Initial setter of Reply.comment attribute defined at extension comments.
    void
    Generated method - Initial setter of Reply.parent attribute defined at extension comments.
    void
    Generated method - Setter of Reply.replies attribute defined at extension comments.

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _REPLYPARENTRELATION

      public static final String _REPLYPARENTRELATION
      Generated relation code constant for relation ReplyParentRelation defining source attribute replies in extension comments.
      See Also:
    • _COMMENTREPLYRELATION

      public static final String _COMMENTREPLYRELATION
      Generated relation code constant for relation CommentReplyRelation defining source attribute comment in extension comments.
      See Also:
    • REPLIES

      public static final String REPLIES
      Generated constant - Attribute key of Reply.replies attribute defined at extension comments.
      See Also:
    • PARENTPOS

      public static final String PARENTPOS
      Generated constant - Attribute key of Reply.parentPOS attribute defined at extension comments.
      See Also:
    • PARENT

      public static final String PARENT
      Generated constant - Attribute key of Reply.parent attribute defined at extension comments.
      See Also:
    • COMMENTPOS

      public static final String COMMENTPOS
      Generated constant - Attribute key of Reply.commentPOS attribute defined at extension comments.
      See Also:
    • COMMENT

      public static final String COMMENT
      Generated constant - Attribute key of Reply.comment attribute defined at extension comments.
      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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _author - initial attribute declared by type AbstractComment at extension comments
      _comment - initial attribute declared by type Reply at extension comments
      _text - initial attribute declared by type AbstractComment at extension comments
    • 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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _author - initial attribute declared by type AbstractComment at extension comments
      _comment - initial attribute declared by type Reply at extension comments
      _owner - initial attribute declared by type Item at extension core
      _parent - initial attribute declared by type Reply at extension comments
      _text - initial attribute declared by type AbstractComment at extension comments
  • Method Details

    • getComment

      @Accessor(qualifier="comment", type=GETTER) public CommentModel getComment()
      Generated method - Getter of the Reply.comment attribute defined at extension comments.
      Returns:
      the comment
    • getParent

      @Accessor(qualifier="parent", type=GETTER) public ReplyModel getParent()
      Generated method - Getter of the Reply.parent attribute defined at extension comments.
      Returns:
      the parent
    • getReplies

      @Accessor(qualifier="replies", type=GETTER) public List<ReplyModel> getReplies()
      Generated method - Getter of the Reply.replies attribute defined at extension comments. 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 of Reply.comment attribute defined at extension comments. 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 of Reply.parent attribute defined at extension comments. Can only be used at creation of model - before first save.
      Parameters:
      value - the parent
    • setReplies

      @Accessor(qualifier="replies", type=SETTER) public void setReplies(List<ReplyModel> value)
      Generated method - Setter of Reply.replies attribute defined at extension comments.
      Parameters:
      value - the replies