|
From: Walter M. <wal...@us...> - 2007-02-21 10:11:46
|
User: walterim
Date: 07/02/21 02:11:42
Modified: andromda-jsf2/src/main/resources/templates/jsf2/configuration
faces-config.xml.vsl web.xml.vsl
andromda-jsf2 pom.xml
Log:
Added security support to the crud feature.
Revision Changes Path
1.8 +7 -0 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/faces-config.xml.vsl
Index: faces-config.xml.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/faces-config.xml.vsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -r1.7 -r1.8
--- faces-config.xml.vsl 20 Feb 2007 10:14:55 -0000 1.7
+++ faces-config.xml.vsl 21 Feb 2007 10:11:41 -0000 1.8
@@ -131,6 +131,13 @@
<property-name>controllerAction</property-name>
<value>init</value>
</managed-property>
+#set ($securityEnabled = $stringUtils.isNotBlank($securityRealm) && !$manageable.users.empty )
+#if ($securityEnabled)
+ <managed-property>
+ <property-name>roles</property-name>
+ <value>$manageable.users</value>
+ </managed-property>
+#end
<managed-property>
<property-name>outcome</property-name>
<value>${manageable.viewFullPath}</value>
1.7 +4 -4 cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl
Index: web.xml.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/src/main/resources/templates/jsf2/configuration/web.xml.vsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -r1.6 -r1.7
--- web.xml.vsl 12 Feb 2007 11:00:19 -0000 1.6
+++ web.xml.vsl 21 Feb 2007 10:11:41 -0000 1.7
@@ -397,17 +397,17 @@
#foreach ($manageable in $manageables)
<security-constraint>
<web-resource-collection>
- <web-resource-name>$useCase.name resources</web-resource-name>
+ <web-resource-name>Manage ${manageable.name} resources</web-resource-name>
<description>
This collection secures all views and resources
- as well as the actions called in the "$useCase.name" use-case
+ as well as the actions called in the "Manage ${manageable.name}" use-case
</description>
- <url-pattern>${useCase.pathRoot}/*</url-pattern>
+ <url-pattern>${manageable.viewFullPath}.${jsfUtils.viewExtension}</url-pattern>
</web-resource-collection>
#if (!$manageable.users.empty)
<auth-constraint>
#foreach ($user in $manageable.users)
- <role-name>$user.name</role-name>
+ <role-name>${user.name}</role-name>
#end
</auth-constraint>
#end
1.5 +7 -0 cartridges/andromda-jsf2/pom.xml
Index: pom.xml
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-jsf2/pom.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- pom.xml 19 Dec 2006 09:16:14 -0000 1.4
+++ pom.xml 21 Feb 2007 10:11:42 -0000 1.5
@@ -24,6 +24,13 @@
<version>3.2</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.andromda.profiles.uml14</groupId>
+ <artifactId>andromda-profile</artifactId>
+ <version>3.2</version>
+ <type>xml.zip</type>
+ <scope>runtime</scope>
+ </dependency>
</dependencies>
<build>
<plugins>
|