You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
(10) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(1) |
Feb
|
Mar
(12) |
Apr
(25) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ben...@id...> - 2004-05-22 12:56:28
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:24:27
|
Update of /cvsroot/jgatms/jgatms-core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10221 Modified Files: project.xml Log Message: Added properties for creation of WAR file. Index: project.xml =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/project.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** project.xml 1 Apr 2004 22:07:56 -0000 1.5 --- project.xml 30 Apr 2004 21:24:18 -0000 1.6 *************** *** 119,122 **** --- 119,123 ---- <artifactId>struts</artifactId> <version>1.1</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://jakarta.apache.org/struts</url> </dependency> *************** *** 130,133 **** --- 131,135 ---- <artifactId>commons-chain</artifactId> <version>CUSTOM</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://jakarta.apache.org/commons/sandbox/chain</url> </dependency> *************** *** 138,141 **** --- 140,144 ---- <artifactId>commons-digester</artifactId> <version>1.5</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://jakarta.apache.org/commons/digester</url> </dependency> *************** *** 146,149 **** --- 149,153 ---- <artifactId>commons-collections</artifactId> <version>2.1</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://jakarta.apache.org/commons/collections</url> </dependency> *************** *** 154,157 **** --- 158,162 ---- <artifactId>commons-beanutils</artifactId> <version>1.6.1</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://jakarta.apache.org/commons/beanutils</url> </dependency> *************** *** 162,165 **** --- 167,171 ---- <artifactId>hibernate</artifactId> <version>2.1.1</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://hibernate.org</url> </dependency> *************** *** 170,173 **** --- 176,180 ---- <artifactId>dom4j</artifactId> <version>1.4</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://www.dom4j.org</url> </dependency> *************** *** 178,181 **** --- 185,189 ---- <artifactId>odmg</artifactId> <version>3.0</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://www.odmg.org</url> </dependency> *************** *** 191,194 **** --- 199,203 ---- <artifactId>cglib</artifactId> <version>2-CUSTOM</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://cglib.sourceforge.net</url> </dependency> *************** *** 229,232 **** --- 238,242 ---- <artifactId>ehcache</artifactId> <version>0.7</version> + <properties><war.bundle>true</war.bundle></properties> <url>http://ehcache.sourceforge.net</url> </dependency> *************** *** 267,270 **** --- 277,281 ---- <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> + <properties><war.bundle>true</war.bundle></properties> <version>1.0.3</version> <url>http://jakarta.apache.org/commons/logging</url> *************** *** 295,299 **** <directory>${basedir}/config/test</directory> <includes> ! <include>*.properties</include> </includes> </resource> --- 306,310 ---- <directory>${basedir}/config/test</directory> <includes> ! <include>*.*</include> </includes> </resource> |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:23:17
|
Update of /cvsroot/jgatms/jgatms-core/web/styles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9980/web/styles Removed Files: styles.css Log Message: Moved web application files from /web to /src/webapp --- styles.css DELETED --- |
Update of /cvsroot/jgatms/jgatms-core/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9980/web Removed Files: confirmmember.jsp editmember.jsp index.jsp memberdetail.jsp memberinfo.jsp memberlist.jsp memberlogin.jsp reviewmember.jsp skilllevel.jsp skillq.jsp skillqr.jsp skillquestions.jsp skillslist.jsp stepfooter.jsp stepheader.jsp wizard.jsp Log Message: Moved web application files from /web to /src/webapp --- skillslist.jsp DELETED --- --- skillquestions.jsp DELETED --- --- stepfooter.jsp DELETED --- --- stepheader.jsp DELETED --- --- memberdetail.jsp DELETED --- --- memberlogin.jsp DELETED --- --- skillqr.jsp DELETED --- --- editmember.jsp DELETED --- --- skillq.jsp DELETED --- --- skilllevel.jsp DELETED --- --- memberlist.jsp DELETED --- --- wizard.jsp DELETED --- --- reviewmember.jsp DELETED --- --- index.jsp DELETED --- --- memberinfo.jsp DELETED --- --- confirmmember.jsp DELETED --- |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:14:00
|
Update of /cvsroot/jgatms/jgatms-core/src/webapp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8196/src/webapp Added Files: confirmmember.jsp editmember.jsp index.jsp memberdetail.jsp memberinfo.jsp memberlist.jsp memberlogin.jsp reviewmember.jsp skilllevel.jsp skillq.jsp skillqr.jsp skillquestions.jsp skillslist.jsp stepfooter.jsp stepheader.jsp wizard.jsp Log Message: Moving web application code from /web to /src/webapp. --- NEW FILE: skillslist.jsp --- <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-html.tld" prefix="html" %> <tiles:importAttribute/> <logic:iterate name="skillsList" id="skill" indexId="i"> <html:checkbox property="<%= "skills[" + i + "]" %>" value="<%= ((inklings.jgatms.skill.SkillInfo) skill).getSkillId().toString() %>"/> <bean:write name="skill" property="name"/><br/> </logic:iterate> --- NEW FILE: skillquestions.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h2>Step 4: Answer Skill Questions</h2> <p> For each skill you selected on the last screen, please answer the questions below. </p> <table cellspacing="1" cellpadding="1" width="60%"> <% int i = 0; %> <logic:iterate name="jgatms/memberInfo" property="skillProfiles" id="skillProfile"> <tr><td colspan="2"><h3> <bean:write name="skillProfile" property="skill.name"/></h3></td></tr> <logic:iterate name="skillProfile" property="skill.questions" id="question"> <tr> <td> <bean:write name="question" property="question"/> </td> <td> <bean:define name="question" property="possibleResponses" id="possibleResponses"/> <html:select property="<%= "question[" + i++ + "]" %>"> <html:options collection="possibleResponses" property="responseId" labelProperty="description"/> </html:select> </td> </tr> </logic:iterate> </logic:iterate> </table> --- NEW FILE: stepfooter.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <tiles:useAttribute name="submitvalue" classname="java.lang.String"/> <tiles:useAttribute name="backbutton" classname="java.lang.String"/> <tiles:useAttribute name="backvalue" classname="java.lang.String"/> <tiles:useAttribute name="backdest" classname="java.lang.String"/> <hr/> <logic:equal name="backbutton" value="true"> <input type="button" onclick="javascript:window.location='<%= backdest %>';" value="<%= backvalue %>"/> </logic:equal> <html:submit value="<%= submitvalue %>"/> <input type="button" onclick="javascript:window.location='index.jsp';" value="Cancel"/> --- NEW FILE: stepheader.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h2><tiles:getAsString name="stepname"/></h2> <p> <tiles:getAsString name="stepdesc"/> </p> --- NEW FILE: memberdetail.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <html:link action="/cancel">Home</html:link> | <html:link action="/viewmemberlist">View Member List</html:link> <br/> <tiles:insert page="/memberinfo.jsp"/> <hr/> <html:link action="/cancel">Home</html:link> | <html:link action="/viewmemberlist">View Member List</html:link> --- NEW FILE: memberlogin.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <html> <head> <title>JGATMS Member Login</title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1>Member Login</h1> <p> Please enter your system user name and to edit your information. </p> <html:errors/> <html:form action="/checklogin" focus="userName"> <table cellpadding="2" cellspacing="2"> <tr> <td>User Name</td> <td><html:text property="userName"/></td> </tr> <tr> <td>Password</td> <td><html:password property="password"/></td> </tr> <tr> <td><html:submit value="Login"/></td> <td><html:reset value="Cancel"/></td> </tr> </table> </html:form> </body> </html> --- NEW FILE: skillqr.jsp --- <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-html.tld" prefix="html" %> <tiles:importAttribute /> <table cellspacing="1" cellpadding="1" width="60%"> <logic:iterate name="skillQuestions" id="question" indexId="i"> <tr> <td width="50%"> <bean:write name="question" property="question"/></td> <td width="50%"> <bean:write name="<%= "responses" + ((inklings.jgatms.skill.QuestionInfo) question).getQuestionId() + "[0]"%>" property="description"/> </td> </tr> </logic:iterate> </table> --- NEW FILE: editmember.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <p> The next few pages will guide you through the process of registering. Required fields are marked with an asterisk (*). </p> <h2><bean:message key="step1.heading"/></h2> <table> <tr> <td colspan="2"><b><bean:message key="name.address.heading"/></b></td> </tr> <tr> <td><bean:message key="label.firstname"/> *</td> <td><html:text property="firstName"/></td> </tr> <tr> <td><bean:message key="label.lastname"/> *</td> <td><html:text property="lastName"/></td> </tr> <tr> <td><bean:message key="label.gender"/> *</td> <td> <html:select property="gender"> <html:option value="M">Male</html:option> <html:option value="F">Female</html:option> </html:select> </td> </tr> <tr> <td><bean:message key="label.address1"/> *</td> <td><html:text property="address1"/></td> </tr> <tr> <td><bean:message key="label.address2"/></td> <td><html:text property="address2"/></td> </tr> <tr> <td><bean:message key="label.city"/> *</td> <td><html:text property="city"/></td> </tr> <tr> <td><bean:message key="label.state"/> *</td> <td> <html:select property="stateId"> <html:option value="AR">Arkansas</html:option> </html:select> </td> </tr> <tr> <td><bean:message key="label.zipcode"/> *</td> <td><html:text property="zipCode"/></td> </tr> <tr> <td colspan="2"><b><br/>Phone Numbers (At least one is required.)</b></td> </tr> <tr> <td><bean:message key="label.homephone"/></td> <td> (<html:text property="homePhoneAC" maxlength="3" size="3"/>) <html:text property="homePhonePre" maxlength="3" size="3"/> - <html:text property="homePhoneSuff"maxlength="4" size="4"/> </td> </tr> <tr> <td><bean:message key="label.workphone"/></td> <td> (<html:text property="workPhoneAC" maxlength="3" size="3"/>) <html:text property="workPhonePre" maxlength="3" size="3"/> - <html:text property="workPhoneSuff"maxlength="4" size="4"/> </td> </tr> <tr> <td><bean:message key="label.mobilephone"/></td> <td> (<html:text property="mobilePhoneAC" maxlength="3" size="3"/>) <html:text property="mobilePhonePre" maxlength="3" size="3"/> - <html:text property="mobilePhoneSuff"maxlength="4" size="4"/> </td> </tr> <tr> <td><bean:message key="label.preferredphone"/> *</td> <td> <html:select property="preferredPhone"> <html:option value="H">Home</html:option> <html:option value="W">Work</html:option> <html:option value="M">Mobile</html:option> </html:select> </td> </tr> <tr> <td colspan="2"><b><br/><bean:message key="label.email"/> </b></td> </tr> <tr> <td colspan="2"><html:text property="emailAddress"/></td> </tr> <tr> <td colspan="2"><b><br/><bean:message key="system.user.info.heading"/></b></td> </tr> <tr> <td colspan="2"> <p> Please create a unique user name and password for the system. Should you need to edit your member information, you will be required to enter this user name and password. Please take care to remember your password. The system does not currently email password reminders. </p> </td> </tr> <tr> <td><bean:message key="label.username"/> *</td> <td><html:text property="userName"/></td> </tr> <tr> <td><bean:message key="label.password"/> *</td> <td><html:password property="password"/></td> </tr> <tr> <td><bean:message key="label.password2"/> *</td> <td><html:password property="password2"/></td> </tr> </table> <h2><bean:message key="step2.heading"/></h2> <p> Please select from the following list anything you currently know how to do at any level or are interested in learning. The next few screens will give you the oppurtunity to further explain how well you know these skills. </p> <tiles:insert definition="skillsList"/> --- NEW FILE: skillq.jsp --- <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-html.tld" prefix="html" %> <tiles:importAttribute /> <% String questionId = (String) pageContext.findAttribute("questionId"); String selectProperty = (String) pageContext.findAttribute("selectProperty"); %> <html:select property="<%= selectProperty %>"> <html:options collection="<%= "responses" + questionId %>" property="responseId" labelProperty="description"/> </html:select> --- NEW FILE: skilllevel.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <h2>Step 3: Select Skill Levels </h2> <p> The skills you selected are listed below. For each one, please select your skill level according to the following legend: </p> <ul> <li> Select <b>Beginner</b> if the skill is something you would like to learn or have very little experience with. </li> <li> Select <b>Intermediate</b> if you have had some experience with the skill and are comfortable doing it as part of a group, but not playing a lead role. </li> <li> Select <b>Advanced</b> if you are comfortable enough with the skill to play a lead role. </li> <li> Select <b>Expert</b> if you have or feel you could perform the selected skill in a professional environment. </li> </ul> <table class-"box" cellpadding="3" cellspacing="0"> <tr> <th>Skill</th> <th>Skill Level</th> </tr> <logic:iterate name="jgatms/memberInfo" property="skillProfiles" id="skillProfile" indexId="i"> <tr> <td><bean:write name="skillProfile" property="skill.name"/></td> <td> <html:select property="<%= "skillLevel[" + i + "]" %>"> <html:option value="0">Beginner</html:option> <html:option value="1">Intermediate</html:option> <html:option value="2">Advanced</html:option> <html:option value="3">Expert</html:option> </html:select> </td> </tr> </logic:iterate> </table> --- NEW FILE: memberlist.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <html> <head> <title>JGATMS: Member List</title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1>Member List</h1> <a href="index.jsp">Home</a><br/><br/> <table class="box" cellspacing="0" cellpadding="3" width="60%"> <tr> <th align="left"> Member Name</th> <th align="left">Preferred Daytime Phone</th> <th align="left">Email Address</th> </tr> <logic:iterate name="members" indexId="i" id="member"> <% String styleClass = "oddRow"; if (i.intValue() % 2 == 0) { styleClass = "oddRow"; } else { styleClass = "evenRow"; } %> <tr class="<%= styleClass %>"> <td> <html:link action="viewmemberdetail" paramName="member" paramProperty="memberId" paramId="memberId"> <bean:write name="member" property="firstName"/> <bean:write name="member" property="lastName"/> </html:link> </td> <td> <logic:equal name="member" property="preferredPhone" value="H"> <bean:write name="member" property="homePhone"/> </logic:equal> <logic:equal name="member" property="preferredPhone" value="W"> <bean:write name="member" property="workPhone"/> </logic:equal> <logic:equal name="member" property="preferredPhone" value="M"> <bean:write name="member" property="mobilePhone"/> </logic:equal> </td> <td><bean:write name="member" property="emailAddress"/></td> </tr> </logic:iterate> </table> </body> </html> --- NEW FILE: wizard.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <tiles:useAttribute name="action" classname="java.lang.String"/> <tiles:useAttribute name="focus" ignore="true" classname="java.lang.String"/> <html> <head> <title><tiles:getAsString name="title"/></title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1><tiles:getAsString name="function"/></h1> <html:errors/> <html:form action="<%= action %>" > <tiles:insert name="content"/> <tiles:insert name="footer"/> </html:form> <script type="text/javascript" language="JavaScript"> <!-- var focusElement = "<%= focus %>"; var focusControl = document.forms[0].elements[focusElement]; if (focusControl != null) { if (focusControl.type != "hidden") { focusControl.focus(); } } // --> </script> </body> </html> --- NEW FILE: reviewmember.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h2>Step 5: Review Information</h2> <p> Please review the information you entered and make sure it is correct. To make changes use the "Back" button below. When you are satisfied that the information is correct click the "Finish" button to save your information. </p> <tiles:insert page="/memberinfo.jsp"/> --- NEW FILE: index.jsp --- <html> <head> <title>Java Group And Team Management System</title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1>Welcome to JGATMS: The Java Group And Team Management System.</h1> <b>Commands</b><br/> <ul> <li><a href="addmember.do">Register New Member</a></li> <li><a href="editmember.do">Edit Your Member Information</a></li> <li><a href="viewmemberlist.do">View Member List</a></li> </ul> </body> </html> --- NEW FILE: memberinfo.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <h3>Personal Information</h3> <table> <tr> <td colspan="2"><b>Name and Address</b></td> </tr> <tr> <td>First Name </td> <td><bean:write name="jgatms/memberInfo" property="firstName"/></td> </tr> <tr> <td>Last Name </td> <td><bean:write name="jgatms/memberInfo" property="lastName"/></td> </tr> <tr> <td>Street Address </td> <td><bean:write name="jgatms/memberInfo" property="address1"/></td> </tr> <tr> <td>Address 2</td> <td><bean:write name="jgatms/memberInfo" property="address2"/></td> </tr> <tr> <td>City </td> <td><bean:write name="jgatms/memberInfo" property="city"/></td> </tr> <tr> <td>State </td> <td><bean:write name="jgatms/memberInfo" property="state.description"/></td> </tr> <tr> <td>Zip Code </td> <td><bean:write name="jgatms/memberInfo" property="zipCode"/></td> </tr> <tr> <td colspan="2"><b><br/>Phone Numbers </b></td> </tr> <tr> <td>Home Phone</td> <td><bean:write name="jgatms/memberInfo" property="homePhone"/></td> </tr> <tr> <td>Work Phone</td> <td><bean:write name="jgatms/memberInfo" property="workPhone"/></td> </tr> <tr> <td>Mobile Phone</td> <td><bean:write name="jgatms/memberInfo" property="mobilePhone"/></td> </tr> <tr> <td>Preferred Daytime Phone </td> <td><bean:write name="jgatms/memberInfo" property="preferredPhone"/></td> </tr> <tr> <td><b><br/>Email Address</b></td> <td><bean:write name="jgatms/memberInfo" property="emailAddress"/></td> </tr> <tr> <td colspan="2"><b><br/>System User Information</b></td> </tr> <tr> <td>User Name </td> <td><bean:write name="jgatms/memberInfo" property="userName"/></td> </tr> <tr> <td>Password </td> <td></td> </tr> </tr> </table> <h3>Skills Survey Responses</h3> <table class="box" cellspacing="0" cellpadding="3" width="60%"> <logic:iterate name="jgatms/memberInfo" property="skillProfiles" id="skillProfile" > <tr class="heading"><td colspan="2"> <b> <bean:write name="skillProfile" property="skill.name"/>: <bean:write name="skillProfile" property="level.description"/></b> </td></tr> <logic:iterate name="skillProfile" property="questionResponses" id="questionResponse" indexId="i"> <% String styleClass = "oddRow"; if (i.intValue() % 2 == 0) { styleClass = "oddRow"; } else { styleClass = "evenRow"; } %> <tr class="<%= styleClass %>"> <td> <bean:write name="questionResponse" property="questionResponse.question.question"/></td> <td><b><bean:write name="questionResponse" property="questionResponse.response.description"/></b></td> </tr> </logic:iterate> </logic:iterate> </table> --- NEW FILE: confirmmember.jsp --- <%@ taglib uri="struts-html.tld" prefix="html" %> <%@ taglib uri="struts-logic.tld" prefix="logic" %> <%@ taglib uri="struts-bean.tld" prefix="bean" %> <%@ taglib uri="struts-tiles.tld" prefix="tiles" %> <tiles:importAttribute/> <html> <head> <title> <bean:message key="register.new.member.title"/></title> <link rel="stylesheet" type="text/css" href="styles/styles.css"/> </head> <body> <h1><bean:write name="heading"/></h1> <p> Your member information was successfully saved. </p> <a href="index.jsp"><bean:message key="link.continue"/></a> </body> </html> |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:14:00
|
Update of /cvsroot/jgatms/jgatms-core/src/webapp/styles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8196/src/webapp/styles Added Files: styles.css Log Message: Moving web application code from /web to /src/webapp. --- NEW FILE: styles.css --- body { font-family: Helvetica, Arial; font-size: 10pt; background-color: #f9f4de; } table { font-family: Helvetica, Arial; font-size: 10pt; } th { color: white; background-color: #1b6618; } tr.oddRow { background-color: #eae8e8; } tr.evenRow { background-color: white; } tr.heading { padding-left="10px"; color: white; background-color: #1b6618; } h3 { padding-left="10px"; color: white; background-color: #1b6618; border-style: solid; border-width: 1px; border-color: black; } table.box { border-style: solid; border-width: 1px; border-color: black; /* border-left: 2px: border-top: 2px; border-right: 2px; border-bottom: 2px; */ } .errorHeader { font-family: Helvetica, Arial; color: white; padding-left: 5px; padding-bottom: 3px; padding-right: 5px; background-color: red; border-style: solid; border-color: black; border-width: 1px; font-size: 10pt; } .errorText { font-family: Helvetica, Arial; font-size: 10pt; color: red; } |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:12:30
|
Update of /cvsroot/jgatms/jgatms-core/src/webapp/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7952/src/webapp/WEB-INF Log Message: Directory /cvsroot/jgatms/jgatms-core/src/webapp/WEB-INF added to the repository |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:12:19
|
Update of /cvsroot/jgatms/jgatms-core/src/webapp/styles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7880/src/webapp/styles Log Message: Directory /cvsroot/jgatms/jgatms-core/src/webapp/styles added to the repository |
|
From: Greg R. <gr...@us...> - 2004-04-30 21:12:08
|
Update of /cvsroot/jgatms/jgatms-core/src/webapp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7793/src/webapp Log Message: Directory /cvsroot/jgatms/jgatms-core/src/webapp added to the repository |
|
From: Greg R. <gr...@us...> - 2004-04-30 20:39:24
|
Update of /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1472/src/test/inklings/jgatms/command Modified Files: AddMemberTest.java Log Message: Completed Member Add command chain. Index: AddMemberTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/AddMemberTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AddMemberTest.java 6 Apr 2004 22:52:25 -0000 1.2 --- AddMemberTest.java 30 Apr 2004 20:39:15 -0000 1.3 *************** *** 4,7 **** --- 4,8 ---- import java.util.List; import java.util.ArrayList; + import java.util.Iterator; import org.apache.commons.chain.Command; *************** *** 10,13 **** --- 11,20 ---- import inklings.jgatms.bean.Member; + import inklings.jgatms.bean.Skill; + import inklings.jgatms.bean.SkillLevel; + import inklings.jgatms.bean.SkillProfile; + import inklings.jgatms.bean.Question; + import inklings.jgatms.bean.Response; + import inklings.jgatms.bean.QuestionResponseProfile; import inklings.jgatms.bean.State; import inklings.jgatms.CommandKeys; *************** *** 58,73 **** member.setPassword("user1"); - /* - Work in progress on adding skill Profiles. - List skillProfiles = new ArrayList(); SkillProfile skillProfile = new SkillProfile(); Skill skill = (Skill) skills.get(0); SkillLevel skillLevel = new SkillLevel(); ! skillLevel.setLevelId(0); skillProfile.setSkill(skill); skillProfile.setSkillLevel(skillLevel); ! */ context.setMember(member); --- 65,118 ---- member.setPassword("user1"); List skillProfiles = new ArrayList(); SkillProfile skillProfile = new SkillProfile(); + // Get the first skill. Skill skill = (Skill) skills.get(0); + + // dummy up the skill level. SkillLevel skillLevel = new SkillLevel(); ! skillLevel.setLevelId(new Long(0)); skillProfile.setSkill(skill); skillProfile.setSkillLevel(skillLevel); ! ! // Provide answers to skill questions. ! List questions = skill.getQuestions(); ! Iterator i = questions.iterator(); ! while (i.hasNext()) { ! Question question = (Question) i.next(); ! Response response = (Response) question.getPossibleResponses().get(0); ! QuestionResponseProfile qrProfile = new QuestionResponseProfile(); ! qrProfile.setQuestion(question); ! qrProfile.setResponse(response); ! skillProfile.getQuestionResponses().add(qrProfile); ! } ! ! skillProfile.setMember(member); ! member.getSkills().add(skillProfile); ! ! // Add another skill. ! skillProfile = new SkillProfile(); ! skill = (Skill) skills.get(1); ! ! // dummy up the skill level. ! skillProfile.setSkill(skill); ! skillProfile.setSkillLevel(skillLevel); ! ! // Provide answers to skill questions. ! questions = skill.getQuestions(); ! i = questions.iterator(); ! while (i.hasNext()) { ! Question question = (Question) i.next(); ! Response response = (Response) question.getPossibleResponses().get(0); ! QuestionResponseProfile qrProfile = new QuestionResponseProfile(); ! qrProfile.setQuestion(question); ! qrProfile.setResponse(response); ! skillProfile.getQuestionResponses().add(qrProfile); ! } ! ! skillProfile.setMember(member); ! member.getSkills().add(skillProfile); ! context.setMember(member); |
|
From: Greg R. <gr...@us...> - 2004-04-30 20:39:24
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/bean In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1472/src/prod/inklings/jgatms/bean Modified Files: Member.java SkillProfile.java Log Message: Completed Member Add command chain. Index: SkillProfile.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/bean/SkillProfile.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SkillProfile.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- SkillProfile.java 30 Apr 2004 20:39:15 -0000 1.2 *************** *** 2,5 **** --- 2,6 ---- import java.util.List; + import java.util.ArrayList; /** *************** *** 14,17 **** --- 15,22 ---- private List questionResponses; + public SkillProfile() { + questionResponses = new ArrayList(); + } + /** * Returns the value of skillProfileId Index: Member.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/bean/Member.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Member.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- Member.java 30 Apr 2004 20:39:15 -0000 1.2 *************** *** 2,5 **** --- 2,6 ---- import java.util.List; + import java.util.ArrayList; /** *************** *** 26,29 **** --- 27,34 ---- private List skills; + public Member() { + skills = new ArrayList(); + } + /** * Returns the value of firstName |
|
From: Greg R. <gr...@us...> - 2004-04-30 20:38:58
|
Update of /cvsroot/jgatms/jgatms-core/config/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1375/config/test Added Files: hibernate.cfg.xml Log Message: Added Hibernate configuration for testing. The Production config file will be modified to get the connection from a data source. --- NEW FILE: hibernate.cfg.xml --- <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd"> <hibernate-configuration> <!-- a SessionFactory instance listed as /jndi/name --> <session-factory name="hibernate/sessionFactory"> <!-- shared properties --> <property name="show_sql">false</property> <property name="use_outer_join">true</property> <property name="jta.UserTransaction"> java:comp/UserTransaction/ </property> <!-- properties for this SessionFactory only --> <property name="connection.driver_class">org.postgresql.Driver</property> <property name="connection.url">jdbc:postgresql:jgatms</property> <property name="connection.username">greddin</property> <property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property> <mapping resource="State.hbm.xml"/> <mapping resource="Question.hbm.xml"/> <mapping resource="Response.hbm.xml"/> <mapping resource="SkillLevel.hbm.xml"/> <mapping resource="Skill.hbm.xml"/> <mapping resource="SkillProfile.hbm.xml"/> <mapping resource="Member.hbm.xml"/> </session-factory> </hibernate-configuration> |
|
From: Greg R. <gr...@us...> - 2004-04-06 23:05:18
|
Update of /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3496/src/test/inklings/jgatms/command Modified Files: AddMemberTest.java AddResponseToQuestionTest.java BaseTestCase.java GetMemberListTest.java GetQuestionTest.java GetQuestionsTest.java GetResponsesTest.java GetSkillsListTest.java Added Files: GetSkillLevelsTest.java Log Message: Added tests for AddMember and GetSkillLevels. Also added the assertSuccess() method to BaseTestCase to help validate the dispatch codes returned from commands. Index: GetSkillsListTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetSkillsListTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GetSkillsListTest.java 1 Apr 2004 23:01:36 -0000 1.2 --- GetSkillsListTest.java 6 Apr 2004 22:52:25 -0000 1.3 *************** *** 31,36 **** command.execute(context); String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); List skills = (List) context.get(ContextKeys.SKILL_LIST_KEY); --- 31,35 ---- command.execute(context); String dispatch = context.getDispatch(); ! assertSuccess(dispatch); List skills = (List) context.get(ContextKeys.SKILL_LIST_KEY); Index: AddMemberTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/AddMemberTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AddMemberTest.java 6 Apr 2004 21:00:15 -0000 1.1 --- AddMemberTest.java 6 Apr 2004 22:52:25 -0000 1.2 *************** *** 2,5 **** --- 2,8 ---- package inklings.jgatms.command; + import java.util.List; + import java.util.ArrayList; + import org.apache.commons.chain.Command; import org.apache.commons.chain.Context; *************** *** 7,10 **** --- 10,14 ---- import inklings.jgatms.bean.Member; + import inklings.jgatms.bean.State; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; *************** *** 22,35 **** JgatmsContext context = new JgatmsContext(); ! Command command = catalog.getCommand(CommandKeys.ADD_MEMBER); assertNotNull(CommandKeys.ADD_MEMBER + " not found", command); Member member = new Member(); context.setMember(member); command.execute(context); ! String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); } } --- 26,78 ---- JgatmsContext context = new JgatmsContext(); ! Command command = catalog.getCommand(CommandKeys.GET_SKILLS_LIST); ! assertNotNull(CommandKeys.GET_SKILLS_LIST + " not found.", command); ! ! command.execute(context); ! String dispatch = context.getDispatch(); ! assertSuccess(dispatch); ! ! List skills = (List) context.get(ContextKeys.SKILL_LIST_KEY); ! assertNotNull(ContextKeys.SKILL_LIST_KEY + " not found.", skills); ! ! command = catalog.getCommand(CommandKeys.ADD_MEMBER); assertNotNull(CommandKeys.ADD_MEMBER + " not found", command); Member member = new Member(); + member.setFirstName("MaryLou"); + member.setLastName("Johamous"); + member.setGender("M"); + member.setAddress1("123 Some St."); + member.setAddress2("Apt A"); + member.setCity("Texarkana"); + State state = new State(); + state.setStateId("AR"); + member.setState(state); + member.setZipCode("72134"); + member.setHomePhone("(501) 514-1234"); + member.setWorkPhone("(501) 514-4567"); + member.setMobilePhone("(501) 514-8972"); + member.setPreferredPhone("M"); + member.setEmailAddress("on...@th..."); + member.setUserName("user1"); + member.setPassword("user1"); + + /* + Work in progress on adding skill Profiles. + + List skillProfiles = new ArrayList(); + SkillProfile skillProfile = new SkillProfile(); + + Skill skill = (Skill) skills.get(0); + SkillLevel skillLevel = new SkillLevel(); + skillLevel.setLevelId(0); + skillProfile.setSkill(skill); + skillProfile.setSkillLevel(skillLevel); + */ context.setMember(member); command.execute(context); ! dispatch = context.getDispatch(); ! assertSuccess(dispatch); } } Index: GetQuestionTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetQuestionTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GetQuestionTest.java 1 Apr 2004 23:01:36 -0000 1.2 --- GetQuestionTest.java 6 Apr 2004 22:52:25 -0000 1.3 *************** *** 31,36 **** command.execute(context); String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Question question = (Question) context.get(ContextKeys.QUESTION_KEY); --- 31,35 ---- command.execute(context); String dispatch = context.getDispatch(); ! assertSuccess(dispatch); Question question = (Question) context.get(ContextKeys.QUESTION_KEY); Index: AddResponseToQuestionTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/AddResponseToQuestionTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AddResponseToQuestionTest.java 1 Apr 2004 23:01:36 -0000 1.2 --- AddResponseToQuestionTest.java 6 Apr 2004 22:52:25 -0000 1.3 *************** *** 33,38 **** command.execute(context); String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Question question = (Question) context.get(ContextKeys.QUESTION_KEY); --- 33,37 ---- command.execute(context); String dispatch = context.getDispatch(); ! assertSuccess(dispatch); Question question = (Question) context.get(ContextKeys.QUESTION_KEY); *************** *** 49,54 **** command.execute(context); dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); } } --- 48,52 ---- command.execute(context); dispatch = context.getDispatch(); ! assertSuccess(dispatch); } } Index: GetMemberListTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetMemberListTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GetMemberListTest.java 1 Apr 2004 23:01:36 -0000 1.2 --- GetMemberListTest.java 6 Apr 2004 22:52:25 -0000 1.3 *************** *** 37,42 **** command.execute(context); String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); List members = (List) context.get(ContextKeys.MEMBER_LIST_KEY); --- 37,41 ---- command.execute(context); String dispatch = context.getDispatch(); ! assertSuccess(dispatch); List members = (List) context.get(ContextKeys.MEMBER_LIST_KEY); --- NEW FILE: GetSkillLevelsTest.java --- package inklings.jgatms.command; import java.util.List; import java.util.Iterator; import org.apache.commons.chain.Command; import org.apache.commons.chain.Context; import org.apache.commons.chain.impl.ContextBase; import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; import inklings.jgatms.bean.SkillLevel; /** * Tests the <code>GetSkillLevels</code> JGATMS command. */ public class GetSkillLevelsTest extends BaseTestCase { /** * Verifies that the list of levels can be retrieved. */ public void testGetSkillLevels() throws Exception { JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.GET_SKILL_LEVELS); assertNotNull(CommandKeys.GET_SKILL_LEVELS + " not found", command); command.execute(context); String dispatch = context.getDispatch(); assertSuccess(dispatch); List skillLevels = (List) context.get(ContextKeys.SKILL_LEVELS_KEY); assertNotNull(ContextKeys.SKILL_LEVELS_KEY + " not found.", skillLevels); Iterator i = skillLevels.iterator(); while (i.hasNext()) { SkillLevel skillLevel = (SkillLevel) i.next(); System.out.println("LevelId: " + skillLevel.getLevelId()); System.out.println("LevelName: " + skillLevel.getDescription()); System.out.println("=================================="); } } } Index: GetQuestionsTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetQuestionsTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GetQuestionsTest.java 1 Apr 2004 23:01:36 -0000 1.2 --- GetQuestionsTest.java 6 Apr 2004 22:52:25 -0000 1.3 *************** *** 30,35 **** command.execute(context); String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); List questions = (List) context.get(ContextKeys.QUESTION_LIST_KEY); --- 30,34 ---- command.execute(context); String dispatch = context.getDispatch(); ! assertSuccess(dispatch); List questions = (List) context.get(ContextKeys.QUESTION_LIST_KEY); Index: BaseTestCase.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/BaseTestCase.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** BaseTestCase.java 29 Jan 2004 23:38:37 -0000 1.1.1.1 --- BaseTestCase.java 6 Apr 2004 22:52:25 -0000 1.2 *************** *** 11,14 **** --- 11,16 ---- import org.apache.commons.chain.config.ConfigParser; + import inklings.jgatms.ContextKeys; + /** * Base test case for JGATMS commands. *************** *** 30,32 **** --- 32,39 ---- } + protected void assertSuccess(String dispatch) { + assertTrue("Unsuccessful command execution.", + (dispatch == null || dispatch.equals(ContextKeys.SUCCESS_DISPATCH)) ); + } + } Index: GetResponsesTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetResponsesTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GetResponsesTest.java 1 Apr 2004 23:01:36 -0000 1.2 --- GetResponsesTest.java 6 Apr 2004 22:52:25 -0000 1.3 *************** *** 30,35 **** command.execute(context); String dispatch = context.getDispatch(); ! assertTrue("Unsuccessful command execution.", ! dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); List responses = (List) context.get(ContextKeys.RESPONSE_LIST_KEY); --- 30,34 ---- command.execute(context); String dispatch = context.getDispatch(); ! assertSuccess(dispatch); List responses = (List) context.get(ContextKeys.RESPONSE_LIST_KEY); |
|
From: Greg R. <gr...@us...> - 2004-04-06 23:02:44
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2862/src/prod/inklings/jgatms/command Modified Files: AddResponseToQuestion.java BaseCommand.java BuildSessionFactory.java GetMemberList.java GetQuestion.java GetQuestions.java GetResponses.java GetSkillsList.java OpenSession.java Added Files: AddMember.java GetSkillLevels.java Log Message: Added keys for AddMember and GetSkillLevels commands --- NEW FILE: GetSkillLevels.java --- package inklings.jgatms.command; import java.util.List; import net.sf.hibernate.Session; import org.apache.commons.chain.Context; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import inklings.jgatms.ContextKeys; import inklings.jgatms.context.JgatmsContext; /** * Gets a list of skill levels and loads it into context. * * @author Greg Reddin */ public class GetSkillLevels extends BaseCommand { private static Log log = LogFactory.getLog(GetSkillsList.class); public String getSkillLevelsKey() { return ContextKeys.SKILL_LEVELS_KEY; } public boolean execute(JgatmsContext context) throws Exception { Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } List skillLevels = null; String query = "from skillLevel in class inklings.jgatms.bean.SkillLevel"; try { skillLevels = session.find(query); context.put(getSkillLevelsKey(), skillLevels); } catch (Exception e) { log.fatal("Error getting skill levels list.", e); context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { if (session != null) session.close(); } return false; } } Index: BaseCommand.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/BaseCommand.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** BaseCommand.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- BaseCommand.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 6,9 **** --- 6,10 ---- import inklings.jgatms.ContextKeys; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 14,27 **** public abstract class BaseCommand implements Command { ! public String getHibernateSessionKey() { ! return ContextKeys.HIBERNATE_SESSION_KEY; ! } ! ! public String getHibernateSessionFactoryKey() { ! return ContextKeys.HIBERNATE_SESSION_FACTORY_KEY; } ! public String getDispatchKey() { ! return ContextKeys.DISPATCH_KEY; ! } } --- 15,26 ---- public abstract class BaseCommand implements Command { ! public boolean execute(Context context) throws Exception { ! if (context instanceof JgatmsContext) { ! return execute((JgatmsContext) context); ! } else { ! return false; ! } } ! public abstract boolean execute(JgatmsContext context) throws Exception; } Index: GetQuestions.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/GetQuestions.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetQuestions.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- GetQuestions.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- import inklings.jgatms.ContextKeys; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 25,34 **** } ! public boolean execute(Context context) throws Exception { ! Session session = (Session) context.get(getHibernateSessionKey()); if (session == null) { log.error("No Hibernate Session object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 26,35 ---- } ! public boolean execute(JgatmsContext context) throws Exception { ! Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 40,47 **** questions = session.find(query); context.put(getQuestionsKey(), questions); - context.put(ContextKeys.DISPATCH_KEY, ContextKeys.SUCCESS_DISPATCH); } catch (Exception e) { log.fatal("Error getting question list.", e); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } finally { --- 41,47 ---- questions = session.find(query); context.put(getQuestionsKey(), questions); } catch (Exception e) { log.fatal("Error getting question list.", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { Index: GetSkillsList.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/GetSkillsList.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetSkillsList.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- GetSkillsList.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- import inklings.jgatms.ContextKeys; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 25,34 **** } ! public boolean execute(Context context) throws Exception { ! Session session = (Session) context.get(getHibernateSessionKey()); if (session == null) { log.error("No Hibernate Session object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 26,35 ---- } ! public boolean execute(JgatmsContext context) throws Exception { ! Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 40,47 **** skills = session.find(query); context.put(getSkillsKey(), skills); - context.put(ContextKeys.DISPATCH_KEY, ContextKeys.SUCCESS_DISPATCH); } catch (Exception e) { log.fatal("Error getting skills list.", e); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } finally { --- 41,47 ---- skills = session.find(query); context.put(getSkillsKey(), skills); } catch (Exception e) { log.fatal("Error getting skills list.", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { Index: GetQuestion.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/GetQuestion.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetQuestion.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- GetQuestion.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 12,15 **** --- 12,16 ---- import inklings.jgatms.ContextKeys; import inklings.jgatms.bean.Question; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 30,39 **** } ! public boolean execute(Context context) throws Exception { ! Session session = (Session) context.get(getHibernateSessionKey()); if (session == null) { log.error("No Hibernate Session object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 31,40 ---- } ! public boolean execute(JgatmsContext context) throws Exception { ! Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 42,46 **** if (questionId == null) { log.error("Can't get question. No questionId present."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 43,47 ---- if (questionId == null) { log.error("Can't get question. No questionId present."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 50,57 **** Question.class, questionId); context.put(getQuestionKey(), question); - context.put(ContextKeys.DISPATCH_KEY, ContextKeys.SUCCESS_DISPATCH); } catch (Exception e) { log.fatal("Error getting question.", e); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } finally { --- 51,57 ---- Question.class, questionId); context.put(getQuestionKey(), question); } catch (Exception e) { log.fatal("Error getting question.", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { --- NEW FILE: AddMember.java --- package inklings.jgatms.command; import net.sf.hibernate.Session; import net.sf.hibernate.Transaction; import org.apache.commons.chain.Context; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import inklings.jgatms.ContextKeys; import inklings.jgatms.bean.Member; import inklings.jgatms.context.JgatmsContext; /** * Adds a member to the JGATMS database. * * @author Greg Reddin */ public class AddMember extends BaseCommand { private static Log log = LogFactory.getLog(AddMember.class); public boolean execute(JgatmsContext context) throws Exception { Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } Member member = context.getMember(); if (member == null) { log.error("No JGATMS member bean found."); context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } Transaction tx = null; try { tx = session.beginTransaction(); session.save(member); tx.commit(); } catch (Exception e) { if (tx != null) { tx.rollback(); } log.fatal("Could not add response to question.", e); context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { if (session != null) session.close(); } return false; } } Index: OpenSession.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/OpenSession.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OpenSession.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- OpenSession.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import inklings.jgatms.ContextKeys; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 24,35 **** private static Log log = LogFactory.getLog(OpenSession.class); ! public boolean execute(Context context) throws Exception { ! SessionFactory sf = (SessionFactory) ! context.get(getHibernateSessionFactoryKey()); if (sf == null) { log.error( "No Hibernate SessionFactory found in application scope."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 25,35 ---- private static Log log = LogFactory.getLog(OpenSession.class); ! public boolean execute(JgatmsContext context) throws Exception { ! SessionFactory sf = context.getSessionFactory(); if (sf == null) { log.error( "No Hibernate SessionFactory found in application scope."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 38,46 **** if (session == null) { log.error("Cannot add item: unable to create session"); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } ! context.put(getHibernateSessionKey(), session); return false; } --- 38,46 ---- if (session == null) { log.error("Cannot add item: unable to create session"); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } ! context.setSession(session); return false; } Index: BuildSessionFactory.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/BuildSessionFactory.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** BuildSessionFactory.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- BuildSessionFactory.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import inklings.jgatms.ContextKeys; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 24,31 **** private static Log log = LogFactory.getLog(BuildSessionFactory.class); ! public boolean execute(Context context) throws Exception { ! SessionFactory sf = (SessionFactory) ! context.get(getHibernateSessionFactoryKey()); if (sf == null) { --- 25,31 ---- private static Log log = LogFactory.getLog(BuildSessionFactory.class); ! public boolean execute(JgatmsContext context) throws Exception { ! SessionFactory sf = context.getSessionFactory(); if (sf == null) { *************** *** 34,44 **** } catch (Exception e) { log.fatal("Unable to initialize database connection", e); ! context.put(ContextKeys.DISPATCH_KEY, ! ContextKeys.FATAL_DISPATCH); return true; } } ! context.put(getHibernateSessionFactoryKey(), sf); return false; } --- 34,43 ---- } catch (Exception e) { log.fatal("Unable to initialize database connection", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } } ! context.setSessionFactory(sf); return false; } Index: GetResponses.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/GetResponses.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetResponses.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- GetResponses.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- import inklings.jgatms.ContextKeys; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 25,34 **** } ! public boolean execute(Context context) throws Exception { ! Session session = (Session) context.get(getHibernateSessionKey()); if (session == null) { log.error("No Hibernate Session object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 26,35 ---- } ! public boolean execute(JgatmsContext context) throws Exception { ! Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 40,47 **** responses = session.find(query); context.put(getResponsesKey(), responses); - context.put(ContextKeys.DISPATCH_KEY, ContextKeys.SUCCESS_DISPATCH); } catch (Exception e) { log.fatal("Error getting response list.", e); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } finally { --- 41,47 ---- responses = session.find(query); context.put(getResponsesKey(), responses); } catch (Exception e) { log.fatal("Error getting response list.", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { Index: GetMemberList.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/GetMemberList.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetMemberList.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- GetMemberList.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 12,15 **** --- 12,16 ---- import inklings.jgatms.ContextKeys; import inklings.jgatms.bean.Question; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 26,35 **** } ! public boolean execute(Context context) throws Exception { ! Session session = (Session) context.get(getHibernateSessionKey()); if (session == null) { log.error("No Hibernate Session object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 27,36 ---- } ! public boolean execute(JgatmsContext context) throws Exception { ! Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 41,48 **** members = session.find(query); context.put(getMembersKey(), members); - context.put(ContextKeys.DISPATCH_KEY, ContextKeys.SUCCESS_DISPATCH); } catch (Exception e) { log.fatal("Error getting members.", e); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } finally { --- 42,48 ---- members = session.find(query); context.put(getMembersKey(), members); } catch (Exception e) { log.fatal("Error getting members.", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { Index: AddResponseToQuestion.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/command/AddResponseToQuestion.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** AddResponseToQuestion.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- AddResponseToQuestion.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 14,17 **** --- 14,18 ---- import inklings.jgatms.bean.Question; import inklings.jgatms.bean.Response; + import inklings.jgatms.context.JgatmsContext; /** *************** *** 24,33 **** private static Log log = LogFactory.getLog(AddResponseToQuestion.class); ! public boolean execute(Context context) throws Exception { ! Session session = (Session) context.get(getHibernateSessionKey()); if (session == null) { log.error("No Hibernate Session object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 25,34 ---- private static Log log = LogFactory.getLog(AddResponseToQuestion.class); ! public boolean execute(JgatmsContext context) throws Exception { ! Session session = context.getSession(); if (session == null) { log.error("No Hibernate Session object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 36,40 **** if (question == null) { log.error("Cannot add response. No question object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 37,41 ---- if (question == null) { log.error("Cannot add response. No question object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 43,47 **** if (response == null) { log.error("Cannot add response. No response object found."); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } --- 44,48 ---- if (response == null) { log.error("Cannot add response. No response object found."); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } *************** *** 53,57 **** session.update(question); tx.commit(); - context.put(ContextKeys.DISPATCH_KEY, ContextKeys.SUCCESS_DISPATCH); } catch (Exception e) { if (tx != null) { --- 54,57 ---- *************** *** 60,64 **** log.fatal("Could not add response to question.", e); ! context.put(ContextKeys.DISPATCH_KEY, ContextKeys.FATAL_DISPATCH); return true; } finally { --- 60,64 ---- log.fatal("Could not add response to question.", e); ! context.setDispatch(ContextKeys.FATAL_DISPATCH); return true; } finally { |
|
From: Greg R. <gr...@us...> - 2004-04-06 23:02:43
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/context In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2862/src/prod/inklings/jgatms/context Modified Files: JgatmsContext.java Log Message: Added keys for AddMember and GetSkillLevels commands Index: JgatmsContext.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/context/JgatmsContext.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JgatmsContext.java 1 Apr 2004 23:01:01 -0000 1.1 --- JgatmsContext.java 6 Apr 2004 22:49:50 -0000 1.2 *************** *** 4,7 **** --- 4,10 ---- import org.apache.commons.chain.impl.ContextBase; + import net.sf.hibernate.Session; + import net.sf.hibernate.SessionFactory; + import inklings.jgatms.bean.Member; import inklings.jgatms.ContextKeys; *************** *** 42,44 **** --- 45,75 ---- put(ContextKeys.DISPATCH_KEY, dispatch); } + + /** + * Returns the Hibernate SessionFactory. + */ + public SessionFactory getSessionFactory() { + return (SessionFactory) get(ContextKeys.HIBERNATE_SESSION_FACTORY_KEY); + } + + /** + * Sets the Hibernate SessionFactory. + */ + public void setSessionFactory(SessionFactory sessionFactory) { + put(ContextKeys.HIBERNATE_SESSION_FACTORY_KEY, sessionFactory); + } + + /** + * Returns the Hibernate session. + */ + public Session getSession() { + return (Session) get(ContextKeys.HIBERNATE_SESSION_KEY); + } + + /** + * Sest the Hibernate session. + */ + public void setSession(Session session) { + put(ContextKeys.HIBERNATE_SESSION_KEY, session); + } } |
|
From: Greg R. <gr...@us...> - 2004-04-06 23:02:42
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2862/src/prod/inklings/jgatms Modified Files: CommandKeys.java ContextKeys.java Log Message: Added keys for AddMember and GetSkillLevels commands Index: ContextKeys.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/ContextKeys.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ContextKeys.java 29 Jan 2004 23:38:13 -0000 1.1.1.1 --- ContextKeys.java 6 Apr 2004 22:49:49 -0000 1.2 *************** *** 10,14 **** private ContextKeys() {} ! public static final String SUCCESS_DISPATCH = "success"; public static final String ERROR_DISPATCH = "error"; public static final String FATAL_DISPATCH = "fatal"; --- 10,14 ---- private ContextKeys() {} ! public static final String SUCCESS_DISPATCH = null; public static final String ERROR_DISPATCH = "error"; public static final String FATAL_DISPATCH = "fatal"; *************** *** 30,33 **** --- 30,34 ---- public static final String RESPONSE_KEY = "jgatms/response"; public static final String SKILL_LIST_KEY = "jgatms/skillsList"; + public static final String SKILL_LEVELS_KEY = "jgatms/skillLevels"; } Index: CommandKeys.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/CommandKeys.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CommandKeys.java 1 Apr 2004 23:00:01 -0000 1.2 --- CommandKeys.java 6 Apr 2004 22:49:49 -0000 1.3 *************** *** 20,23 **** --- 20,24 ---- "addResponseToQuestion"; public static final String GET_SKILLS_LIST = "getSkillsList"; + public static final String GET_SKILL_LEVELS = "getSkillLevels"; public static final String GET_MEMBER_LIST = "getMemberList"; public static final String ADD_MEMBER = "addMember"; |
|
From: Greg R. <gr...@us...> - 2004-04-06 23:01:43
|
Update of /cvsroot/jgatms/jgatms-core/config/prod In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2680/config/prod Modified Files: Member.hbm.xml SkillProfile.hbm.xml Log Message: Changed 'save-update' cascades to 'none' where appropriate in Hibernate mapping files to avoid updating children. Index: Member.hbm.xml =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/config/prod/Member.hbm.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Member.hbm.xml 29 Jan 2004 23:38:10 -0000 1.1.1.1 --- Member.hbm.xml 6 Apr 2004 22:48:50 -0000 1.2 *************** *** 16,20 **** <many-to-one name="state" column="state_id" ! cascade="save-update" class="inklings.jgatms.bean.State"/> --- 16,20 ---- <many-to-one name="state" column="state_id" ! cascade="none" class="inklings.jgatms.bean.State"/> Index: SkillProfile.hbm.xml =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/config/prod/SkillProfile.hbm.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SkillProfile.hbm.xml 29 Jan 2004 23:38:08 -0000 1.1.1.1 --- SkillProfile.hbm.xml 6 Apr 2004 22:48:50 -0000 1.2 *************** *** 13,21 **** <many-to-one name="skill" column="skill_id" ! cascade="save-update" class="inklings.jgatms.bean.Skill"/> <many-to-one name="skillLevel" column="level_id" ! cascade="save-update" class="inklings.jgatms.bean.SkillLevel"/> --- 13,21 ---- <many-to-one name="skill" column="skill_id" ! cascade="none" class="inklings.jgatms.bean.Skill"/> <many-to-one name="skillLevel" column="level_id" ! cascade="none" class="inklings.jgatms.bean.SkillLevel"/> |
|
From: Greg R. <gr...@us...> - 2004-04-06 23:00:25
|
Update of /cvsroot/jgatms/jgatms-core/config/prod In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2401/config/prod Modified Files: jgatms-config.xml Log Message: Added 'AddMember' and 'GetSkilllevels' commands Index: jgatms-config.xml =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/config/prod/jgatms-config.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** jgatms-config.xml 29 Jan 2004 23:38:07 -0000 1.1.1.1 --- jgatms-config.xml 6 Apr 2004 22:47:32 -0000 1.2 *************** *** 3,6 **** --- 3,16 ---- <chains> + <!-- Adds a member to the database --> + <chain name="addMember"> + <command id="1" + className="inklings.jgatms.command.BuildSessionFactory"/> + <command id="2" + className="inklings.jgatms.command.OpenSession"/> + <command id="3" + className="inklings.jgatms.command.AddMember"/> + </chain> + <!-- Gets all skills stored in the system. --> <chain name="getSkillsList"> *************** *** 13,16 **** --- 23,36 ---- </chain> + <!-- Gets all skill Levels stored in the system. --> + <chain name="getSkillLevels"> + <command id="1" + className="inklings.jgatms.command.BuildSessionFactory"/> + <command id="2" + className="inklings.jgatms.command.OpenSession"/> + <command id="3" + className="inklings.jgatms.command.GetSkillLevels"/> + </chain> + <!-- Gets all members stored in the system. --> <chain name="getMemberList"> |
|
From: Greg R. <gr...@us...> - 2004-04-06 21:13:09
|
Update of /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12723/src/test/inklings/jgatms/command Added Files: AddMemberTest.java Log Message: Test class for Add Member command. --- NEW FILE: AddMemberTest.java --- package inklings.jgatms.command; import org.apache.commons.chain.Command; import org.apache.commons.chain.Context; import org.apache.commons.chain.impl.ContextBase; import inklings.jgatms.bean.Member; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; import inklings.jgatms.context.JgatmsContext; /** * Tests the <code>AddMember</code> JGATMS command. */ public class AddMemberTest extends BaseTestCase { /** * Verifies that a member can be added to the database. */ public void testAddMember() throws Exception { JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.ADD_MEMBER); assertNotNull(CommandKeys.ADD_MEMBER + " not found", command); Member member = new Member(); context.setMember(member); command.execute(context); String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); } } |
|
From: Greg R. <gr...@us...> - 2004-04-01 23:14:09
|
Update of /cvsroot/jgatms/jgatms-core/xdocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv989/xdocs Modified Files: architecture.xml Log Message: Added small blurb for JgatmsContext. Index: architecture.xml =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/xdocs/architecture.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** architecture.xml 1 Apr 2004 22:06:44 -0000 1.1 --- architecture.xml 1 Apr 2004 23:02:07 -0000 1.2 *************** *** 51,54 **** --- 51,63 ---- </section> + <section name="JGATMS Context"> + + <p> + The <i>JgatmsContext</i> class is an implementation of the context + that provides easy access to JGATMS-specific attributes. + </p> + + </section> + <section name="JGATMS Commands"> *************** *** 163,170 **** <source> ! context.put(getDispatchKey(), ContextKeys.ERROR_DISPATCH); </source> - The <i>getDispatchKey</i> method is defined in the BaseCommand class. </li> </p> --- 172,178 ---- <source> ! context.setDispatch(ContextKeys.ERROR_DISPATCH); </source> </li> </p> |
|
From: Greg R. <gr...@us...> - 2004-04-01 23:13:38
|
Update of /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv884/src/test/inklings/jgatms/command Modified Files: AddResponseToQuestionTest.java GetMemberListTest.java GetQuestionTest.java GetQuestionsTest.java GetResponsesTest.java GetSkillsListTest.java Log Message: Now using JgatmsContext instead of ContextBase. Index: GetSkillsListTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetSkillsListTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetSkillsListTest.java 29 Jan 2004 23:38:25 -0000 1.1.1.1 --- GetSkillsListTest.java 1 Apr 2004 23:01:36 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import org.apache.commons.chain.impl.ContextBase; + import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.ContextKeys; import inklings.jgatms.CommandKeys; *************** *** 24,33 **** */ public void testGetSkillsList() throws Exception { ! Context context = new ContextBase(); Command command = catalog.getCommand(CommandKeys.GET_SKILLS_LIST); assertNotNull(CommandKeys.GET_SKILLS_LIST + " not found.", command); command.execute(context); ! String dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 25,34 ---- */ public void testGetSkillsList() throws Exception { ! JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.GET_SKILLS_LIST); assertNotNull(CommandKeys.GET_SKILLS_LIST + " not found.", command); command.execute(context); ! String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Index: GetQuestionTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetQuestionTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetQuestionTest.java 29 Jan 2004 23:38:37 -0000 1.1.1.1 --- GetQuestionTest.java 1 Apr 2004 23:01:36 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import org.apache.commons.chain.impl.ContextBase; + import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; *************** *** 23,27 **** */ public void testGetQuestion() throws Exception { ! Context context = new ContextBase(); context.put(ContextKeys.QUESTION_ID_KEY, new Long(0)); Command command = catalog.getCommand(CommandKeys.GET_QUESTION); --- 24,28 ---- */ public void testGetQuestion() throws Exception { ! JgatmsContext context = new JgatmsContext(); context.put(ContextKeys.QUESTION_ID_KEY, new Long(0)); Command command = catalog.getCommand(CommandKeys.GET_QUESTION); *************** *** 29,33 **** command.execute(context); ! String dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 30,34 ---- command.execute(context); ! String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Index: AddResponseToQuestionTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/AddResponseToQuestionTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** AddResponseToQuestionTest.java 29 Jan 2004 23:38:37 -0000 1.1.1.1 --- AddResponseToQuestionTest.java 1 Apr 2004 23:01:36 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import org.apache.commons.chain.impl.ContextBase; + import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; *************** *** 24,28 **** public void testAddResponseToQuestion() throws Exception { ! Context context = new ContextBase(); Command command = catalog.getCommand(CommandKeys.GET_QUESTION); assertNotNull(CommandKeys.GET_QUESTION + " not found", command); --- 25,29 ---- public void testAddResponseToQuestion() throws Exception { ! JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.GET_QUESTION); assertNotNull(CommandKeys.GET_QUESTION + " not found", command); *************** *** 31,35 **** context.put(ContextKeys.QUESTION_ID_KEY, questionId); command.execute(context); ! String dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 32,36 ---- context.put(ContextKeys.QUESTION_ID_KEY, questionId); command.execute(context); ! String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); *************** *** 47,51 **** context.put(ContextKeys.QUESTION_KEY, question); command.execute(context); ! dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 48,52 ---- context.put(ContextKeys.QUESTION_KEY, question); command.execute(context); ! dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Index: GetMemberListTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetMemberListTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetMemberListTest.java 29 Jan 2004 23:38:37 -0000 1.1.1.1 --- GetMemberListTest.java 1 Apr 2004 23:01:36 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import org.apache.commons.chain.impl.ContextBase; + import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; *************** *** 30,39 **** public void testGetMemberList() throws Exception { ! Context context = new ContextBase(); Command command = catalog.getCommand(CommandKeys.GET_MEMBER_LIST); assertNotNull(CommandKeys.GET_MEMBER_LIST + " not found", command); command.execute(context); ! String dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 31,40 ---- public void testGetMemberList() throws Exception { ! JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.GET_MEMBER_LIST); assertNotNull(CommandKeys.GET_MEMBER_LIST + " not found", command); command.execute(context); ! String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Index: GetQuestionsTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetQuestionsTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetQuestionsTest.java 29 Jan 2004 23:38:37 -0000 1.1.1.1 --- GetQuestionsTest.java 1 Apr 2004 23:01:36 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import org.apache.commons.chain.impl.ContextBase; + import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; *************** *** 23,32 **** */ public void testGetQuestions() throws Exception { ! Context context = new ContextBase(); Command command = catalog.getCommand(CommandKeys.GET_QUESTIONS); assertNotNull(CommandKeys.GET_QUESTIONS + " not found.", command); command.execute(context); ! String dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 24,33 ---- */ public void testGetQuestions() throws Exception { ! JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.GET_QUESTIONS); assertNotNull(CommandKeys.GET_QUESTIONS + " not found.", command); command.execute(context); ! String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); Index: GetResponsesTest.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/test/inklings/jgatms/command/GetResponsesTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** GetResponsesTest.java 29 Jan 2004 23:38:37 -0000 1.1.1.1 --- GetResponsesTest.java 1 Apr 2004 23:01:36 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- import org.apache.commons.chain.impl.ContextBase; + import inklings.jgatms.context.JgatmsContext; import inklings.jgatms.CommandKeys; import inklings.jgatms.ContextKeys; *************** *** 23,32 **** */ public void testGetResponses() throws Exception { ! Context context = new ContextBase(); Command command = catalog.getCommand(CommandKeys.GET_RESPONSES); assertNotNull(CommandKeys.GET_RESPONSES + " not found.", command); command.execute(context); ! String dispatch = (String) context.get(ContextKeys.DISPATCH_KEY); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); --- 24,33 ---- */ public void testGetResponses() throws Exception { ! JgatmsContext context = new JgatmsContext(); Command command = catalog.getCommand(CommandKeys.GET_RESPONSES); assertNotNull(CommandKeys.GET_RESPONSES + " not found.", command); command.execute(context); ! String dispatch = context.getDispatch(); assertTrue("Unsuccessful command execution.", dispatch.equals(ContextKeys.SUCCESS_DISPATCH)); |
|
From: Greg R. <gr...@us...> - 2004-04-01 23:13:03
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/context In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv832/src/prod/inklings/jgatms/context Added Files: JgatmsContext.java Log Message: Added JgatmsContext class --- NEW FILE: JgatmsContext.java --- package inklings.jgatms.context; import org.apache.commons.chain.impl.ContextBase; import inklings.jgatms.bean.Member; import inklings.jgatms.ContextKeys; /** * Provides easy access to data that are specific to JGATMS. * * The methods in this class simply pass information into and * out of the base context object. */ public class JgatmsContext extends ContextBase { /** * Returns the Member bean if it is available. */ public Member getMember() { return (Member) get(ContextKeys.MEMBER_KEY); } /** * Sets the Member bean into context. */ public void setMember(Member member) { put(ContextKeys.MEMBER_KEY, member); } /** * Returns the Dispatch code. */ public String getDispatch() { return (String) get(ContextKeys.DISPATCH_KEY); } /** * Sets the dispatch code. */ public void setDispatch(String dispatch) { put(ContextKeys.DISPATCH_KEY, dispatch); } } |
|
From: Greg R. <gr...@us...> - 2004-04-01 23:12:10
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv675/src/prod/inklings/jgatms Modified Files: CommandKeys.java Log Message: Added ADD_MEMBER command. Index: CommandKeys.java =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/CommandKeys.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** CommandKeys.java 29 Jan 2004 23:38:13 -0000 1.1.1.1 --- CommandKeys.java 1 Apr 2004 23:00:01 -0000 1.2 *************** *** 21,24 **** --- 21,25 ---- public static final String GET_SKILLS_LIST = "getSkillsList"; public static final String GET_MEMBER_LIST = "getMemberList"; + public static final String ADD_MEMBER = "addMember"; } |
|
From: Greg R. <gr...@us...> - 2004-04-01 23:11:16
|
Update of /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/context In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv525/src/prod/inklings/jgatms/context Log Message: Directory /cvsroot/jgatms/jgatms-core/src/prod/inklings/jgatms/context added to the repository |
|
From: Greg R. <gr...@us...> - 2004-04-01 22:19:57
|
Update of /cvsroot/jgatms/jgatms-core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23129 Modified Files: project.xml Log Message: Corrected links to mail lists and CVS server. Index: project.xml =================================================================== RCS file: /cvsroot/jgatms/jgatms-core/project.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** project.xml 18 Mar 2004 23:04:36 -0000 1.4 --- project.xml 1 Apr 2004 22:07:56 -0000 1.5 *************** *** 85,97 **** <mailingList> <name>jgatms-devel: JGATMS Developers List</name> ! <subscribe> ! http://lists.sourceforge.net/lists/listinfo/jgatms-devl ! </subscribe> ! <unsubscribe> ! http://lists.sourceforge.net/lists/listinfo/jgatms-devl ! </unsubscribe> ! <archive> ! http://sourceforge.net/mailarchive/forum.php?forum_id=32723 ! </archive> </mailingList> </mailingLists> --- 85,91 ---- <mailingList> <name>jgatms-devel: JGATMS Developers List</name> ! <subscribe>http://lists.sourceforge.net/lists/listinfo/jgatms-devl</subscribe> ! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/jgatms-devl</unsubscribe> ! <archive>http://sourceforge.net/mailarchive/forum.php?forum_id=32723</archive> </mailingList> </mailingLists> |