From 5f129c98fc8d1d618d984df9fab4562d1fc51347 Mon Sep 17 00:00:00 2001 From: sb Date: Fri, 6 Feb 2009 17:48:58 +0000 Subject: [PATCH] Still struggline with getting everything working with database layer security. --- transforms/adl2controllerclasses.xslt | 67 ++++++-- transforms/adl2mssql.xslt | 19 +-- transforms/adl2views.xslt | 226 ++++++++++++++++---------- transforms/permissions-include.xslt | 36 +++- 4 files changed, 233 insertions(+), 115 deletions(-) diff --git a/transforms/adl2controllerclasses.xslt b/transforms/adl2controllerclasses.xslt index f17738c..e29f699 100755 --- a/transforms/adl2controllerclasses.xslt +++ b/transforms/adl2controllerclasses.xslt @@ -9,8 +9,8 @@ Transform ADL into (partial) controller classes $Author: sb $ - $Revision: 1.26 $ - $Date: 2009-02-06 12:08:28 $ + $Revision: 1.27 $ + $Date: 2009-02-06 17:48:58 $ --> @@ -112,7 +112,7 @@ -- -- -- Database for application version - -- Generated for MS-SQL 2000+ using adl2mssql.xslt + -- Generated for MS-SQL 2000+ using adl2mssql.xslt -- THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT IT. -- -- @@ -161,21 +161,6 @@ execute sp_addrole @rolename = '' GO - - ------------------------------------------------------------------------------------------------- - -- dummy table accessible only to members of , to allow - -- a hard check on group membership - ------------------------------------------------------------------------------------------------- - CREATE TABLE "" ( - "Check" INT NOT NULL, - PRIMARY KEY( "Check") - ) - GO - - REVOKE ALL ON "" FROM public - GO - GRANT SELECT ON "" TO "" - GO diff --git a/transforms/adl2views.xslt b/transforms/adl2views.xslt index 19a984c..5965604 100755 --- a/transforms/adl2views.xslt +++ b/transforms/adl2views.xslt @@ -15,8 +15,8 @@ Transform ADL into velocity view templates $Author: sb $ - $Revision: 1.25 $ - $Date: 2009-02-06 12:08:28 $ + $Revision: 1.26 $ + $Date: 2009-02-06 17:48:58 $ --> @@ -65,7 +65,7 @@ - + @@ -124,7 +124,7 @@ Auto generated Velocity maybe-delete form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt @@ -161,7 +161,7 @@ Auto generated Velocity maybe-delete form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt @@ -244,7 +244,7 @@ Auto generated Velocity form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt Generation parameters were: locale: generate-site-navigation: @@ -320,7 +320,7 @@ Auto generated Velocity form for , generated from ADL. - Generated using adl2views.xsl + Generated using adl2views.xsl Generation parameters were: locale: generate-site-navigation: @@ -429,28 +429,31 @@ - - - - - - - - - - - + + + - #if ( ${SecurityHelper.InGroup( "")} || ) + #if ( ${SecurityHelper.InGroup( "")} || false) + + #end + + + + + + + #if ( ${SecurityHelper.InGroup( "")} || false) #end + @@ -460,6 +463,19 @@ + + + + + + + + + + + + + @@ -690,56 +706,30 @@ ")} - - - - - - - - #if ( ${SecurityHelper.InGroup( "")} || ) - - - - - - - - - -
- ${ShuffleWidgetHelper.UnselectedOptions( "", , $instance.)} - - - - - - - - - - - - - - - - - - - - ${ShuffleWidgetHelper.SelectedOptions( "", $instance., )} -
- - - - - -
- #else - [Not authrised] - #end + + + + + + + + + + #if ( ${SecurityHelper.InGroup( "")} || false) + + + + #else + [Not authorised] + #end + + + + + + + + @@ -755,6 +745,48 @@
+ + + + + + + + + + + +
+ ${ShuffleWidgetHelper.UnselectedOptions( "", , $instance.)} + + + + + + + + + + + + + + + + + + + + ${ShuffleWidgetHelper.SelectedOptions( "", $instance., )} +
+ + + + + +
+
+ - #if ( ${SecurityHelper.InGroup( "")} || ) + #if ( ${SecurityHelper.InGroup( "")} || false) @@ -814,7 +846,7 @@ #else - #if ( ${SecurityHelper.InGroup( "")} || ) + #if ( ${SecurityHelper.InGroup( "")} || false) @@ -822,7 +854,7 @@ #else - #if ( ${SecurityHelper.InGroup( "")} || ) + #if ( ${SecurityHelper.InGroup( "")} || false) @@ -839,7 +871,7 @@ #end - + @@ -868,7 +900,7 @@ Auto generated Velocity list for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt Generation parameters were: locale: generate-site-navigation: @@ -931,7 +963,7 @@ Auto generated Velocity list for , generated from ADL. - Generated using adl2listview.xsl + Generated using adl2listview.xsl Generation parameters were: locale: generate-site-navigation: @@ -1096,9 +1128,9 @@ - + - #if ( ${SecurityHelper.InGroup( "")} || ) + #if ( ${SecurityHelper.InGroup( "")} || false) @@ -1295,14 +1327,30 @@ - + - #if ( ${SecurityHelper.InGroup( "")} || ) + #if ( ${SecurityHelper.InGroup( "")} || false) + + + + + + + + #if ( ${SecurityHelper.InGroup( "")} || false) + + + #else + [Not authorised] + #end + #else [Not authorised] #end @@ -1545,6 +1593,20 @@ + + + + + + + + + #if ( ${SecurityHelper.InGroup( "")} || false) + ${ "", "%{class='',title='',size='',maxlength='',rows='',href=''}")} + #else + [Not authorised] + #end + ${ "", "%{class='',title='',size='',maxlength='',rows='',href=''}")} @@ -1661,8 +1723,8 @@ - - #if ( ${SecurityHelper.InGroup( "")} || ) + + #if ( ${SecurityHelper.InGroup( "")} || false)