Files
Facilitor/APPL/API2/api2_dispatch.inc
Erik Groener fb441b1705 FSN#39312 Verder ontsluiten van modellen via de API
svn path=/Website/trunk/; revision=32984
2017-02-28 15:31:59 +00:00

144 lines
7.0 KiB
PHP

<% /*
$Revision$
$Id$
File: api2_dispatch.inc
Description: Mapping tussen externe API-naam en interne bestandnaam
Notes:
Status:
*/
var api2_mapper = {
// De 'name' moet hier gelijk zijn aan model.records_name
// en die moet zo nodig eerst nog fatsoenlijk engelstalig gemaakt worden
"realestateproperties" : "appl/mgt/alg_kenmerk.asp",
"buildingfunctions" : "appl/mgt/alg_srtgebouw.asp",
"terrainfunctions" : "appl/mgt/alg_srtterreinsector.asp",
"orderdisciplines" : "appl/mgt/bes_discipline.asp",
"ordercatalogues" : "appl/mgt/bes_disciplineprod.asp",
"orderunits" : "appl/mgt/bes_grootheid.asp",
"orderlineproperties" : "appl/mgt/bes_kenmerk.asp",
"orderproperties" : "appl/mgt/bes_kenmerkbestel.asp",
"orderarticlegroups" : "appl/mgt/bes_srtgroep.asp",
"orderpropertytypes" : "appl/mgt/bes_srtkenmerk.asp",
"orderproductgroups" : "appl/mgt/bes_srtprodgroep.asp",
"pacelisttables" : "appl/mgt/bes_staffeltabel.asp",
"visitoractions" : "appl/mgt/bez_actie.asp",
"visitorproperties" : "appl/mgt/bez_kenmerk.asp",
"budget" : "appl/mgt/bgt_budget.asp",
"budgetdisciplines" : "appl/mgt/bgt_discipline.asp",
"budgetcostcategories" : "appl/mgt/bgt_kostenrubriek.asp",
"budgetprojects" : "appl/mgt/bgt_project.asp",
"graphiclabels" : "appl/mgt/cad_label.asp",
"graphiclegendas" : "appl/mgt/cad_legenda.asp",
"graphiclegendavalues" : "appl/mgt/cad_legendawaarde.asp",
"graphicthemes" : "appl/mgt/cad_thema.asp",
"contractdisciplines" : "appl/mgt/cnt_discipline.asp",
"contractproperties" : "appl/mgt/cnt_kenmerk.asp",
"contractpropertytypes" : "appl/mgt/cnt_srtkenmerk.asp",
"contractperiods" : "appl/mgt/cnt_termijn.asp",
"taskdisciplines" : "appl/mgt/ctr_discipline.asp",
"audits" : "appl/mgt/fac_audit.asp",
"xxxxxx" : "appl/mgt/fac_edit_groeprechten.asp", //?
"xxxxxx" : "appl/mgt/fac_edit_groeprechten_save.asp", //?
"emailsettings" : "appl/mgt/fac_email_setting.asp",
"exportfunctions" : "appl/mgt/fac_export_app.asp",
"authorizationfunctions" : "appl/mgt/fac_functie.asp",
"authorizationgroups" : "appl/mgt/fac_groep.asp",
"authorizations" : "appl/mgt/fac_groeprechten.asp",
"identityproviders" : "appl/mgt/fac_idp.asp",
"importfunctions" : "appl/mgt/fac_import_app.asp",
"notificationjobs" : "appl/mgt/fac_notificatiejob.asp",
"profiles" : "appl/mgt/fac_profiel.asp",
"profilevalues" : "appl/mgt/fac_profielwaarde.asp",
"notificationtypes" : "appl/mgt/fac_srtnotificatie.asp",
"customgraphs" : "appl/mgt/fac_usergraph.asp",
"customtables" : "appl/mgt/fac_usrtab.asp",
"widgets" : "appl/mgt/fac_widget.asp",
"knowledgeproperties" : "appl/mgt/faq_kenmerk.asp",
"vattables" : "appl/mgt/fin_btwtabel.asp",
"invoiceproperties" : "appl/mgt/fin_kenmerk.asp",
"xxxxxx" : "appl/mgt/fin_verkoopfactuur.asp", // klant specifiek ??
"xxxxxx" : "appl/mgt/generic_prs_perslid.asp",
"taskhandlings" : "appl/mgt/ins_controlemode.asp",
"objectdisciplines" : "appl/mgt/ins_discipline.asp",
"objectproperties" : "appl/mgt/ins_kenmerk.asp",
"recurringtasks" : "appl/mgt/ins_srtcontrole.asp",
"objectgroups" : "appl/mgt/ins_srtgroep.asp",
"objectpropertytypes" : "appl/mgt/ins_srtkenmerk.asp",
"alldisciplines" : "appl/mgt/ins_tab_discipline.asp",
"xxxxxx" : "appl/mgt/mgt_generic.asp",
"issueclosingtexts" : "appl/mgt/mld_afmeldtekst.asp",
"backofficegroups" : "appl/mgt/mld_behandelgroep.asp",
"servicelevels" : "appl/mgt/mld_dienstniveau.asp",
"issuedisciplines" : "appl/mgt/mld_discipline.asp",
"unproductivetimes" : "appl/mgt/mld_impropdr.asp",
"issueproperties" : "appl/mgt/mld_kenmerk.asp",
"expenses" : "appl/mgt/mld_kosten.asp",
"callsources" : "appl/mgt/mld_meldbron.asp",
"disciplinetypes" : "appl/mgt/mld_srtdiscipline.asp",
"issuepropertytypes" : "appl/mgt/mld_srtkenmerk.asp",
"callgroups" : "appl/mgt/mld_stdmelding_groep.asp",
"issueordertypes" : "appl/mgt/mld_typeopdr.asp",
"daysoff" : "appl/mgt/mld_vrije_dagen.asp",
"workflows" : "appl/mgt/mld_workflow.asp",
"workflowsteps" : "appl/mgt/mld_workflowstep.asp",
"workflowexpressions" : "appl/mgt/mld_workflow_expression.asp",
"pinboardcategories" : "appl/mgt/mrk_discipline.asp",
"services" : "appl/mgt/prs_dienst.asp",
"basisproperties" : "appl/mgt/prs_kenmerk.asp",
"combinationvalidation" : "appl/mgt/prs_kostencombinatie.asp",
"costtypes" : "appl/mgt/prs_kostensoort.asp",
"costtypegroups" : "appl/mgt/prs_kostensoortgrp.asp",
"persons" : "appl/mgt/prs_perslid.asp",
"relationtypes" : "appl/mgt/prs_relatietype.asp",
"employeefunctions" : "appl/mgt/prs_srtperslid.asp",
"basispacelists" : "appl/mgt/prs_staffel.asp",
"bookingactivities" : "appl/mgt/res_activiteit.asp",
"bookingconsumables" : "appl/mgt/res_artikel.asp",
"bookingcycles" : "appl/mgt/res_cyclus.asp",
"bookingitems" : "appl/mgt/res_deel.asp",
"bookingdisciplines" : "appl/mgt/res_discipline.asp",
"bookingproperties" : "appl/mgt/res_kenmerk.asp",
"bookingconfigurations" : "appl/mgt/res_opstelling.asp",
"bookingrooms" : "appl/mgt/res_ruimte.asp",
"bookingactivitytypes" : "appl/mgt/res_srtactiviteit.asp",
"bookingconsumablescopes" : "appl/mgt/res_srtartikel_onrgoed.asp",
"bookingpropertytypes" : "appl/mgt/res_srtkenmerk.asp",
"xxxxxx" : "appl/mgt/user_tables.asp",
"xxxxxx" : "appl/mgt/workflow_graph.asp",
"xxxxxx" : "appl/mgt/workflow_graph_png.asp",
"xxxxxx" : "appl/mgt/workflow_overview.asp"
}
function api2_dispatch(api2_name)
{
if (api2_name in api2_mapper)
return api2_mapper[api2_name];
if (!api2_name.match(/[^a-z0-9\_]/i)) // Safe: alleen letters, cijfer en _ in filenaam
{
var fso = Server.CreateObject("Scripting.FileSystemObject");
var fullname = "appl/api2/api_" + api2_name + ".asp"
if (fso.FileExists(Server.MapPath(fullname)))
return fullname;
}
}
// FAC_LCL('lcl_rap_expression', 'SQL expressie', 'SQL expression', 'SQL-Ausdruck', 'Expressie SQL')
%>