You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
From: Vance K. <va...@us...> - 2006-02-24 06:07:03
|
User: vancek Date: 06/02/23 22:06:56 Modified: andromda-ejb3/src/site/xdoc howto1.xml Log: added insertable and updatable sections Revision Changes Path 1.4 +20 -0 cartridges/andromda-ejb3/src/site/xdoc/howto1.xml Index: howto1.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto1.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- howto1.xml 8 Feb 2006 10:19:38 -0000 1.3 +++ howto1.xml 24 Feb 2006 06:06:56 -0000 1.4 @@ -218,6 +218,26 @@ <code>@javax.persistence.Transient</code> annotation to the attribute. </p> </subsection> + <a name="Insertable_Attribute"/> + <subsection name="Insertable Attribute"> + <p> + To include the mapped column in the SQL insert statement, you set the <code>insertable</code> + property on the <code>@Column</code> annotation which is done by modelling the + <code>@andromda.persistence.column.insert</code> on the attribute. By default, this is set to + true, so it only needs to be specified if you want the column to be initialised using the + database default value. + </p> + </subsection> + <a name="Updatable_Attribute"/> + <subsection name="Updatable Attribute"> + <p> + To include the mapped column in the SQL update statement, you set the <code>updatable</code> + property on the <code>@Column</code> annotation which is done by modelling the + <code>@andromda.persistence.column.update</code> on the attribute. By default, this is set to + true, so it only needs to be specified if you want the column to be updated using by the + database automatically. + </p> + </subsection> <a name="Version_Attribute"/> <subsection name="Version Attribute"> <p> |
From: Vance K. <va...@us...> - 2006-02-24 06:06:01
|
User: vancek Date: 06/02/23 22:05:52 Modified: andromda-ejb3/src/site/xdoc howto.xml Log: added inheritance table Revision Changes Path 1.3 +14 -0 cartridges/andromda-ejb3/src/site/xdoc/howto.xml Index: howto.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- howto.xml 23 Feb 2006 08:22:55 -0000 1.2 +++ howto.xml 24 Feb 2006 06:05:49 -0000 1.3 @@ -33,6 +33,8 @@ <li><a href="howto1.html#Unique_Attributes">Unique Attributes</a></li> <li><a href="howto1.html#Attribute_Fetch_Type">Attribute Fetch Type</a></li> <li><a href="howto1.html#Transient_Attribute">Transient Attribute</a></li> + <li><a href="howto1.html#Insertable_Attribute">Insertable Attribute</a></li> + <li><a href="howto1.html#Updatable_Attribute">Updatable Attribute</a></li> <li><a href="howto1.html#Version_Attribute">Version Attribute</a></li> <li><a href="howto1.html#Attribute_Multiplicity">Attribute Multiplicity</a></li> <li><a href="howto1.html#Constant_Attribute">Constant Attribute</a></li> @@ -88,6 +90,18 @@ <li><a href="howto8.html#Modelling">Modelling</a></li> </ul> </li> + <li> + <a href="howto9.html">Inheritance</a> + <ul> + <li><a href="howto9.html#Mapped_Superclasses">Mapped Superclass</a></li> + <li><a href="howto9.html#Single_Table_Strategy">Single Table Strategy</a></li> + <li><a href="howto9.html#Discriminator_Components">Discriminator Components</a></li> + <li><a href="howto9.html#Table_Per_Class_Strategy">Table Per Class Strategy</a></li> + <li><a href="howto9.html#Table_Join_Strategy">Table Join Strategy</a></li> + <li><a href="howto9.html#Generic_Finder_Methods">Generic Finder Methods</a></li> + <li><a href="howto9.html#Helpful_Hints">Helpful Hints</a></li> + </ul> + </li> </ul> </p> <p> |
From: Vance K. <va...@us...> - 2006-02-24 06:04:25
|
User: vancek Date: 06/02/23 22:04:22 Added: andromda-ejb3/src/site/resources/images/org/andromda/test/9/b uml.gif andromda-ejb3/src/site/resources/images/org/andromda/test/9/a uml.gif Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/9/b/uml.gif <<Binary file>> 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/9/a/uml.gif <<Binary file>> |
From: Vance K. <va...@us...> - 2006-02-24 06:04:09
|
User: vancek Date: 06/02/23 22:03:58 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/9/b - New directory |
From: Vance K. <va...@us...> - 2006-02-24 06:04:08
|
User: vancek Date: 06/02/23 22:03:48 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/9 - New directory |
From: Vance K. <va...@us...> - 2006-02-24 06:04:07
|
User: vancek Date: 06/02/23 22:03:58 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/9/a - New directory |
From: Vance K. <va...@us...> - 2006-02-23 08:38:59
|
User: vancek Date: 06/02/23 00:38:10 Modified: andromda-ejb3/src/site/xdoc howto8.xml Log: added schema table ddl for principal and role Revision Changes Path 1.2 +23 -2 cartridges/andromda-ejb3/src/site/xdoc/howto8.xml Index: howto8.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto8.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto8.xml 23 Feb 2006 08:24:52 -0000 1.1 +++ howto8.xml 23 Feb 2006 08:38:09 -0000 1.2 @@ -25,7 +25,7 @@ </p> <p> Once you have done that, the cartridge will create the login-config deploy descriptor - for JBoss. It's contents between the <code>policy</code> elemtns should be copied to the + for JBoss. It's contents between the <code>policy</code> elements should be copied to the JBoss server container 'conf' folder login-config.xml. The file will look like: <source language="xml"><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> @@ -69,7 +69,7 @@ You will need this file if you are outside of the server JVM to be able to authenticate your credentials. This file needs to be in your classpath when you run your external client. -<source language="xml"><![CDATA[ +<source><![CDATA[ howtomodel { // jBoss LoginModule org.jboss.security.ClientLoginModule required @@ -81,6 +81,27 @@ System.setProperty("java.security.auth.login.config", "./auth.conf"); ]]></source> </p> + <p> + Remember that you will need to create your table schema corresponding to the authentication + policy defined in login-config.xml. The DDL would look something like the following if you + were using MySQL: +<source><![CDATA[ +create table principal +( +PRINCIPAL_ID varchar(64) not null default '', +PASSWORD varchar(64) default NULL, +PRIMARY KEY(PRINCIPAL_ID) +); + +create table role +( +PRINCIPAL_ID varchar(64) not null default '', +ROLE varchar(64) default NULL, ROLE_GROUP varchar(64) default NULL, +PRIMARY KEY(PRINCIPAL_ID) +); +]]></source> + + </p> </subsection> <a name="Modelling"/> <subsection name="Modelling"> |
From: Vance K. <va...@us...> - 2006-02-23 08:25:35
|
User: vancek Date: 06/02/23 00:25:34 Modified: andromda-ejb3/src/site site.xml Log: added manageable entities to menu and renamed some items Revision Changes Path 1.3 +3 -2 cartridges/andromda-ejb3/src/site/site.xml Index: site.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/site.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -w -r1.2 -r1.3 --- site.xml 6 Feb 2006 04:15:54 -0000 1.2 +++ site.xml 23 Feb 2006 08:25:34 -0000 1.3 @@ -17,9 +17,9 @@ </menu> <menu name="How-to"> <item name="Introduction" href="howto.html"/> - <item name="Entities" href="howto1.html"/> + <item name="Entity POJOs" href="howto1.html"/> <item name="Relationships" href="howto2.html"/> - <item name="Services" href="howto3.html"/> + <item name="Service Beans" href="howto3.html"/> <item name="Composite Primary Key" href="howto4.html"/> <item name="Enumerations" href="howto5.html"/> <item name="Queries" href="howto6.html"/> @@ -32,6 +32,7 @@ <item name="Interceptors" href="howto13.html"/> <item name="Listener Callback" href="howto14.html"/> <item name="Transactions" href="howto15.html"/> + <item name="Manageable Entities" href="howto16.html"/> <item name="Tips & Tricks" href="tips.html"/> </menu> </body> |
From: Vance K. <va...@us...> - 2006-02-23 08:24:53
|
User: vancek Date: 06/02/23 00:24:53 Added: andromda-ejb3/src/site/xdoc howto8.xml Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/xdoc/howto8.xml Index: howto8.xml =================================================================== <?xml version="1.0" encoding="iso-8859-1"?> <document> <properties> <author email="va...@us...">Vance Karimi</author> <title>AndroMDA - EJB3 - HowTo Security</title> </properties> <body> <section name="Declarative Security"> <p> The JAAS security framework, in JBoss (JBossSX) or other EJB containers provides authentication and authorization for components in EJB 3.0 applications. The EJB3 cartridge supports declarative role based security for this security framework. </p> <p> Currently, the EJB3 cartridge uses metadata annotations to declare security related information. It would just as easy to swap this information to the deployment descriptor to setup the security policies. </p> <a name="Configuration"/> <subsection name="Configuration"> <p> Enabling security for the EJB3 cartridge is similar to the EJB cartridge. Just set the <a href="namespace.html#securityRealm">securityRealm</a> property from your AndroMDA build configuration. </p> <p> Once you have done that, the cartridge will create the login-config deploy descriptor for JBoss. It's contents between the <code>policy</code> elemtns should be copied to the JBoss server container 'conf' folder login-config.xml. The file will look like: <source language="xml"><![CDATA[ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policy PUBLIC "-//JBoss//DTD JBOSS Security Config 3.0//EN" "http://www.jboss.org/j2ee/dtd/security_config.dtd"> <policy> <application-policy name="howtomodel"> <authentication> <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required"> <module-option name="debug">true</module-option> <module-option name="unauthenticatedIdentity">guest</module-option> <module-option name="dsJndiName">java:/jdbc/howtomodelDS</module-option> <module-option name="principalsQuery"> SELECT PASSWORD 'Password' FROM principal WHERE BINARY PRINCIPAL_ID =? </module-option> <module-option name="rolesQuery"> SELECT ROLE 'Roles', ROLE_GROUP 'RoleGroups' FROM role WHERE BINARY PRINCIPAL_ID =? </module-option> <module-option name="hashAlgorithm">MD5</module-option> <module-option name="hashEncoding">BASE64</module-option> </login-module> </authentication> </application-policy> </policy> ]]></source> </p> <p> This file will typically be created in <i>your project/app/src/main/config</i> folder. Once you have copied it's contents over to your JBoss conf login-config.xml, you must restart JBoss for the new security policy to take effect. </p> <p> This file is generated the first time the security realm is enabled. It will not be overridden. You can modify this file for example to not have the queries check for case sensitivity by removing the <b>BINARY</b> in the <i>where</i> clauses. </p> <p> The cartridge will also create an <code>auth.conf</code> file in <i>./app/src/main/config</i>. You will need this file if you are outside of the server JVM to be able to authenticate your credentials. This file needs to be in your classpath when you run your external client. <source language="xml"><![CDATA[ howtomodel { // jBoss LoginModule org.jboss.security.ClientLoginModule required ; }; ]]></source> You can use something like so to locate your auth.conf file from the your standalone client. <source><![CDATA[ System.setProperty("java.security.auth.login.config", "./auth.conf"); ]]></source> </p> </subsection> <a name="Modelling"/> <subsection name="Modelling"> <p> Now you have to define some roles for your application. This is simply done by adding actors to your model named with the role's name. </p> <p> <img src="images/org/andromda/test/8/a/uml.gif"/> </p> <p> The next thing to do is to draw a dependency from a logical role actor to a <![CDATA[<<Service>>]]> and/or to one or more methods of the service. Making the whole service dependent on an actor grants the role access to all service operations. To grant access to single operation(s) draw the dependency from the actor to the operations(s). </p> <p> Defining security roles is purely optional. If no roles have been specified, then the bean operations do not pass any security instructions. </p> <p> <img src="images/org/andromda/test/8/b/uml.gif"/> </p> <p> <ul> <li class="gen">Auto-generated source that does not need manual editing</li> <li class="impl">Auto-generated source that should be edited manually</li> <li class="changed">File that is affected by the modifications applied in this section</li> </ul> </p> <p> <ul> <li class="gen"><a href="src/org/andromda/test/howto8/a/CarEmbeddable.java.txt"><code>CarEmbeddable.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto8/a/Car.java.txt"><code>Car.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto8/a/CarType.java.txt"><code>CarType.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto8/a/PersonEmbeddable.java.txt"><code>PersonEmbeddable.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto8/a/Person.java.txt"><code>Person.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/ServiceLocator.java.txt"><code>ServiceLocator.java</code></a></li> <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/a/RentalServiceBean.java.txt"><code>RentalServiceBean.java</code></a></li> <li class="gen"><a class="changed" href="src/org/andromda/test/howto8/a/RentalServiceRemote.java.txt"><code>RentalServiceRemote.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto8/a/RentalServiceDelegate.java.txt"><code>RentalServiceDelegate.java</code></a></li> <li class="impl"><a href="src/org/andromda/test/howto8/a/RentalServiceBeanImpl.java.txt"><code>RentalServiceBeanImpl.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto8/a/RentalServiceException.java.txt"><code>RentalServiceException.java</code></a></li> <li class="gen"><a href="src/org/andromda/test/howto8/a/RentalException.java.txt"><code>RentalException.java</code></a></li> </ul> </p> <p> Take a look at the <code>RentalServiceBean</code> class. You will notice a <code>RolesAllowed</code> annotation at the top level of the class as well as on each operation of the service bean. The <code>RolesAllowed</code> annotation is a list of security role names mapped to security roles allowed to execute the annotated method or all methods if specifies at the class level. </p> <p> The EJB3 cartridge provides a couple of extra security related tagged values. The <code>@andromda.service.security.denyAll</code> tagged value which can be assigned on a session bean operation specifies that no roles are permitted to execute that operation. If modelled on the session bean class and set to true, then no roles are permitted to execute all of the operations in that session bean. This tag overrides any roles specified using actor dependencies. </p> <p> Inversely, the <code>@andromda.service.security.permitAll</code> tagged value, if set to true on a session bean operation, implies that all roles are permitted to execute that operation. If modelled on the session bean class and set to true, then all roles are permitted to execute all opeations in that session bean. This tag overrides any roles specified usin actor dependencies. </p> <p> In any of the cases above, method permissions that have been specified on a method of a bean will override the method permission value specified on the class itself. </p> <p> To specify the <code>RunAs</code> metadata annotation and explicity specify the caller's security identity used for the execution of the bean method, you simply need to model the <![CDATA[<<RunAs>>]]> stereotype on the actor role. This will imply the identity of the actor applies a run-as identity to the bean when making calls. The actor's name or corresponding <code>@andromda.role.name</code> tagged value contains the logical role name. The run-as identity is only applicable to actor-bean dependency. It cannot be applied to bean operations. The run-as idendity is particularly useful for message driven beans where the security identity for the execution of the <code>onMessage</code> callback needs to be set. </p> </subsection> </section> <section name="Next"> <p> We cover entity inheritance in the following section so click <a href="howto9.html">here</a> to go to that section. </p> </section> </body> </document> |
From: Vance K. <va...@us...> - 2006-02-23 08:24:33
|
User: vancek Date: 06/02/23 00:24:29 Modified: andromda-ejb3/src/site/xdoc howto7.xml Log: default exception is created ! Revision Changes Path 1.2 +5 -4 cartridges/andromda-ejb3/src/site/xdoc/howto7.xml Index: howto7.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto7.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto7.xml 20 Feb 2006 08:37:59 -0000 1.1 +++ howto7.xml 23 Feb 2006 08:24:29 -0000 1.2 @@ -16,10 +16,11 @@ for this to work). </p> <p> - By default NO exceptions will be generated for any service, unless an entity has the - <![CDATA[<<Manageable>>]]> stereotype. Please refer to - <a href="howto16.html">Manageable Entities</a> for more information on manageable - service exceptions. + A default exception will be generated for all services since the + <code>allowDefaultServiceException</code> namespace property is set to <code>true</code> by + default. A set of default crud exceptions will also be generated and used in manageable service + beans for manageable entities. Please refer to <a href="howto16.html">Manageable Entities</a> + for more information on manageable service exceptions. </p> <p class="highlight"> EJB3 entities no longer throw exceptions. Following the session facade pattern, all business |
From: Vance K. <va...@us...> - 2006-02-23 08:22:57
|
User: vancek Date: 06/02/23 00:22:55 Modified: andromda-ejb3/src/site/xdoc howto.xml Log: added composite pk table and security table Revision Changes Path 1.2 +14 -2 cartridges/andromda-ejb3/src/site/xdoc/howto.xml Index: howto.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/site/xdoc/howto.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- howto.xml 6 Feb 2006 04:17:23 -0000 1.1 +++ howto.xml 23 Feb 2006 08:22:55 -0000 1.2 @@ -72,10 +72,22 @@ </ul> </li> <li><a href="howto4.html">Composite Primary Key</a></li> - <li><a href="howto5.html">Non-Persistent Enumerations</a></li> + <li> + <a href="howto5.html">Non-Persistent Type-Safe Enumerations</a> + <ul> + <li><a href="howto5.html#Literals">Literals</a></li> + <li><a href="howto5.html#Enumeration_Types">Enumeration Types</a></li> + </ul> + </li> <li><a href="howto6.html">OCL to Query generator (finder methods)</a></li> <li><a href="howto7.html">Exception Handling</a></li> - <li><a href="howto8.html">Security</a></li> + <li> + <a href="howto8.html">Security</a> + <ul> + <li><a href="howto8.html#Configuration">Configuration</a></li> + <li><a href="howto8.html#Modelling">Modelling</a></li> + </ul> + </li> </ul> </p> <p> |
From: Vance K. <va...@us...> - 2006-02-23 08:21:32
|
User: vancek Date: 06/02/23 00:21:30 Added: andromda-ejb3/src/site/resources/images/org/andromda/test/8/b uml.gif andromda-ejb3/src/site/resources/images/org/andromda/test/8/a uml.gif Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/8/b/uml.gif <<Binary file>> 1.1 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/8/a/uml.gif <<Binary file>> |
From: Vance K. <va...@us...> - 2006-02-23 08:21:24
|
User: vancek Date: 06/02/23 00:21:23 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/8/b - New directory |
From: Vance K. <va...@us...> - 2006-02-23 08:21:24
|
User: vancek Date: 06/02/23 00:21:23 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/8/a - New directory |
From: Vance K. <va...@us...> - 2006-02-23 08:21:24
|
User: vancek Date: 06/02/23 00:21:22 cartridges/andromda-ejb3/src/site/resources/images/org/andromda/test/8 - New directory |
From: Vance K. <va...@us...> - 2006-02-23 06:27:11
|
User: vancek Date: 06/02/22 22:27:09 Modified: andromda-ejb3/src/main/resources/META-INF/andromda cartridge.xml Log: added auth.conf.vsl template Revision Changes Path 1.15 +16 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -r1.14 -r1.15 --- cartridge.xml 22 Feb 2006 06:14:43 -0000 1.14 +++ cartridge.xml 23 Feb 2006 06:27:07 -0000 1.15 @@ -287,6 +287,22 @@ </template> --> + <template + path="templates/ejb3/auth.conf.vsl" + outputPattern="auth.conf" + outlet="application-config" + overwrite="false" + outputToSingleFile="true" + outputOnEmptyElements="false"> + <modelElements> + <modelElement variable="services"> + <type name="org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacade"> + <property name="securityEnabled"/> + </type> + </modelElement> + </modelElements> + </template> + <!-- Message Driven Bean Templates --> <template |
From: Vance K. <va...@us...> - 2006-02-23 06:26:36
|
User: vancek Date: 06/02/22 22:26:35 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBean.vsl Log: removed security annotations from class level - only have operation level security annotations Revision Changes Path 1.18 +0 -7 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl Index: SessionBean.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -r1.17 -r1.18 --- SessionBean.vsl 23 Feb 2006 06:25:06 -0000 1.17 +++ SessionBean.vsl 23 Feb 2006 06:26:35 -0000 1.18 @@ -29,13 +29,6 @@ @org.jboss.annotation.security.SecurityDomain("${service.securityRealm}") #**##end #end -#if ($service.permitAll) -...@ja...rmitAll -#elseif ($service.denyAll) -...@ja...nyAll -#elseif ($service.rolesAllowed) -...@ja...lesAllowed({${service.rolesAllowed}}) -#end #if ($service.runAs) @javax.annotation.security.RunAs("${service.runAs}") #end |
From: Vance K. <va...@us...> - 2006-02-23 06:25:08
|
User: vancek Date: 06/02/22 22:25:07 Modified: andromda-ejb3/src/main/resources/templates/ejb3 SessionBean.vsl Log: if security is enabled, render the @RolesAllowed annotation only if logical roles exists, otherwise if deny all is specified, then render @DenyAll, otherwise always render the @PermitAll annotation Revision Changes Path 1.17 +8 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl Index: SessionBean.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/SessionBean.vsl,v retrieving revision 1.16 retrieving revision 1.17 diff -u -w -r1.16 -r1.17 --- SessionBean.vsl 13 Feb 2006 15:46:37 -0000 1.16 +++ SessionBean.vsl 23 Feb 2006 06:25:06 -0000 1.17 @@ -290,13 +290,17 @@ @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.${operation.transactionType}) #* *##end #* *##end -#* *##if ($operation.permitAll) - @javax.annotation.security.PermitAll -#* *##elseif ($operation.denyAll) +#* *##if ($service.securityEnabled) +#* *##if ($stringUtils.isBlank(${operation.rolesAllowed})) +#* *##if ($operation.denyAll) @javax.annotation.security.DenyAll -#* *##elseif ($operation.rolesAllowed) +#* *##else + @javax.annotation.security.PermitAll +#* *##end +#* *##else @javax.annotation.security.RolesAllowed({${operation.rolesAllowed}}) #* *##end +#* *##end #* *##if ($operation.flushMode) @javax.persistence.FlushMode(javax.persistence.FlushModeType.${operation.flushMode}) #* *##end |
From: Vance K. <va...@us...> - 2006-02-23 06:22:13
|
User: vancek Date: 06/02/22 22:22:08 Modified: andromda-ejb3/src/main/resources/templates/ejb3 jboss.xml.vsl Log: added security-domain element since the @SecurityDomain annotation in the session bean alone was throwing excception on deployment to server Revision Changes Path 1.8 +9 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/jboss.xml.vsl Index: jboss.xml.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/jboss.xml.vsl,v retrieving revision 1.7 retrieving revision 1.8 diff -u -w -r1.7 -r1.8 --- jboss.xml.vsl 13 Feb 2006 15:45:11 -0000 1.7 +++ jboss.xml.vsl 23 Feb 2006 06:22:07 -0000 1.8 @@ -4,6 +4,15 @@ <jboss> +#foreach ($service in $services) +#**##if ($service.securityEnabled && !$generatedFile) +#* *##set ($securityRealm = "${service.securityRealm}") +#**##end +#end +#if ($stringUtils.isNotBlank(${securityRealm})) + <security-domain>${securityRealm}</security-domain> + +#end <enterprise-beans> #foreach ($service in $services) |
From: Vance K. <va...@us...> - 2006-02-23 06:21:04
|
User: vancek Date: 06/02/22 22:20:57 Added: andromda-ejb3/src/main/resources/templates/ejb3 auth.conf.vsl Log: initial revision Revision Changes Path 1.1 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/auth.conf.vsl Index: auth.conf.vsl =================================================================== #foreach ($service in $services) #**##if ($service.securityEnabled && !$generatedFile) #* *##set ($securityRealm = "${service.securityRealm}") #**##end #end $securityRealm { // jBoss LoginModule org.jboss.security.ClientLoginModule required ; }; |
From: Vance K. <va...@us...> - 2006-02-22 06:17:27
|
User: vancek Date: 06/02/21 22:17:25 Modified: andromda-ejb3/src/main/uml EJB3MetafacadeModel.xml.zip Log: added securityEnabled to EJB3SessionFacade Revision Changes Path 1.20 +161 -170 cartridges/andromda-ejb3/src/main/uml/EJB3MetafacadeModel.xml.zip <<Binary file>> |
From: Vance K. <va...@us...> - 2006-02-22 06:16:57
|
User: vancek Date: 06/02/21 22:16:51 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3SessionFacadeLogicImpl.java Log: implemented isSecurityEnabled Revision Changes Path 1.12 +8 -1 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java Index: EJB3SessionFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3SessionFacadeLogicImpl.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- EJB3SessionFacadeLogicImpl.java 9 Feb 2006 07:18:43 -0000 1.11 +++ EJB3SessionFacadeLogicImpl.java 22 Feb 2006 06:16:50 -0000 1.12 @@ -646,6 +646,14 @@ } /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleIsSecurityEnabled() + */ + protected boolean handleIsSecurityEnabled() + { + return StringUtils.isNotBlank(this.getSecurityRealm()); + } + + /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacadeLogic#handleGetRunAs() */ protected String handleGetRunAs() @@ -859,5 +867,4 @@ { return this.hasStereotype(EJB3Profile.STEREOTYPE_LISTENER); } - } \ No newline at end of file |
From: Vance K. <va...@us...> - 2006-02-22 06:15:32
|
User: vancek Date: 06/02/21 22:15:31 Modified: andromda-ejb3/src/main/resources/META-INF/andromda namespace.xml Log: added application-config outlet namespace property Revision Changes Path 1.16 +7 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml Index: namespace.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/namespace.xml,v retrieving revision 1.15 retrieving revision 1.16 diff -u -w -r1.15 -r1.16 --- namespace.xml 20 Feb 2006 05:16:06 -0000 1.15 +++ namespace.xml 22 Feb 2006 06:15:30 -0000 1.16 @@ -59,6 +59,13 @@ is generated. </documentation> </property> + <property name="application-config"> + <documentation> + The location where the application specific XML + descriptors are generated. i.e the application + login-config.xml descriptor. + </documentation> + </property> <property name="message-driven-beans"> <documentation> The directory to which Message Driven Bean files |
From: Vance K. <va...@us...> - 2006-02-22 06:14:45
|
User: vancek Date: 06/02/21 22:14:44 Modified: andromda-ejb3/src/main/resources/META-INF/andromda cartridge.xml Log: added login-config.xml.vsl templates Revision Changes Path 1.14 +34 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml Index: cartridge.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/cartridge.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -w -r1.13 -r1.14 --- cartridge.xml 13 Feb 2006 15:49:36 -0000 1.13 +++ cartridge.xml 22 Feb 2006 06:14:43 -0000 1.14 @@ -253,6 +253,40 @@ </modelElements> </template> + <template + path="templates/ejb3/login-config.xml.vsl" + outputPattern="$generatedFile" + outlet="application-config" + overwrite="false" + outputToSingleFile="true" + outputOnEmptyElements="false"> + <modelElements> + <modelElement variable="services"> + <type name="org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacade"> + <property name="securityEnabled"/> + </type> + </modelElement> + </modelElements> + </template> + + <!-- + <template + path="templates/ejb3/login-service.xml.vsl" + outputPattern="$generatedFile" + outlet="application-config" + overwrite="false" + outputToSingleFile="true" + outputOnEmptyElements="false"> + <modelElements> + <modelElement variable="services"> + <type name="org.andromda.cartridges.ejb3.metafacades.EJB3SessionFacade"> + <property name="securityEnabled"/> + </type> + </modelElement> + </modelElements> + </template> + --> + <!-- Message Driven Bean Templates --> <template |
From: Vance K. <va...@us...> - 2006-02-22 06:12:57
|
User: vancek Date: 06/02/21 22:12:56 Modified: andromda-ejb3/src/main/resources/templates/ejb3 EntityEmbeddable.vsl Log: render implements interfaces as comma separated list Revision Changes Path 1.17 +3 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl Index: EntityEmbeddable.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/EntityEmbeddable.vsl,v retrieving revision 1.16 retrieving revision 1.17 diff -u -w -r1.16 -r1.17 --- EntityEmbeddable.vsl 20 Feb 2006 05:12:16 -0000 1.16 +++ EntityEmbeddable.vsl 22 Feb 2006 06:12:55 -0000 1.17 @@ -72,6 +72,9 @@ extends ${entity.generalization.fullyQualifiedName} #end implements java.io.Serializable +#if (!$entity.interfaceAbstractions.empty) + , $entity.implementedInterfaceList +#end { private static final long serialVersionUID = ${entity.serialVersionUID}L; |