[jboss-cvs] JBossAS SVN: r65860 - projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 4 18:06:19 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-10-04 18:06:19 -0400 (Thu, 04 Oct 2007)
New Revision: 65860
Added:
projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/EjbJar21_testMethodPermissions.xml
Log:
Add ids to identify the method-permissions
Added: projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/EjbJar21_testMethodPermissions.xml
===================================================================
--- projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/EjbJar21_testMethodPermissions.xml (rev 0)
+++ projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/EjbJar21_testMethodPermissions.xml 2007-10-04 22:06:19 UTC (rev 65860)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/javaee/ejb-jar_2_1.xsd"
+ version="2.1">
+ <display-name>SecurityTests</display-name>
+ <enterprise-beans>
+ <session>
+ <description>A secured trival echo session bean</description>
+ <ejb-name>StatelessSession</ejb-name>
+ <home>org.jboss.test.security.interfaces.StatelessSessionHome</home>
+ <remote>org.jboss.test.security.interfaces.StatelessSession</remote>
+ <local-home>org.jboss.test.security.interfaces.StatelessSessionLocalHome</local-home>
+ <local>org.jboss.test.security.interfaces.StatelessSessionLocal</local>
+ <ejb-class>org.jboss.test.security.ejb.StatelessSessionBean</ejb-class>
+ <session-type>Stateless</session-type>
+ <transaction-type>Container</transaction-type>
+ <security-role-ref>
+ <role-name>EchoCaller</role-name>
+ <role-link>Echo</role-link>
+ </security-role-ref>
+ </session>
+ <session>
+ <description>A secured trival echo session bean</description>
+ <ejb-name>StatelessSession2</ejb-name>
+ <home>org.jboss.test.security.interfaces.StatelessSessionHome</home>
+ <remote>org.jboss.test.security.interfaces.StatelessSession</remote>
+ <local-home>org.jboss.test.security.interfaces.StatelessSessionLocalHome</local-home>
+ <local>org.jboss.test.security.interfaces.StatelessSessionLocal</local>
+ <ejb-class>org.jboss.test.security.ejb.StatelessSessionBean</ejb-class>
+ <session-type>Stateless</session-type>
+ <transaction-type>Container</transaction-type>
+ </session>
+ </enterprise-beans>
+
+ <assembly-descriptor>
+ <security-role>
+ <description>The role required to invoke the echo method</description>
+ <role-name>Echo</role-name>
+ </security-role>
+ <security-role>
+ <description>The role required to invoke the echo method using the
+ StatelessSessionLocal interface</description>
+ <role-name>EchoLocal</role-name>
+ </security-role>
+ <security-role>
+ <description>The role used to prevent access to the PrivateEntity
+ bean from external users.
+ </description>
+ <role-name>InternalRole</role-name>
+ </security-role>
+
+ <!-- The methods the Echo role can access -->
+ <method-permission id="EchoMethods">
+ <role-name>Echo</role-name>
+
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-name>create</method-name>
+ </method>
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-name>remove</method-name>
+ </method>
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-name>echo</method-name>
+ </method>
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-name>npeError</method-name>
+ </method>
+
+ <method>
+ <ejb-name>StatelessSession2</ejb-name>
+ <method-name>*</method-name>
+ </method>
+
+ </method-permission>
+
+ <!-- The methods the EchoLocal role can access -->
+ <method-permission id="EchoLocalMethods">
+ <role-name>EchoLocal</role-name>
+
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ </method>
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>echo</method-name>
+ </method>
+ </method-permission>
+
+ <!-- The methods the InternalRole role can access -->
+ <method-permission id="InternalRoleMethods">
+ <role-name>InternalRole</role-name>
+
+ <method>
+ <ejb-name>StatelessSession2</ejb-name>
+ <method-name>*</method-name>
+ </method>
+
+ </method-permission>
+
+ <!-- Anyone can access the unchecked() method of the StatelessSession bean -->
+ <method-permission id="unchecked methods">
+ <unchecked/>
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-name>unchecked</method-name>
+ </method>
+ </method-permission>
+
+ <!-- No one can access the excluded() method of the
+ StatelessSession and StatelessSession2 beans -->
+ <exclude-list id="ExcludedMethods">
+ <description>A method that no one can access in this deployment</description>
+ <method>
+ <ejb-name>StatelessSession</ejb-name>
+ <method-name>excluded</method-name>
+ </method>
+ </exclude-list>
+
+ </assembly-descriptor>
+
+</ejb-jar>
\ No newline at end of file
Property changes on: projects/metadata/trunk/src/test/resources/org/jboss/test/metadata/ejb/EjbJar21_testMethodPermissions.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ native
More information about the jboss-cvs-commits
mailing list