A record represents a single data object witin Exolynk
It's unique by his uuid and combined ident & version.
A record can only be accessed when the user fullfills the following criteria:
- Has the correct base access right
- Is at least part in one of the same station
When the user has access to the record, he can view all base attributes. Base Attributes are:
- uuid
- ident
- version
- model
- released
- access_rights
- stations
The values attribute is further filtered down by the corresponding access variables of the related model.
Following variables have a fixed value typ:
- name -> Language
- description -> Language
- status -> Selection
- icon -> Icon
- highlight_color -> Color
- calendar_start -> DateTime
- calendar_end -> DateTime
- children -> Table
Methods
Set a value of this record.
Example
let record = get_record?;
record.set_value?;
assert_eq!;
Get a value of this record.
Example
let record = get_record?;
let value = record.get_value?;
assert!;
Get a variable of this record and model.
Example
let model = get_model?;
let record = get_record?;
let variable = record.get_variable?;
assert!;
Protocols
if value == b
Test two Records for partial equality.
Examples
use partial_eq;
let record = get_record?;
let other = get_record?;
assert_eq!;
other.ident = new;
assert_ne!;
value.uuid = input
Set the uuid of the record from a string
Example
let record = get_record?;
record.uuid = "00000000-0000-0000-0000-000000000000";
assert_eq!;
let output = value.name
Allows a get operation to work.
value.name = input
Allows a set operation to work.
let output = value.description
Allows a get operation to work.
value.description = input
Allows a set operation to work.
let output = value.status
Allows a get operation to work.
value.status = input
Allows a set operation to work.
let output = value.icon
Allows a get operation to work.
value.icon = input
Allows a set operation to work.
let output = value.highlight_color
Allows a get operation to work.
value.highlight_color = input
Allows a set operation to work.
let output = value.calendar_start
Allows a get operation to work.
value.calendar_start = input
Allows a set operation to work.
let output = value.calendar_end
Allows a get operation to work.
value.calendar_end = input
Allows a set operation to work.
let output = value.children
Allows a get operation to work.
value.children = input
Allows a set operation to work.
let output = value.access_right
Allows a get operation to work.
value.access_right = input
Allows a set operation to work.