[jboss-cvs] jboss-seam/mail/meldware/meldwarebase.sar/META-INF ...
Peter Muir
peter at bleepbleep.org.uk
Mon Feb 26 20:59:52 EST 2007
User: pmuir
Date: 07/02/26 20:59:52
Added: mail/meldware/meldwarebase.sar/META-INF jboss-service.xml
DBUserEditor-xmbean.xml
Log:
Upgrade to meldware-m7
Revision Changes Path
1.1 date: 2007/02/27 01:59:52; author: pmuir; state: Exp;jboss-seam/mail/meldware/meldwarebase.sar/META-INF/jboss-service.xml
Index: jboss-service.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server
PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
<server>
<mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
name="meldware.mail:type=SecurityConfig,name=LoginConfig">
<attribute name="PolicyConfig" serialDataType="jbxb">
<jaas:policy
xsi:schemaLocation="urn:jboss:security-config:4.1 resource:security-config_4_1.xsd"
xmlns:jaas="urn:jboss:security-config:4.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<jaas:application-policy name="meldware">
<jaas:authentication>
<jaas:login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag="required">
<jaas:module-option name="dsJndiName">java:/DefaultDS</jaas:module-option>
<jaas:module-option name="principalsQuery">SELECT PASSWORD FROM MAIL_USERS WHERE USER_NAME=?</jaas:module-option>
<jaas:module-option name="rolesQuery">SELECT ROLE_NAME, 'Roles' FROM MAIL_ROLES WHERE USER_NAME=?</jaas:module-option>
<jaas:module-option name="unauthenticatedIdentity">guest</jaas:module-option>
</jaas:login-module>
</jaas:authentication>
</jaas:application-policy>
</jaas:policy>
</attribute>
<depends optional-attribute-name="LoginConfigService">
jboss.security:service=XMLLoginConfig
</depends>
<depends optional-attribute-name="SecurityManagerService">
jboss.security:service=JaasSecurityManager
</depends>
<!-- prevent startup before the tables are created -->
<depends>meldware.mail:type=MailServices,name=UserEditor</depends>
</mbean>
<mbean code="org.buni.meldware.mail.usereditor.db.DBUserEditorImpl" interface="org.buni.meldware.mail.usereditor.db.UserEditor" name="meldware.mail:type=MailServices,name=UserEditor" xmbean-dd="META-INF/DBUserEditor-xmbean.xml">
<depends optional-attribute-name="DataSource" proxy-type="attribute">jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
<attribute name="CreateUserTableSQL">CREATE TABLE MAIL_USERS (USER_NAME VARCHAR(40) PRIMARY KEY, PASSWORD VARCHAR(40) NOT NULL)</attribute>
<attribute name="CreateRoleTableSQL">CREATE TABLE MAIL_ROLES (USER_NAME VARCHAR(40) NOT NULL, ROLE_NAME VARCHAR(40) NOT NULL)</attribute>
<attribute name="AddUserSQL">INSERT INTO MAIL_USERS (USER_NAME, PASSWORD) VALUES(?,?)</attribute>
<attribute name="AddRoleSQL">INSERT INTO MAIL_ROLES(USER_NAME,ROLE_NAME) VALUES(?,?)</attribute>
<attribute name="DeleteUserSQL">DELETE FROM MAIL_USERS WHERE USER_NAME = ?</attribute>
<attribute name="DeleteRoleSQL">DELETE FROM MAIL_ROLES WHERE USER_NAME = ? AND ROLE_NAME = ?</attribute>
<attribute name="UserRolesSQL">SELECT ROLE_NAME FROM MAIL_ROLES WHERE USER_NAME = ?</attribute>
<attribute name="UsersSQL">SELECT USER_NAME FROM MAIL_USERS WHERE USER_NAME LIKE ?</attribute>
<attribute name="UpdatePasswordSQL">UPDATE MAIL_USERS SET PASSWORD = '?' WHERE USER_NAME = '?'</attribute>
</mbean>
</server>
1.1 date: 2007/02/27 01:59:52; author: pmuir; state: Exp;jboss-seam/mail/meldware/meldwarebase.sar/META-INF/DBUserEditor-xmbean.xml
Index: DBUserEditor-xmbean.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mbean PUBLIC
"-//JBoss//DTD JBOSS XMBEAN 1.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd">
<mbean>
<description>Edits users in a JAAS User Repository using the Database Login Module</description>
<class>org.buni.meldware.mail.usereditor.db.DBUserEditorImpl</class>
<constructor>
<description>The no-arg constructor</description>
<name>org.buni.meldware.mail.usereditor.db.DBUserEditorImpl</name>
</constructor>
<attribute access="read-write" setMethod="setAddRoleSQL" getMethod="getAddRoleSQL">
<name>AddRoleSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setCreateUserTableSQL" getMethod="getCreateUserTableSQL">
<name>CreateUserTableSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setCreateRoleTableSQL" getMethod="getCreateRoleTableSQL">
<name>CreateRoleTableSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setAddUserSQL" getMethod="getAddUserSQL">
<name>AddUserSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setDataSource" getMethod="getDataSource">
<name>DataSource</name>
<type>org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceServiceMBean</type>
</attribute>
<attribute access="read-write" setMethod="setDeleteRoleSQL" getMethod="getDeleteRoleSQL">
<name>DeleteRoleSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setDeleteUserSQL" getMethod="getDeleteUserSQL">
<name>DeleteUserSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setUpdatePasswordSQL" getMethod="getUpdatePasswordSQL">
<name>UpdatePasswordSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setUserRolesSQL" getMethod="getUserRolesSQL">
<name>UserRolesSQL</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" setMethod="setUsersSQL" getMethod="getUsersSQL">
<name>UsersSQL</name>
<type>java.lang.String</type>
</attribute>
<operation>
<name>start</name>
</operation>
<operation>
<name>stop</name>
</operation>
<operation>
<name>deleteUser</name>
<parameter>
<name>login</name>
<type>java.lang.String</type>
</parameter>
<return-type>void</return-type>
</operation>
<operation>
<name>addUser</name>
<parameter>
<name>login</name>
<type>java.lang.String</type>
</parameter>
<parameter>
<name>password</name>
<type>java.lang.String</type>
</parameter>
<return-type>void</return-type>
</operation>
<operation>
<name>addRole</name>
<parameter>
<name>login</name>
<type>java.lang.String</type>
</parameter>
<parameter>
<name>role</name>
<type>java.lang.String</type>
</parameter>
<return-type>void</return-type>
</operation>
<operation>
<name>deleteRole</name>
<parameter>
<name>login</name>
<type>java.lang.String</type>
</parameter>
<parameter>
<name>role</name>
<type>java.lang.String</type>
</parameter>
<return-type>void</return-type>
</operation>
<operation>
<name>changePassword</name>
<parameter>
<name>login</name>
<type>java.lang.String</type>
</parameter>
<parameter>
<name>role</name>
<type>java.lang.String</type>
</parameter>
<return-type>void</return-type>
</operation>
<operation>
<name>userExists</name>
<parameter>
<name></name>
<type>java.lang.String</type>
</parameter>
<return-type>boolean</return-type>
</operation>
<operation>
<name>getRoles</name>
<parameter>
<name></name>
<type>java.lang.String</type>
</parameter>
<return-type>java.util.List</return-type>
</operation>
<operation>
<name>getUsers</name>
<parameter>
<name></name>
<type>java.lang.String</type>
</parameter>
<return-type>java.util.List</return-type>
</operation>
</mbean>
More information about the jboss-cvs-commits
mailing list