From: Vance K. <va...@us...> - 2006-01-03 01:14:07
|
User: vancek Date: 06/01/02 17:13:53 Modified: andromda-ejb3/src/main/resources/META-INF/andromda profile.xml Log: added persistence context, service and security related elements Revision Changes Path 1.2 +112 -0 cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml Index: profile.xml =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/META-INF/andromda/profile.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- profile.xml 28 Dec 2005 00:32:56 -0000 1.1 +++ profile.xml 3 Jan 2006 01:13:53 -0000 1.2 @@ -53,6 +53,14 @@ <value>Transient</value> <appliedOnElement>Entity attribute</appliedOnElement> </element> + <element name="PERSISTENCE_CONTEXT"> + <documentation> + Identifies a persistence context used to express a dependency + on an EntityManager persistence context. + </documentation> + <value>PersistenceContext</value> + <appliedOnElement>class</appliedOnElement> + </element> <element name="IDENTIFIER"> <documentation> Identifies an attribute as an identifier (primary @@ -308,6 +316,110 @@ <![CDATA[<<Entity>>]]> </appliedOnElement> </element> + <element name="SERVICE_TYPE"> + <documentation> + Used at the class level of a service bean to + override the default session bean type which + is determined by the existence of instance + variables. + </documentation> + <value> + @andromda.ejb.service.type + </value> + <appliedOnElement> + <![CDATA[<<Service>>]]> + </appliedOnElement> + <allowedValues> + <value>Stateless</value> + <value>Stateful</value> + </allowedValues> + </element> + <element name="SERVICE_PERSISTENCE_CONTEXT_UNIT_NAME"> + <documentation> + Used at the class level of a service bean or + a class with stereotype PersistenceContext to + determine the persistence context unit + name. + </documentation> + <value> + @andromda.ejb.persistence.context.unit.name + </value> + <appliedOnElement> + <![CDATA[<<Service>>]]> + </appliedOnElement> + </element> + <element name="SERVICE_PERSISTENCE_CONTEXT_TYPE"> + <documentation> + Used at the class level of a service bean or + a class with stereotype PersistenceContext to + determine the persistence context type. + This can be set to extend the transaction + on a Stateful session bean for it's + EntityManager. + </documentation> + <value> + @andromda.ejb.persistence.context.unit.type + </value> + <appliedOnElement> + <![CDATA[<<Service>>]]> + </appliedOnElement> + <allowedValues> + <value>EXTENDED</value> + <value>TRANSACTION</value> + </allowedValues> + </element> + <element name="SECURITY_ROLES_ALLOWED"> + <documentation> + Specifies the comma separated list of security + roles that are permitted to execute opertions. + This can be set on the session bean or on + individual operations. + If set on the session bean, all operations will + inherit this behaviour. + </documentation> + <value> + @andromda.ejb.security.rolesAllowed + </value> + <appliedOnElement> + Service and service operation + </appliedOnElement> + </element> + <element name="SECURITY_PERMIT_ALL"> + <documentation> + Specifies whether to permit all roles to + execute the opertions in a session bean. + This can be set on the session bean or on + individual operations. + If set on the session bean, all operations will + inherit this behaviour. + The permit all tagged value will override + the roles allowed. If both are set, only the + permit all tagged value is rendered. + </documentation> + <value> + @andromda.ejb.security.permitAll + </value> + <appliedOnElement> + Service and service operation + </appliedOnElement> + <allowedValues> + <value>true</value> + <value>false</value> + </allowedValues> + </element> + <element name="SECURITY_DOMAIN"> + <documentation> + Specifies the security domain for + role based authorization. JBoss uses + the security model to match allowed roles. + </documentation> + <value> + @andromda.ejb.security.domain + </value> + <appliedOnElement> + Session bean + </appliedOnElement> + </element> <element name="AUTOMATIC_KEY"> <documentation> Can be used in class level of an entity. If you set |