Package-level declarations

Types

Link copied to clipboard
typealias Atts = Map<String, Any?>

A Map of key values.

Link copied to clipboard
data class AttType(val type: String, val typeKeyword: String = "attributeType") : HasAttsI

Provides a definition of a "Type" attribute which is a common attribute required for subjects, actions and resources.

Link copied to clipboard
open class HasAtts(attType: AttType? = null) : HasAttsI

A base implementation of HasAttsI. Will build attributes using attsOf.

Link copied to clipboard
interface HasAttsI

Something that has Atts

Link copied to clipboard

Wraps a set of Atts in a HasAttsI

Functions

Link copied to clipboard
fun attsOf(thing: Any): Atts

A helper that that will use reflection to convert the properties of an instance to Atts.

Link copied to clipboard
fun HasAttsI.withAtts(vararg additionalAttributes: Pair<String, Any?>): Atts

Lets as us merge the attributes of something that HasAttsI with additional attributes.