| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'> |
| <!-- |
| |
| Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <ejb-jar> |
| <display-name>Ejb1</display-name> |
| <enterprise-beans> |
| <entity> |
| <display-name>AccountBean</display-name> |
| <ejb-name>AccountBean</ejb-name> |
| <home>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountRemoteHome</home> |
| <remote>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountRemote</remote> |
| <local-home>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountLocalHome</local-home> |
| <local>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountLocal</local> |
| <ejb-class>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountBean</ejb-class> |
| <persistence-type>Container</persistence-type> |
| <prim-key-class>java.lang.String</prim-key-class> |
| <reentrant>False</reentrant> |
| <cmp-version>2.x</cmp-version> |
| <abstract-schema-name>AccountBeanSchema</abstract-schema-name> |
| <cmp-field> |
| <field-name>accountID</field-name> |
| </cmp-field> |
| <cmp-field> |
| <field-name>amount</field-name> |
| </cmp-field> |
| <cmp-field> |
| <field-name>privileges</field-name> |
| </cmp-field> |
| <primkey-field>accountID</primkey-field> |
| <security-role-ref> |
| <role-name>Manager</role-name> |
| <role-link>Manager</role-link> |
| </security-role-ref> |
| <security-role-ref> |
| <role-name>Administrator</role-name> |
| <role-link>Administrator</role-link> |
| </security-role-ref> |
| <security-identity> |
| <description></description> |
| <use-caller-identity></use-caller-identity> |
| </security-identity> |
| </entity> |
| <entity> |
| <display-name>CustomerBean</display-name> |
| <ejb-name>CustomerBean</ejb-name> |
| <home>com.sun.s1peqe.security.integration.bankadmin.daomanager.CustomerRemoteHome</home> |
| <remote>com.sun.s1peqe.security.integration.bankadmin.daomanager.CustomerRemote</remote> |
| <local-home>com.sun.s1peqe.security.integration.bankadmin.daomanager.CustomerLocalHome</local-home> |
| <local>com.sun.s1peqe.security.integration.bankadmin.daomanager.CustomerLocal</local> |
| <ejb-class>com.sun.s1peqe.security.integration.bankadmin.daomanager.CustomerBean</ejb-class> |
| <persistence-type>Container</persistence-type> |
| <prim-key-class>java.lang.String</prim-key-class> |
| <reentrant>False</reentrant> |
| <cmp-version>2.x</cmp-version> |
| <abstract-schema-name>CustomerBeanSchema</abstract-schema-name> |
| <cmp-field> |
| <field-name>customerID</field-name> |
| </cmp-field> |
| <cmp-field> |
| <field-name>customerName</field-name> |
| </cmp-field> |
| <primkey-field>customerID</primkey-field> |
| <ejb-local-ref> |
| <ejb-ref-name>ejb/Account</ejb-ref-name> |
| <ejb-ref-type>Entity</ejb-ref-type> |
| <local-home>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountLocalHome</local-home> |
| <local>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountLocal</local> |
| <ejb-link>sec-daomanager-ejb.jar#AccountBean</ejb-link> |
| </ejb-local-ref> |
| <security-role-ref> |
| <role-name>Manager</role-name> |
| <role-link>Manager</role-link> |
| </security-role-ref> |
| <security-role-ref> |
| <!--<role-name>ADMIN</role-name>--> |
| <role-name>Administrator</role-name> |
| <role-link>Administrator</role-link> |
| </security-role-ref> |
| <security-identity> |
| <description></description> |
| <use-caller-identity></use-caller-identity> |
| </security-identity> |
| </entity> |
| </enterprise-beans> |
| <relationships> |
| <ejb-relation> |
| <ejb-relation-name>Customer-has-Accounts</ejb-relation-name> |
| <ejb-relationship-role> |
| <ejb-relationship-role-name>Customer-has-Accounts</ejb-relationship-role-name> |
| <multiplicity>One</multiplicity> |
| <relationship-role-source> |
| <ejb-name>CustomerBean</ejb-name> |
| </relationship-role-source> |
| <cmr-field> |
| <cmr-field-name>accounts</cmr-field-name> |
| <cmr-field-type>java.util.Collection</cmr-field-type> |
| </cmr-field> |
| </ejb-relationship-role> |
| <ejb-relationship-role> |
| <ejb-relationship-role-name>AccountBean-CustomerBean</ejb-relationship-role-name> |
| <multiplicity>Many</multiplicity> |
| <relationship-role-source> |
| <ejb-name>AccountBean</ejb-name> |
| </relationship-role-source> |
| </ejb-relationship-role> |
| </ejb-relation> |
| </relationships> |
| <assembly-descriptor> |
| <security-role> |
| <role-name>Manager</role-name> |
| </security-role> |
| <security-role> |
| <role-name>GeneralUser</role-name> |
| </security-role> |
| <security-role> |
| <role-name>Customer</role-name> |
| </security-role> |
| <security-role> |
| <role-name>Administrator</role-name> |
| </security-role> |
| <method-permission> |
| <role-name>Administrator</role-name> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-name>*</method-name> |
| </method> |
| </method-permission> |
| <method-permission> |
| <role-name>Manager</role-name> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-name>*</method-name> |
| </method> |
| </method-permission> |
| <method-permission> |
| <role-name>GeneralUser</role-name> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-name>*</method-name> |
| </method> |
| </method-permission> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>LocalHome</method-intf> |
| <method-name>remove</method-name> |
| <method-params> |
| <method-param>java.lang.Object</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>remove</method-name> |
| <method-params> |
| <method-param>java.lang.Object</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>createAccount</method-name> |
| <method-params> |
| <method-param>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountDataObject</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>LocalHome</method-intf> |
| <method-name>createAccount</method-name> |
| <method-params> |
| <method-param>com.sun.s1peqe.security.integration.bankadmin.daomanager.AccountDataObject</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>findByPrimaryKey</method-name> |
| <method-params> |
| <method-param>java.lang.String</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>LocalHome</method-intf> |
| <method-name>findByPrimaryKey</method-name> |
| <method-params> |
| <method-param>java.lang.String</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>remove</method-name> |
| <method-params> |
| <method-param>jakarta.ejb.Handle</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Local</method-intf> |
| <method-name>getDAO</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Remote</method-intf> |
| <method-name>getDAO</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Local</method-intf> |
| <method-name>remove</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>AccountBean</ejb-name> |
| <method-intf>Remote</method-intf> |
| <method-name>remove</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>Required</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>LocalHome</method-intf> |
| <method-name>remove</method-name> |
| <method-params> |
| <method-param>java.lang.Object</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>remove</method-name> |
| <method-params> |
| <method-param>java.lang.Object</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Local</method-intf> |
| <method-name>getCustomerID</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Remote</method-intf> |
| <method-name>getCustomerID</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Local</method-intf> |
| <method-name>getCustomerName</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Remote</method-intf> |
| <method-name>getCustomerName</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>findByPrimaryKey</method-name> |
| <method-params> |
| <method-param>java.lang.String</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>LocalHome</method-intf> |
| <method-name>findByPrimaryKey</method-name> |
| <method-params> |
| <method-param>java.lang.String</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>remove</method-name> |
| <method-params> |
| <method-param>jakarta.ejb.Handle</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Local</method-intf> |
| <method-name>remove</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Remote</method-intf> |
| <method-name>remove</method-name> |
| <method-params /> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>LocalHome</method-intf> |
| <method-name>createCustomer</method-name> |
| <method-params> |
| <method-param>java.lang.String</method-param> |
| <method-param>java.lang.String</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| <container-transaction> |
| <method> |
| <ejb-name>CustomerBean</ejb-name> |
| <method-intf>Home</method-intf> |
| <method-name>createCustomer</method-name> |
| <method-params> |
| <method-param>java.lang.String</method-param> |
| <method-param>java.lang.String</method-param> |
| </method-params> |
| </method> |
| <trans-attribute>RequiresNew</trans-attribute> |
| </container-transaction> |
| </assembly-descriptor> |
| </ejb-jar> |
| |