From: Vance K. <va...@us...> - 2006-05-02 01:57:49
|
User: vancek Date: 06/05/01 18:57:47 Modified: andromda-ejb3/src/main/resources/templates/ejb3 DaoBase.vsl Log: if security settings are enabled either specify allowed roles or permit all roles at the class level Revision Changes Path 1.4 +7 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/DaoBase.vsl Index: DaoBase.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/DaoBase.vsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- DaoBase.vsl 30 Apr 2006 01:47:44 -0000 1.3 +++ DaoBase.vsl 2 May 2006 01:57:47 -0000 1.4 @@ -31,6 +31,13 @@ */ @javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRED) @javax.ejb.Local({${entity.fullyQualifiedDaoName}.class}) +#if ($entity.securityEnabled) +#**##if ($stringUtils.isBlank(${entity.rolesAllowed})) +...@ja...rmitAll +#**##else +...@ja...lesAllowed({${entity.rolesAllowed}}) +#**##end +#end public abstract class $entity.daoBaseName #if ($daoInheritance) extends $entity.generalization.fullyQualifiedDaoImplementationName |