@DomainNode(searchQueryName = "searchLabels")
@Authorization(name = "READ", allowFromRelated = ["trackables", "addedEvents", "removedEvents"])
@Authorization(name = "MANAGE_LABELS", allowFromRelated = ["trackables"])
@Authorization(name = "EXPORT_LABELS", allowFromRelated = ["trackables"])
class Label(createdAt: OffsetDateTime, lastModifiedAt: OffsetDateTime, name: String, description: String, var color: String) : NamedAuditedNode

Label used to mark Issues with. A Label consists of a name, a description and a color. Issues may be synced to all IMSProjects of Trackables they are part of. READ is granted if READ is granted on any Trackable in `trackables`.

Constructors

Link copied to clipboard
constructor(createdAt: OffsetDateTime, lastModifiedAt: OffsetDateTime, name: String, description: String, color: String)

Properties

Link copied to clipboard
@NodeRelationship(type = "ADDED_LABEL", direction = Direction.INCOMING)
val addedEvents: LazyLoadingDelegate<AddedLabelEvent, NodeSetPropertyDelegate.NodeSetProperty>
Link copied to clipboard
@FilterProperty
@OrderProperty
var color: String

The color of the Label, used to display the Label.

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
@FilterProperty
@SearchProperty
open override var description: String

The description of 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 = "LABEL", direction = Direction.INCOMING)
@FilterProperty
val issues: LazyLoadingDelegate<Issue, NodeSetPropertyDelegate.NodeSetProperty>

Issues which currently have this Label.

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
@FilterProperty
@OrderProperty
@SearchProperty
open override var name: String

The name of this entity.

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
internal val propertyLookup: MutableMap<String, PropertyDelegate<*>>
Link copied to clipboard
Link copied to clipboard
@NodeRelationship(type = "REMOVED_LABEL", direction = Direction.INCOMING)
val removedEvents: LazyLoadingDelegate<RemovedLabelEvent, NodeSetPropertyDelegate.NodeSetProperty>
Link copied to clipboard
@NodeRelationship(type = "LABEL", direction = Direction.INCOMING)
@FilterProperty
val trackables: LazyLoadingDelegate<Trackable, NodeSetPropertyDelegate.NodeSetProperty>

Trackables this Label is part of.

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