Files
Facilitor/APPL/API2/model_aut_idp_map.inc
Jos Groot Lipman 06cefb3af5 DJIN#36213 SAML/Authenticatie verbeteringen. Hernoemen fac_idp naar aut_idp
svn path=/Website/trunk/; revision=33445
2017-04-10 13:08:34 +00:00

96 lines
3.1 KiB
PHP

<% /*
$Revision$
$Id$
File: model_aut_idp_map.inc
Description:
Notes:
*/
function model_aut_idp_map(params)
{
params = params || {};
this.records_name = "idpmappings";
this.record_name = "idpmapping";
this.table = "aut_idp_map";
this.primary = "aut_idp_map_key";
this.autfunction = params.internal?false:"WEB_FACTAB";
this.record_title = L("aut_idp_map");
this.records_title = L("aut_idp_map_m");
this.fields = {
"id": {
"dbs": "aut_idp_map_key",
"label": L("lcl_key"),
"typ": "key",
"seq": "aut_s_aut_idp_map_key"
},
"identityprovider": {
"dbs": "aut_idp_key",
"label": L("aut_idp"),
"typ": "key",
"hidden_fld": true,
"required": true
},
"identify": {
"dbs": "aut_idp_map_identify",
"label": L("aut_idp_map_identify"),
"typ": "check0"
},
"name": { // Wel een beetje afwijkend, een name veld die een LOV is....
"dbs": "aut_idp_map_to",
"label": L("aut_idp_map_to"),
"typ": "key",
"required": true,
"LOV": "1;" + L("lcl_prs_person_login")
+ ";2;" + L("lcl_prs_person_achternaam")
+ ";3;" + L("lcl_prs_person_name")
+ ";4;" + L("lcl_prs_person_email")
+ ";5;" + L("lcl_prs_organisatie")
+ ";6;" + L("lcl_account") // te overwegen of 5;organisatie niet genoeg is
+ ";7;" + L("lcl_prs_person_function")
// ";99;prs_perslid_key" gereserveerd voor intern gebruik
+ ";100;*" + L("lcl_workplace")
+ ";101;*" + L("fac_groep_m")
// 1000 + kenmerk_key komt hier nog achter
},
"from": {
"dbs": "aut_idp_map_from",
"label": L("aut_idp_map_from"),
"typ": "varchar",
"required": true
},
"default": {
"dbs": "aut_idp_map_default",
"label": L("aut_idp_map_default"),
"typ": "varchar"
}
}
// Flexkenmerken er ook bij
var sql = "SELECT *"
+ " FROM prs_kenmerk"
+ " WHERE prs_kenmerk_niveau = 'P'"
+ " AND prs_kenmerk_verwijder IS NULL"
+ " ORDER BY prs_kenmerk_volgnr";
var oRs = Oracle.Execute(sql);
while (!oRs.Eof)
{
this.fields.name.LOV += ";" + String(1000 + oRs("prs_kenmerk_key").Value + ";" + L("mgt_kenmerk") + " " + safe.html(oRs("prs_kenmerk_omschrijving").Value));
oRs.MoveNext();
}
oRs.Close();
this.edit = {
"modal": true
};
this.list = {
"columns": ["identify", "name", "from", "default"]
};
this.REST_GET = generic_REST_GET(this);
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
}
%>