@DomainNode
@ExtensionField(beanName = "bodyFieldBean")
abstract class Comment(createdAt: OffsetDateTime, lastModifiedAt: OffsetDateTime, var bodyLastEditedAt: OffsetDateTime) : PublicTimelineItem

Supertype for IssueComment and Body. Represents a text block in the Timeline. Keeps track when it was last edited and by who, but does not keep track of the change history. READ is granted if READ is granted on `issue`.

Inheritors

Constructors

Link copied to clipboard
constructor(createdAt: OffsetDateTime, lastModifiedAt: OffsetDateTime, bodyLastEditedAt: OffsetDateTime)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@NodeRelationship(type = "ANSWERS", direction = Direction.INCOMING)
@FilterProperty
val answeredBy: LazyLoadingDelegate<IssueComment, NodeSetPropertyDelegate.NodeSetProperty>

IssueComments which answer this Comment.

Link copied to clipboard
@FilterProperty
@OrderProperty
var bodyLastEditedAt: OffsetDateTime

Keep track when the body of the Comment was last updated. If not updated yet, the DateTime of creation.

Link copied to clipboard
@NodeRelationship(type = "BODY_LAST_EDITED_BY", direction = Direction.OUTGOING)
@FilterProperty
val bodyLastEditedBy: LazyLoadingDelegate<User, NodePropertyDelegate.NodeProperty>

The User who last edited the body of this Comment. If not edited yet, the creator of the Comment.

Link copied to clipboard
@FilterProperty
@OrderProperty
val createdAt: OffsetDateTime

The DateTime this entity was created at.

Link copied to clipboard
@NodeRelationship(type = "CREATED_BY", direction = Direction.OUTGOING)
@FilterProperty
val createdBy: LazyLoadingDelegate<User, NodePropertyDelegate.NodeProperty>

The User who created this entity.

Link copied to clipboard
internal var fieldCache: MutableMap<String, Any?>
Link copied to clipboard
val graphQLId: ID

The unique id of this node

Link copied to clipboard
@Id
@GeneratedValue(generatorRef = "nodeIdGenerator")
internal var id: String?
Link copied to clipboard
Link copied to clipboard
internal var isSaved: Boolean
Link copied to clipboard
@NodeRelationship(type = "TIMELINE", direction = Direction.INCOMING)
@GraphQLNullable
@FilterProperty
val issue: LazyLoadingDelegate<Issue, NodePropertyDelegate.NodeProperty>

The Issue this TimelineItem is part of.

Link copied to clipboard
@FilterProperty
@OrderProperty
var lastModifiedAt: OffsetDateTime

The DateTime this entity was last modified at.

Link copied to clipboard
@NodeRelationship(type = "LAST_MODIFIED_BY", direction = Direction.OUTGOING)
@FilterProperty
val lastModifiedBy: LazyLoadingDelegate<User, NodePropertyDelegate.NodeProperty>

The User who last modified this entity.

Link copied to clipboard
@ConvertWith(converter = LazyLoadingContextConverter::class)
internal var lazyLoadingContext: LazyLoadingContext?
Link copied to clipboard
@Version
private var nodeVersion: Long

Version used for optimistic locking

Link copied to clipboard
internal var orderFields: MutableMap<String, Any?>?
Link copied to clipboard
@NodeRelationship(type = "CHILD_ITEMS", direction = Direction.INCOMING)
@FilterProperty
val parentItem: LazyLoadingDelegate<ParentTimelineItem?, NodePropertyDelegate.NodeProperty>

If existing, the parent TimelineItem

Link copied to clipboard
internal val propertyLookup: MutableMap<String, PropertyDelegate<*>>
Link copied to clipboard

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
internal suspend fun getFromGraphQL(@Autowired nodeQueryParser: NodeQueryParser, dataFetchingEnvironment: DataFetchingEnvironment): Any?
Link copied to clipboard
internal fun <T : PropertyDelegate<*>> getProperty(property: KProperty1<*, *>): T
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
internal suspend fun <T : Node?> loadNodesOfRelationship(property: KProperty1<*, *>, loader: LazyLoadingSubqueryGenerator<T>.() -> Unit?)
Link copied to clipboard
protected fun <T : Node?> NodeProperty(): PropertyDelegateProvider<Node, NodePropertyDelegate<T>>
Link copied to clipboard
protected fun <T : Node> NodeSetProperty(): PropertyDelegateProvider<Node, NodeSetPropertyDelegate<T>>
Link copied to clipboard
internal fun registerQueryResult(entry: NodeQueryEntry<*>, queryResult: Any?)
Link copied to clipboard
open override fun toString(): String