Class 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
    • 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 relation ReplyParentRelation defining source attribute replies in extension comments.
        See Also:
        Constant Field Values
      • _COMMENTREPLYRELATION

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

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

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

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

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

        public static final java.lang.String COMMENT
        Generated constant - Attribute key of Reply.comment attribute defined at extension comments.
        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 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,
                          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 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 Detail

      • 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 java.util.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​(java.util.List<ReplyModel> value)
        Generated method - Setter of Reply.replies attribute defined at extension comments.
        Parameters:
        value - the replies