You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ad...@apache.org on 2003/11/18 06:12:00 UTC

cvs commit: incubator-geronimo/modules/core/src/test-data/xml/deployment geronimo-ejb-jar-testRead.xml geronimo-web-app-testRead.xml

adc         2003/11/17 21:12:00

  Added:       modules/core/src/test-data/xml/deployment
                        geronimo-ejb-jar-testRead.xml
                        geronimo-web-app-testRead.xml
  Log:
  Some test files
  
  Revision  Changes    Path
  1.1                  incubator-geronimo/modules/core/src/test-data/xml/deployment/geronimo-ejb-jar-testRead.xml
  
  Index: geronimo-ejb-jar-testRead.xml
  ===================================================================
  <?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"
           xmlns:ger="http://geronimo.apache.org/xml/schema/j2ee"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
           http://geronimo.apache.org/xml/schema/1.0/j2ee14/geronimo-ejb-jar.xsd"
           version="2.1">
      <class-space name="geronimo.system:role=ClassSpace,name=Test" parent="geronimo.system:role=ClassSpace,name=System"/>
      <security>
          <role-mappings>
              <role role-name="ONE">
                  <realm realm-name="Foo">
                      <principal class="org.apache.geronimo.security.providers.PropertiesFileUserPrincipal" name="alan"/>
                      <principal class="org.apache.geronimo.security.providers.PropertiesFileUserPrincipal" name="izumi"/>
                  </realm>
              </role>
          </role-mappings>
      </security>
      <enterprise-beans>
          <entity>
              <ejb-name>EJB1</ejb-name>
              <security-identity>
                  <run-as>FOOBAR</run-as>
              </security-identity>
          </entity>
  
          <entity>
              <ejb-name>EJB2</ejb-name>
              <security-role-ref>
                  <role-name>RoleCheck</role-name>
                  <role-link>ONE</role-link>
              </security-role-ref>
          </entity>
  
          <entity>
              <ejb-name>EJB3</ejb-name>
          </entity>
          <entity>
              <ejb-name>EJB4</ejb-name>
          </entity>
      </enterprise-beans>
  
      <assembly-descriptor>
          <security-role><role-name>ONE</role-name></security-role>
          <security-role><role-name>TWO</role-name></security-role>
          <security-role><role-name>THREE</role-name></security-role>
  
          <method-permission>
              <method>
                  <ejb-name>EJB1</ejb-name>
                  <method-intf>LocalHome</method-intf>
                  <method-name>EJBmethod1</method-name>
                  <method-params>
                      <method-param>int</method-param>
                  </method-params>
              </method>
              <role-name>ONE</role-name>
          </method-permission>
  
          <method-permission>
              <method>
                  <ejb-name>EJB2</ejb-name>
                  <method-intf>LocalHome</method-intf>
                  <method-name>EJBmethod2</method-name>
                  <method-params></method-params>
              </method>
              <unchecked/>
          </method-permission>
  
          <method-permission>
              <method>
                  <ejb-name>EJB3</ejb-name>
                  <method-intf>LocalHome</method-intf>
                  <method-name>EJBmethod2</method-name>
              </method>
              <unchecked/>
          </method-permission>
  
          <exclude-list>
              <method>
                  <ejb-name>EJB4</ejb-name>
                  <method-intf>LocalHome</method-intf>
                  <method-name>Secret</method-name>
  
              </method>
          </exclude-list>
      </assembly-descriptor>
  </ejb-jar>
  
  
  
  1.1                  incubator-geronimo/modules/core/src/test-data/xml/deployment/geronimo-web-app-testRead.xml
  
  Index: geronimo-web-app-testRead.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <web-app version="1.4"
          xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:ger="http://geronimo.apache.org/xml/schema/j2ee"
  	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://geronimo.apache.org/xml/schema/j2ee/geronimo-web-app.xsd">
  
      <security/>
  
      <security-role>
          <role-name>R1</role-name>
      </security-role>
  
      <security-constraint>
          <web-resource-collection>
              <web-resource-name>sc1.c1</web-resource-name>
              <url-pattern>/a/*</url-pattern>
              <url-pattern>/b/*</url-pattern>
              <url-pattern>/a</url-pattern>
              <url-pattern>/b</url-pattern>
              <http-method>DELETE</http-method>
              <http-method>PUT </http-method>
          </web-resource-collection>
  
          <web-resource-collection>
              <web-resource-name>sc1.c2</web-resource-name>
              <url-pattern>*.asp</url-pattern>
          </web-resource-collection>
  
          <auth-constraint/>
      </security-constraint>
  
      <security-constraint>
          <web-resource-collection>
              <web-resource-name>sc2.c1</web-resource-name>
              <url-pattern>/a/*</url-pattern>
              <url-pattern>/b/*</url-pattern>
              <http-method>GET</http-method>
          </web-resource-collection>
  
          <web-resource-collection>
              <web-resource-name>sc2.c2</web-resource-name>
              <url-pattern>/b/*</url-pattern>
              <http-method>POST</http-method>
          </web-resource-collection>
  
          <auth-constraint>
              <role-name>R1</role-name>
          </auth-constraint>
  
          <user-data-constraint>
              <transport-guarantee>CONFIDENTIAL</transport-guarantee>
          </user-data-constraint>
      </security-constraint>
  </web-app>