NAME

SysSchema Module to check and clean values coming into the AURORA-system and defining metadata namespace.

SYNOPSIS

use SysSchema;

# clean value
my $email="john.doe@somedomain.top";
$email=$SysSchema::CLEAN{email}->($email);

# get metadata namespace
my $usernamelocation=$SysSchema::MD{username};

# get constant
my $setcreated=$SysSchema::C{"status.open"};

DESCRIPTION

Module to check and clean values entered into the AURORA-system, but also to get namespace locations of specific metadata that are often used in some way.

This module is used everywhere in the AURORA-system when cleaning and checking of values are needed, so that the definition of it is in one place. The only exception is AuroraDB who has its own schema-module (Schema.pm).

It also contains a constant-section.

The various data-structures in order of appearance are:

In addition to these structures, the SysSchema-module also contains a definition of sources for various Notifications. Valid definitions are: $FROM_UNKNOWN, $FROM_REST, $FROM_MAINTENANCE, $FROM_NOTIFICATION, $FROM_LOG and $FROM_STORE.

Beyond this have a look in the SysSchema-module itself for more information about what is defined within the various structures themselves.