Class ReplyModel

All Implemented Interfaces:
Serializable

public class ReplyModel extends AbstractCommentModel
Generated model class for type Reply first defined at extension comments.
See Also:
  • 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(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