Class AbstractCommentModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.comments.model.AbstractCommentModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommentModel, ReplyModel

public class AbstractCommentModel extends ItemModel
Generated model class for type AbstractComment 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 CommentUserSettingAbstractCommentRelation defining source attribute commentUserSettings in extension comments.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of AbstractComment.attachments attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of AbstractComment.author attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of AbstractComment.commentUserSettings attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of AbstractComment.subject attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of AbstractComment.text attribute defined at extension comments.

    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.
    AbstractCommentModel(UserModel _author, ItemModel _owner, 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
    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
    AbstractCommentModel(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 AbstractComment.attachments attribute defined at extension comments.
    Generated method - Getter of the AbstractComment.author attribute defined at extension comments.
    Generated method - Getter of the AbstractComment.subject attribute defined at extension comments.
    Generated method - Getter of the AbstractComment.text attribute defined at extension comments.
    void
    Generated method - Setter of AbstractComment.attachments attribute defined at extension comments.
    void
    Generated method - Initial setter of AbstractComment.author attribute defined at extension comments.
    void
    Generated method - Setter of AbstractComment.subject attribute defined at extension comments.
    void
    setText(String value)
    Generated method - Setter of AbstractComment.text attribute defined at extension comments.

    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:
    • _COMMENTUSERSETTINGABSTRACTCOMMENTRELATION

      public static final String _COMMENTUSERSETTINGABSTRACTCOMMENTRELATION
      Generated relation code constant for relation CommentUserSettingAbstractCommentRelation defining source attribute commentUserSettings in extension comments.
      See Also:
    • SUBJECT

      public static final String SUBJECT
      Generated constant - Attribute key of AbstractComment.subject attribute defined at extension comments.
      See Also:
    • TEXT

      public static final String TEXT
      Generated constant - Attribute key of AbstractComment.text attribute defined at extension comments.
      See Also:
    • ATTACHMENTS

      public static final String ATTACHMENTS
      Generated constant - Attribute key of AbstractComment.attachments attribute defined at extension comments.
      See Also:
    • AUTHOR

      public static final String AUTHOR
      Generated constant - Attribute key of AbstractComment.author attribute defined at extension comments.
      See Also:
    • COMMENTUSERSETTINGS

      public static final String COMMENTUSERSETTINGS
      Generated constant - Attribute key of AbstractComment.commentUserSettings attribute defined at extension comments.
      See Also:
  • Constructor Details

    • AbstractCommentModel

      public AbstractCommentModel()
      Generated constructor - Default constructor for generic creation.
    • AbstractCommentModel

      public AbstractCommentModel(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
    • AbstractCommentModel

      @Deprecated(since="4.1.1", forRemoval=true) public AbstractCommentModel(UserModel _author, 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
      _text - initial attribute declared by type AbstractComment at extension comments
    • AbstractCommentModel

      @Deprecated(since="4.1.1", forRemoval=true) public AbstractCommentModel(UserModel _author, ItemModel _owner, 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
      _owner - initial attribute declared by type Item at extension core
      _text - initial attribute declared by type AbstractComment at extension comments
  • Method Details

    • getAttachments

      @Accessor(qualifier="attachments", type=GETTER) public Collection<CommentAttachmentModel> getAttachments()
      Generated method - Getter of the AbstractComment.attachments attribute defined at extension comments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the attachments
    • getAuthor

      @Accessor(qualifier="author", type=GETTER) public UserModel getAuthor()
      Generated method - Getter of the AbstractComment.author attribute defined at extension comments.
      Returns:
      the author
    • getSubject

      @Accessor(qualifier="subject", type=GETTER) public String getSubject()
      Generated method - Getter of the AbstractComment.subject attribute defined at extension comments.
      Returns:
      the subject - Subject of a comment
    • getText

      @Accessor(qualifier="text", type=GETTER) public String getText()
      Generated method - Getter of the AbstractComment.text attribute defined at extension comments.
      Returns:
      the text - Content of a comment
    • setAttachments

      @Accessor(qualifier="attachments", type=SETTER) public void setAttachments(Collection<CommentAttachmentModel> value)
      Generated method - Setter of AbstractComment.attachments attribute defined at extension comments.
      Parameters:
      value - the attachments
    • setAuthor

      @Accessor(qualifier="author", type=SETTER) public void setAuthor(UserModel value)
      Generated method - Initial setter of AbstractComment.author attribute defined at extension comments. Can only be used at creation of model - before first save.
      Parameters:
      value - the author
    • setSubject

      @Accessor(qualifier="subject", type=SETTER) public void setSubject(String value)
      Generated method - Setter of AbstractComment.subject attribute defined at extension comments.
      Parameters:
      value - the subject - Subject of a comment
    • setText

      @Accessor(qualifier="text", type=SETTER) public void setText(String value)
      Generated method - Setter of AbstractComment.text attribute defined at extension comments.
      Parameters:
      value - the text - Content of a comment