Class CommentModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CMSWorkflowCommentModel, CsTicketEventModel

public class CommentModel extends AbstractCommentModel
Generated model class for type Comment 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 model type code constant.
    static final String
    Generated constant - Attribute key of Comment.assignedTo attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.code attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.commentAuthorEmail attribute defined at extension sapquoteintegration.
    static final String
    Generated constant - Attribute key of Comment.commentCode attribute defined at extension c4ccpiquote.
    static final String
    Generated constant - Attribute key of Comment.commentType attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.component attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.cpqCommentAuthorEmail attribute defined at extension sapcpqquoteintegration.
    static final String
    Generated constant - Attribute key of Comment.priority attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.relatedItems attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.replies attribute defined at extension comments.
    static final String
    Generated constant - Attribute key of Comment.source attribute defined at extension sapcpqquoteintegration.
    static final String
    Generated constant - Attribute key of Comment.watchers 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.
    CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, 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
    CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, 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
    CommentModel(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 Comment.assignedTo attribute defined at extension comments.
    Generated method - Getter of the Comment.code attribute defined at extension comments.
    Generated method - Getter of the Comment.commentAuthorEmail attribute defined at extension sapquoteintegration.
    Generated method - Getter of the Comment.commentCode attribute defined at extension c4ccpiquote.
    Generated method - Getter of the Comment.commentType attribute defined at extension comments.
    Generated method - Getter of the Comment.component attribute defined at extension comments.
    Generated method - Getter of the Comment.cpqCommentAuthorEmail attribute defined at extension sapcpqquoteintegration.
    Generated method - Getter of the Comment.priority attribute defined at extension comments.
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages
    Generated method - Getter of the Comment.replies attribute defined at extension comments.
    Generated method - Getter of the Comment.source attribute defined at extension sapcpqquoteintegration.
    Generated method - Getter of the Comment.watchers attribute defined at extension comments.
    void
    Generated method - Setter of Comment.assignedTo attribute defined at extension comments.
    void
    setCode(String value)
    Generated method - Setter of Comment.code attribute defined at extension comments.
    void
    Generated method - Setter of Comment.commentAuthorEmail attribute defined at extension sapquoteintegration.
    void
    Generated method - Setter of Comment.commentCode attribute defined at extension c4ccpiquote.
    void
    Generated method - Initial setter of Comment.commentType attribute defined at extension comments.
    void
    Generated method - Initial setter of Comment.component attribute defined at extension comments.
    void
    Generated method - Setter of Comment.cpqCommentAuthorEmail attribute defined at extension sapcpqquoteintegration.
    void
    Generated method - Setter of Comment.priority attribute defined at extension comments.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    since ages
    void
    Generated method - Setter of Comment.replies attribute defined at extension comments.
    void
    Generated method - Setter of Comment.source attribute defined at extension sapcpqquoteintegration.
    void
    Generated method - Setter of Comment.watchers 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:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Comment.code attribute defined at extension comments.
      See Also:
    • PRIORITY

      public static final String PRIORITY
      Generated constant - Attribute key of Comment.priority attribute defined at extension comments.
      See Also:
    • RELATEDITEMS

      public static final String RELATEDITEMS
      Generated constant - Attribute key of Comment.relatedItems attribute defined at extension comments.
      See Also:
    • REPLIES

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

      public static final String ASSIGNEDTO
      Generated constant - Attribute key of Comment.assignedTo attribute defined at extension comments.
      See Also:
    • WATCHERS

      public static final String WATCHERS
      Generated constant - Attribute key of Comment.watchers attribute defined at extension comments.
      See Also:
    • COMPONENT

      public static final String COMPONENT
      Generated constant - Attribute key of Comment.component attribute defined at extension comments.
      See Also:
    • COMMENTTYPE

      public static final String COMMENTTYPE
      Generated constant - Attribute key of Comment.commentType attribute defined at extension comments.
      See Also:
    • CPQCOMMENTAUTHOREMAIL

      public static final String CPQCOMMENTAUTHOREMAIL
      Generated constant - Attribute key of Comment.cpqCommentAuthorEmail attribute defined at extension sapcpqquoteintegration.
      See Also:
    • SOURCE

      public static final String SOURCE
      Generated constant - Attribute key of Comment.source attribute defined at extension sapcpqquoteintegration.
      See Also:
    • COMMENTAUTHOREMAIL

      public static final String COMMENTAUTHOREMAIL
      Generated constant - Attribute key of Comment.commentAuthorEmail attribute defined at extension sapquoteintegration.
      See Also:
    • COMMENTCODE

      public static final String COMMENTCODE
      Generated constant - Attribute key of Comment.commentCode attribute defined at extension c4ccpiquote.
      See Also:
  • Constructor Details

    • CommentModel

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

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

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

      @Deprecated(since="4.1.1", forRemoval=true) public CommentModel(UserModel _author, CommentTypeModel _commentType, ComponentModel _component, 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
      _commentType - initial attribute declared by type Comment at extension comments
      _component - initial attribute declared by type Comment 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

    • getAssignedTo

      @Accessor(qualifier="assignedTo", type=GETTER) public Collection<UserModel> getAssignedTo()
      Generated method - Getter of the Comment.assignedTo attribute defined at extension comments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the assignedTo
    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Comment.code attribute defined at extension comments.
      Returns:
      the code - unique identifier of the comment; will be generated if not set
    • getCommentAuthorEmail

      @Accessor(qualifier="commentAuthorEmail", type=GETTER) public String getCommentAuthorEmail()
      Generated method - Getter of the Comment.commentAuthorEmail attribute defined at extension sapquoteintegration.
      Returns:
      the commentAuthorEmail - Temporary placeholder to map Author of comments
    • getCommentCode

      @Accessor(qualifier="commentCode", type=GETTER) public String getCommentCode()
      Generated method - Getter of the Comment.commentCode attribute defined at extension c4ccpiquote.
      Returns:
      the commentCode - Temporary placeholder to keep comments unique
    • getCommentType

      @Accessor(qualifier="commentType", type=GETTER) public CommentTypeModel getCommentType()
      Generated method - Getter of the Comment.commentType attribute defined at extension comments.
      Returns:
      the commentType
    • getComponent

      @Accessor(qualifier="component", type=GETTER) public ComponentModel getComponent()
      Generated method - Getter of the Comment.component attribute defined at extension comments.
      Returns:
      the component
    • getCpqCommentAuthorEmail

      @Accessor(qualifier="cpqCommentAuthorEmail", type=GETTER) public String getCpqCommentAuthorEmail()
      Generated method - Getter of the Comment.cpqCommentAuthorEmail attribute defined at extension sapcpqquoteintegration.
      Returns:
      the cpqCommentAuthorEmail - Temporary placeholder to map Author of comments
    • getPriority

      @Accessor(qualifier="priority", type=GETTER) public Integer getPriority()
      Generated method - Getter of the Comment.priority attribute defined at extension comments.
      Returns:
      the priority - Priority of a comment
    • getRelatedItems

      @Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="relatedItems", type=GETTER) public Collection<ItemModel> getRelatedItems()
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      Generated method - Getter of the Comment.relatedItems attribute defined at extension comments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the relatedItems - Related items of this comment
    • getReplies

      @Accessor(qualifier="replies", type=GETTER) public List<ReplyModel> getReplies()
      Generated method - Getter of the Comment.replies attribute defined at extension comments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the replies
    • getSource

      @Accessor(qualifier="source", type=GETTER) public String getSource()
      Generated method - Getter of the Comment.source attribute defined at extension sapcpqquoteintegration.
      Returns:
      the source - Temporary place to map source to comments
    • getWatchers

      @Accessor(qualifier="watchers", type=GETTER) public Collection<PrincipalModel> getWatchers()
      Generated method - Getter of the Comment.watchers attribute defined at extension comments. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the watchers
    • setAssignedTo

      @Accessor(qualifier="assignedTo", type=SETTER) public void setAssignedTo(Collection<UserModel> value)
      Generated method - Setter of Comment.assignedTo attribute defined at extension comments.
      Parameters:
      value - the assignedTo
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of Comment.code attribute defined at extension comments.
      Parameters:
      value - the code - unique identifier of the comment; will be generated if not set
    • setCommentAuthorEmail

      @Accessor(qualifier="commentAuthorEmail", type=SETTER) public void setCommentAuthorEmail(String value)
      Generated method - Setter of Comment.commentAuthorEmail attribute defined at extension sapquoteintegration.
      Parameters:
      value - the commentAuthorEmail - Temporary placeholder to map Author of comments
    • setCommentCode

      @Accessor(qualifier="commentCode", type=SETTER) public void setCommentCode(String value)
      Generated method - Setter of Comment.commentCode attribute defined at extension c4ccpiquote.
      Parameters:
      value - the commentCode - Temporary placeholder to keep comments unique
    • setCommentType

      @Accessor(qualifier="commentType", type=SETTER) public void setCommentType(CommentTypeModel value)
      Generated method - Initial setter of Comment.commentType attribute defined at extension comments. Can only be used at creation of model - before first save.
      Parameters:
      value - the commentType
    • setComponent

      @Accessor(qualifier="component", type=SETTER) public void setComponent(ComponentModel value)
      Generated method - Initial setter of Comment.component attribute defined at extension comments. Can only be used at creation of model - before first save.
      Parameters:
      value - the component
    • setCpqCommentAuthorEmail

      @Accessor(qualifier="cpqCommentAuthorEmail", type=SETTER) public void setCpqCommentAuthorEmail(String value)
      Generated method - Setter of Comment.cpqCommentAuthorEmail attribute defined at extension sapcpqquoteintegration.
      Parameters:
      value - the cpqCommentAuthorEmail - Temporary placeholder to map Author of comments
    • setPriority

      @Accessor(qualifier="priority", type=SETTER) public void setPriority(Integer value)
      Generated method - Setter of Comment.priority attribute defined at extension comments.
      Parameters:
      value - the priority - Priority of a comment
    • setRelatedItems

      @Deprecated(since="ages", forRemoval=true) @Accessor(qualifier="relatedItems", type=SETTER) public void setRelatedItems(Collection<ItemModel> value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages
      Generated method - Setter of Comment.relatedItems attribute defined at extension comments.
      Parameters:
      value - the relatedItems - Related items of this comment
    • setReplies

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

      @Accessor(qualifier="source", type=SETTER) public void setSource(String value)
      Generated method - Setter of Comment.source attribute defined at extension sapcpqquoteintegration.
      Parameters:
      value - the source - Temporary place to map source to comments
    • setWatchers

      @Accessor(qualifier="watchers", type=SETTER) public void setWatchers(Collection<PrincipalModel> value)
      Generated method - Setter of Comment.watchers attribute defined at extension comments.
      Parameters:
      value - the watchers