@DomainNode
abstract class BasePermission(name: String, description: String, val entries: MutableList<String>, var allUsers: Boolean) : NamedNode

Base class for all permissions

Parameters

entries

the granted permission entries as Strings, ignored in GraphQL so that concrete Permissions can expose them as their own entry enum. Those must use a different Kotlin name (e.g. GlobalPermission.graphQLEntries), as graphql-kotlin drops a property redeclared with the same name and type as an ignored supertype property.

allUsers

if true, the permission is granted to all users

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, description: String, entries: MutableList<String>, allUsers: Boolean)

Properties

Link copied to clipboard
@FilterProperty
@OrderProperty
var allUsers: Boolean

If, the permission is granted to all users. Use with caution.

Link copied to clipboard
@FilterProperty
@SearchProperty
open override var description: String

The description of this entity.

Link copied to clipboard
@SearchProperty
open val entries: MutableList<String>
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
@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 = "PERMISSION", direction = Direction.INCOMING)
@FilterProperty
val users: LazyLoadingDelegate<GropiusUser, NodeSetPropertyDelegate.NodeSetProperty>

GropiusUsers granted this Permission

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