FSN#1141
svn path=/Database/trunk/; revision=8907
This commit is contained in:
@@ -16,6 +16,8 @@ _FAC_MODULE('BES','Bestellingenmodule')
|
||||
** Definieer de rollen voor de RES module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
||||
** NB: Er is (nu nog) geen LAN functionaliteit, dus WEB only!
|
||||
*/
|
||||
#ifdef NO_FSN1141
|
||||
|
||||
DEF_FAC_ROL (USER||'_BES_SMALL_ROLE' ,'Bestellingen kijken');
|
||||
DEF_FAC_ROL (USER||'_BES_FULL_ROLE' ,'Bestellingen muteren');
|
||||
DEF_FAC_ROL (USER||'_BES_ARCHIVE_ROLE','Bestellingen beheren');
|
||||
@@ -57,7 +59,7 @@ SELECT USER,fac_functie_module, fac_functie_key, '1'
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_module = 'BES';
|
||||
|
||||
|
||||
#endif
|
||||
/*
|
||||
** De ENTITY_NAMES van de BES module.
|
||||
*/
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
** Bij installatie van modules moet de tabel FAC_MODULE gevuld of ge-update worden.
|
||||
*/
|
||||
_FAC_MODULE('BEZ','Bezoekersregistratie')
|
||||
|
||||
#ifdef NO_FSN1141
|
||||
/*
|
||||
** Definieer de rollen voor de RES module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
||||
** NB: Er is (nu nog) geen LAN functionaliteit, dus WEB only!
|
||||
@@ -43,6 +45,7 @@ SELECT USER,fac_functie_module, fac_functie_key, '1'
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_module = 'BEZ';
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
** De ENTITY_NAMES van de BEZ module.
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
** Bij installatie van modules moet de tabel FAC_MODULE gevuld of ge-update worden.
|
||||
*/
|
||||
_FAC_MODULE('CNT','Contractbeheer')
|
||||
|
||||
#ifdef NO_FSN1141
|
||||
/*
|
||||
** Definieer de rollen voor de CNT module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
||||
*/
|
||||
@@ -22,6 +24,9 @@ DEF_FAC_ROL (USER||'_CNT_SMALL_ROLE' ,'Contracten bekijken');
|
||||
DEF_FAC_ROL (USER||'_CNT_FULL_ROLE' ,'Contracten muteren');
|
||||
DEF_FAC_ROL (USER||'_CNT_ARCHIVE_ROLE','Contracten beheren');
|
||||
|
||||
/*
|
||||
** Voeg de functies voor de CNT module toe en geef de hoofuser toegang op all functies.
|
||||
*/
|
||||
INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
fac_gebruiker_module,
|
||||
fac_gebruiker_tabel,
|
||||
@@ -30,21 +35,7 @@ INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
SELECT USER,'FAC','FAC_ROL','FAC_ROL_KEY', fac_rol_key
|
||||
FROM fac_rol
|
||||
WHERE fac_rol_role LIKE USER||'_CNT_ARCHIVE_ROLE';
|
||||
/*
|
||||
** Voeg de functies voor de CNT module toe en geef de hoofuser toegang op all functies.
|
||||
*/
|
||||
/*
|
||||
** DEF_FAC_FUNCTIE ('CNT_FRONT' , 'Frontoffice contracten', 'CNT', 2);
|
||||
** DEF_FAC_FUNCTIE ('CNT_OPSTEL', 'Ruimte contracten' , 'CNT', 2);
|
||||
**
|
||||
** INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
** fac_gebruiker_module,
|
||||
** fac_functie_key,
|
||||
** fac_gebruiker_soort)
|
||||
** SELECT USER,fac_functie_module, fac_functie_key, '1'
|
||||
** FROM fac_functie
|
||||
** WHERE fac_functie_module = 'CNT';
|
||||
*/
|
||||
#endif
|
||||
|
||||
/*
|
||||
** De ENTITY_NAMES van de CNT module.
|
||||
|
||||
16
COMSQL.H
16
COMSQL.H
@@ -170,10 +170,10 @@ left outer join table on where
|
||||
x in (select y from deleted)
|
||||
|
||||
#define _FAC_MODULE(module,omschrijving) \
|
||||
INSERT INTO fac_module VALUES (module,'04.43',CONVERT(VARCHAR,GETDATE(),112),omschrijving, NULL);
|
||||
INSERT INTO fac_module VALUES (module,'04.49',CONVERT(VARCHAR,GETDATE(),112),omschrijving, NULL);
|
||||
|
||||
#define CREATE_TABLE(table_name, level) \
|
||||
INSERT INTO fac_privilege VALUES (UPPER(#@table_name), level)~GO~CREATE TABLE table_name
|
||||
CREATE TABLE table_name
|
||||
|
||||
#define APPLICATION_ERROR(code,text) \
|
||||
BEGIN \
|
||||
@@ -285,8 +285,7 @@ IF EXISTS (SELECT TABLE_NAME \
|
||||
AND TABLE_SCHEMA = 'dbo')~ \
|
||||
DROP VIEW dbo.view_name;~ \
|
||||
else~ \
|
||||
INSERT INTO fac_privilege VALUES (UPPER(#@view_name), level)~ \
|
||||
GO~CREATE VIEW dbo.view_name
|
||||
CREATE VIEW dbo.view_name
|
||||
|
||||
#define CREATE_TRIGGER(trigger_name) \
|
||||
IF EXISTS (SELECT name FROM sysobjects \
|
||||
@@ -753,7 +752,7 @@ CEILING
|
||||
END
|
||||
|
||||
#define CREATE_TABLE(table_name, level) \
|
||||
INSERT INTO fac_privilege VALUES (UPPER(#@table_name), level);~CREATE TABLE table_name
|
||||
CREATE TABLE table_name
|
||||
|
||||
#define _SPOOL(x) \
|
||||
SPOOL x
|
||||
@@ -781,7 +780,7 @@ INTO x
|
||||
CREATE SEQUENCE sequence_name MINVALUE minval;
|
||||
|
||||
#define CREATE_VIEW(view_name, level) \
|
||||
INSERT INTO fac_privilege VALUES (UPPER(#@view_name), level);~CREATE OR REPLACE FORCE VIEW view_name
|
||||
CREATE OR REPLACE FORCE VIEW view_name
|
||||
|
||||
#define CREATE_TRIGGER(trigger_name) \
|
||||
CREATE OR REPLACE TRIGGER trigger_name
|
||||
@@ -1091,7 +1090,7 @@ ELSE
|
||||
ELSIF
|
||||
|
||||
#define _FAC_MODULE(module,omschrijving) \
|
||||
INSERT INTO fac_module VALUES (module,'04.44',TO_CHAR(SYSDATE,'YYYYMMDD'),omschrijving, NULL);
|
||||
INSERT INTO fac_module VALUES (module,'04.49',TO_CHAR(SYSDATE,'YYYYMMDD'),omschrijving, NULL);
|
||||
|
||||
#define APPLICATION_ERROR(code,text) raise_application_error(code, text)
|
||||
|
||||
@@ -1422,6 +1421,8 @@ _MSSQL( _EXEC1( fac_p_fac_save_restore.ResetSelectie, TableName) ); \
|
||||
_ORACLE(Dummy := fac_p_fac_save_restore.ResetSelectie(TableName)); \
|
||||
_ORACLE(END)
|
||||
|
||||
#ifdef NO_FSN1141
|
||||
|
||||
#define DEFINE_MODULE_ROLES(module, modnr) \
|
||||
SELECT 'CREATE ROLE '||USER||'_'||module||'_SMALL_ROLE;' FROM dual; \
|
||||
~SELECT 'CREATE ROLE '||USER||'_'||module||'_FULL_ROLE;' FROM dual; \
|
||||
@@ -1460,6 +1461,7 @@ _ORACLE(END)
|
||||
~SELECT 'UPDATE fac_module SET fac_module_extern=1 WHERE fac_module_name='''||module||''';' FROM dual; \
|
||||
~PROMPT commit;
|
||||
|
||||
#endif
|
||||
|
||||
/* Macros voor het vullen van de INS bibliotheek in INS_DATA.SRC */
|
||||
#define DEF_DISCIPLINE(ldis)\
|
||||
|
||||
@@ -21,6 +21,8 @@ _FAC_MODULE('FAC','Facilitor (R)')
|
||||
_FAC_MODULE('RAP','Rapport')
|
||||
#endif // RAP
|
||||
|
||||
#ifdef NO_FSN1141
|
||||
|
||||
-- Welke rollen kennen we voor de gebruikers van deze user?
|
||||
|
||||
/* nodig of niet?
|
||||
@@ -74,6 +76,7 @@ INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
SELECT USER,'FAC','FAC_ROL','FAC_ROL_KEY', fac_rol_key
|
||||
FROM fac_rol
|
||||
WHERE fac_rol_role LIKE USER||'_%_ARCHIVE_ROLE';
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Hieronder worden alle ondersteunde autorisaties genoemd
|
||||
|
||||
7
FCLT.SRC
7
FCLT.SRC
@@ -7,6 +7,11 @@
|
||||
/*
|
||||
* $History: FCLT.SRC $
|
||||
*
|
||||
* ***************** Version 48 *****************
|
||||
* User: Pf Date: 22-02-05 Time: 14:34
|
||||
* Updated in $/Facilitor/SRC/SQL
|
||||
* FSN#1141
|
||||
*
|
||||
* ***************** Version 47 *****************
|
||||
* User: Jgl Date: 9-11-04 Time: 14:43
|
||||
* Updated in $/Facilitor/SRC/SQL
|
||||
@@ -216,6 +221,7 @@ COMMIT;
|
||||
/* DIVERSEN */
|
||||
[skip]
|
||||
#ifndef MS_SQL
|
||||
#ifdef NO_FSN1141
|
||||
|
||||
#include "cad/cad_rol.src" /* ROLEs en GRANTs (hierin wordt ook geSPOOLed!) */
|
||||
#include "fac/fac_rol.src" /* ROLEs en GRANTs (hierin wordt ook geSPOOLed!) */
|
||||
@@ -229,6 +235,7 @@ COMMIT;
|
||||
#include "sch/sch_rol.src" /* ROLEs en GRANTs (hierin wordt ook geSPOOLed!) */
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
[/skip]
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
#ifdef INS
|
||||
|
||||
/* $History: INS_TAB.SRC $
|
||||
*
|
||||
* ***************** Version 51 *****************
|
||||
* User: Pf Date: 22-02-05 Time: 14:31
|
||||
* Updated in $/Facilitor/SRC/SQL/INS
|
||||
* FSN#1141
|
||||
*
|
||||
* ***************** Version 50 *****************
|
||||
* User: Pf Date: 22-02-05 Time: 13:03
|
||||
@@ -131,7 +136,7 @@ CREATE_TABLE(ins_tab_discipline,INS_BIBLIOTHEEK_PRIVILEGE)
|
||||
);
|
||||
|
||||
ALTER TABLE fac_groeprechten
|
||||
ADD CONSTRAINT fac_r_groeprechten_disc ins_discipline_key
|
||||
ADD CONSTRAINT fac_r_groeprechten_disc (ins_discipline_key)
|
||||
REFERENCES ins_tab_discipline(ins_discipline_key) ON DELETE CASCADE;
|
||||
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
** Bij installatie van modules moet de tabel FAC_MODULE gevuld of ge-update worden.
|
||||
*/
|
||||
_FAC_MODULE('PRJ','Projecten')
|
||||
#ifdef NO_FSN1141
|
||||
|
||||
/*
|
||||
** Definieer de rollen voor de PRJ module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
||||
*/
|
||||
@@ -41,6 +43,8 @@ INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
SELECT USER,fac_functie_module, fac_functie_key, '1'
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_module = 'PRJ';
|
||||
#endif
|
||||
|
||||
/*
|
||||
** De ENTITY_NAMES van de PRJ module.
|
||||
*/
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
** Bij installatie van modules moet de tabel FAC_MODULE gevuld of ge-update worden.
|
||||
*/
|
||||
_FAC_MODULE('RES','Reserveringsmodule')
|
||||
#ifdef NO_FSN1141
|
||||
|
||||
/*
|
||||
** Definieer de rollen voor de RES module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
||||
*/
|
||||
@@ -31,6 +33,7 @@ INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
SELECT USER,'FAC','FAC_ROL','FAC_ROL_KEY', fac_rol_key
|
||||
FROM fac_rol
|
||||
WHERE fac_rol_role LIKE USER||'_RES_ARCHIVE_ROLE';
|
||||
#endif
|
||||
/*
|
||||
** Voeg de functies voor de RES module toe en geef de hoofuser toegang op all functies.
|
||||
*/
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
_FAC_MODULE('WEB','Facilitor Webserver')
|
||||
|
||||
#ifdef NO_FSN1141
|
||||
/*
|
||||
** Definieer de rollen voor de WEB module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
||||
*/
|
||||
@@ -31,6 +32,7 @@ INSERT INTO fac_gebruiker (fac_gebruiker_username,
|
||||
SELECT USER,'FAC','FAC_ROL','FAC_ROL_KEY', fac_rol_key
|
||||
FROM fac_rol
|
||||
WHERE fac_rol_role LIKE USER||'_WEB_ROLE';
|
||||
#endif
|
||||
/*
|
||||
** Voeg de functies voor de WEB module toe en geef de hoofuser toegang op all functies.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user