Skip to content

Commit

Permalink
Fixed release. NEXT TIME TEST THAT THE FUCKING THING WORKS BEFORE COM…
Browse files Browse the repository at this point in the history
…MITING!

git-svn-id: http://agilefant.googlecode.com/svn/trunk@53 29784df9-99d5-7e28-3e6c-ac1830307ffc
  • Loading branch information
kheleniu committed Nov 13, 2006
1 parent 79cc1a1 commit 4e748c9
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 67 deletions.
2 changes: 2 additions & 0 deletions conf/classes/xwork.xml
Expand Up @@ -88,10 +88,12 @@
<action name="editBacklog" method="edit" class="backlogAction"> <action name="editBacklog" method="edit" class="backlogAction">
<result name="editProduct" type="redirect">editProduct.action?productId=${backlogId}</result> <result name="editProduct" type="redirect">editProduct.action?productId=${backlogId}</result>
<result name="editDeliverable" type="redirect">editDeliverable.action?deliverableId=${backlogId}</result> <result name="editDeliverable" type="redirect">editDeliverable.action?deliverableId=${backlogId}</result>
<result name="editIteration" type="redirect">editIteration.action?iterationId=${backlogId}</result>
</action> </action>
<action name="moveBacklogItem" method="moveBacklogItem" class="backlogAction"> <action name="moveBacklogItem" method="moveBacklogItem" class="backlogAction">
<result name="editProduct" type="redirect">editProduct.action?productId=${backlogId}</result> <result name="editProduct" type="redirect">editProduct.action?productId=${backlogId}</result>
<result name="editDeliverable" type="redirect">editDeliverable.action?deliverableId=${backlogId}</result> <result name="editDeliverable" type="redirect">editDeliverable.action?deliverableId=${backlogId}</result>
<result name="editIteration" type="redirect">editIteration.action?iterationId=${backlogId}</result>
</action> </action>
<!-- /Backlog actions --> <!-- /Backlog actions -->
<!-- Task actions --> <!-- Task actions -->
Expand Down
30 changes: 30 additions & 0 deletions doc/install.txt
@@ -0,0 +1,30 @@
Quick install guide for AgilEFant 2007
--------------------------------------

What you need:
---
MySQL installation (4.1 preferred)
Tomcat installation
AgilEFant 2007 distribution package
Basic knowledge of running MySQL and Tomcat

1. Create database
---
Login to MySQL using command line tool:
mysql -u <userName> -p<password>
and create database:
\. init-db.sql
\. create-db.sql
These scripts are found in doc/sql directory.

2. Deploy web application
---
Create agilefant directory to your tomcat webbapps directory.
Copy contents of webapp directory to directory you created.

3. Run Tomcat
---
If all goes well, you should be able to access AgilEFant using context
path agilefant (http://<yourServer>/agilefant. AgilEFant writes it log
to logs/agilefant.log so you might want to check it, in you encounter
any problems.
6 changes: 3 additions & 3 deletions src/fi/hut/soberit/agilefant/model/Iteration.java
Expand Up @@ -19,9 +19,9 @@
@Entity @Entity
public class Iteration extends Backlog { public class Iteration extends Backlog {


private Date startDate; private Date startDate;
private Date endDate; private Date endDate;
private Deliverable deliverable; private Deliverable deliverable;
private User owner; private User owner;


@ManyToOne @ManyToOne
Expand Down
3 changes: 3 additions & 0 deletions src/fi/hut/soberit/agilefant/web/BacklogAction.java
Expand Up @@ -8,6 +8,7 @@
import fi.hut.soberit.agilefant.model.Backlog; import fi.hut.soberit.agilefant.model.Backlog;
import fi.hut.soberit.agilefant.model.BacklogItem; import fi.hut.soberit.agilefant.model.BacklogItem;
import fi.hut.soberit.agilefant.model.Deliverable; import fi.hut.soberit.agilefant.model.Deliverable;
import fi.hut.soberit.agilefant.model.Iteration;
import fi.hut.soberit.agilefant.model.Product; import fi.hut.soberit.agilefant.model.Product;


public class BacklogAction extends ActionSupport { public class BacklogAction extends ActionSupport {
Expand Down Expand Up @@ -61,6 +62,8 @@ protected String solveResult(Backlog backlog){
return "editProduct"; return "editProduct";
} else if (backlog instanceof Deliverable){ } else if (backlog instanceof Deliverable){
return "editDeliverable"; return "editDeliverable";
} else if (backlog instanceof Iteration){
return "editIteration";
} }
super.addActionError(super.getText("backlog.unknownType")); super.addActionError(super.getText("backlog.unknownType"));
return Action.ERROR; return Action.ERROR;
Expand Down
26 changes: 0 additions & 26 deletions src/fi/hut/soberit/agilefant/web/IterationAction.java
Expand Up @@ -8,10 +8,8 @@


import fi.hut.soberit.agilefant.db.DeliverableDAO; import fi.hut.soberit.agilefant.db.DeliverableDAO;
import fi.hut.soberit.agilefant.db.IterationDAO; import fi.hut.soberit.agilefant.db.IterationDAO;
import fi.hut.soberit.agilefant.model.ActivityType;
import fi.hut.soberit.agilefant.model.Deliverable; import fi.hut.soberit.agilefant.model.Deliverable;
import fi.hut.soberit.agilefant.model.Iteration; import fi.hut.soberit.agilefant.model.Iteration;
import fi.hut.soberit.agilefant.model.WorkType;


public class IterationAction extends ActionSupport { public class IterationAction extends ActionSupport {


Expand All @@ -21,20 +19,7 @@ public class IterationAction extends ActionSupport {
private DeliverableDAO deliverableDAO; private DeliverableDAO deliverableDAO;
private Deliverable deliverable; private Deliverable deliverable;
private int deliverableId; private int deliverableId;
private Collection<Iteration> iterations;


public String getAll(){
iterations = new ArrayList<Iteration>();
deliverable = deliverableDAO.get(deliverableId);
if (deliverable == null){
iterations = iterationDAO.getAll();
} else {
iterations = deliverable.getIterations();
}
// iterations = iterationDAO.getAll();
return Action.SUCCESS;
}

public String create(){ public String create(){
Deliverable deliverable = deliverableDAO.get(deliverableId); Deliverable deliverable = deliverableDAO.get(deliverableId);
if (deliverable == null){ if (deliverable == null){
Expand Down Expand Up @@ -81,9 +66,6 @@ public String store(){
} }
this.fillObject(fillable); this.fillObject(fillable);
iterationDAO.store(fillable); iterationDAO.store(fillable);
// updating activitytypes here to make listing work correctly after storing
// - turkka
// sprints = iterationDAO.getAll();
return Action.SUCCESS; return Action.SUCCESS;
} }


Expand Down Expand Up @@ -119,18 +101,10 @@ public void setIteration(Iteration iteration){
this.iteration = iteration; this.iteration = iteration;
} }


public Collection<Iteration> getIterations() {
return iterations;
}

public void setIterationDAO(IterationDAO iterationDAO) { public void setIterationDAO(IterationDAO iterationDAO) {
this.iterationDAO = iterationDAO; this.iterationDAO = iterationDAO;
} }


public DeliverableDAO getDeliverableDAO() {
return deliverableDAO;
}

public void setDeliverableDAO(DeliverableDAO deliverableDAO) { public void setDeliverableDAO(DeliverableDAO deliverableDAO) {
this.deliverableDAO = deliverableDAO; this.deliverableDAO = deliverableDAO;
} }
Expand Down
24 changes: 18 additions & 6 deletions web/WEB-INF/jsp/editBacklogItem.jsp
Expand Up @@ -54,6 +54,16 @@
<option value="${deliverable.id}">&nbsp;&nbsp;&nbsp;&nbsp;${deliverable.name}</option> <option value="${deliverable.id}">&nbsp;&nbsp;&nbsp;&nbsp;${deliverable.name}</option>
</c:otherwise> </c:otherwise>
</c:choose> </c:choose>
<c:forEach items="${deliverable.iterations}" var="iteration">
<c:choose>
<c:when test="${iteration.id == backlogItem.backlog.id}">
<option selected="selected" value="${iteration.id}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${iteration.name}</option>
</c:when>
<c:otherwise>
<option value="${iteration.id}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${iteration.name}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</c:forEach> </c:forEach>
</c:forEach> </c:forEach>
</select> </select>
Expand Down Expand Up @@ -81,10 +91,12 @@
</ul> </ul>
</p> </p>
</c:if> </c:if>
<p> <c:if test="${backlogItem.id > 0}">
<ww:url id="createLink" action="createTask" includeParams="none"> <p>
<ww:param name="backlogItemId" value="${backlogItemId}"/> <ww:url id="createLink" action="createTask" includeParams="none">
</ww:url> <ww:param name="backlogItemId" value="${backlogItemId}"/>
<ww:a href="%{createLink}">Add task</ww:a> </ww:url>
</p> <ww:a href="%{createLink}">Add task</ww:a>
</p>
</c:if>
<%@ include file="./inc/_footer.jsp" %> <%@ include file="./inc/_footer.jsp" %>
5 changes: 4 additions & 1 deletion web/WEB-INF/jsp/editDeliverable.jsp
Expand Up @@ -37,7 +37,10 @@
<ww:param name="deliverableId" value="${deliverable.id}"/> <ww:param name="deliverableId" value="${deliverable.id}"/>
<ww:param name="iterationId" value="${iteration.id}"/> <ww:param name="iterationId" value="${iteration.id}"/>
</ww:url> </ww:url>
${iteration.name} - <ww:a href="%{editLink}">Edit</ww:a>|<ww:a href="%{deleteLink}">Delete</ww:a> <ww:url id="createBacklogItemLink" action="createBacklogItem" includeParams="none">
<ww:param name="backlogId" value="${iteration.id}"/>
</ww:url>
${iteration.name} - <ww:a href="%{editLink}">Edit</ww:a>|<ww:a href="%{deleteLink}">Delete</ww:a>|<ww:a href="%{createBacklogItemLink}">Add backlog item</ww:a>
</p> </p>
</c:forEach> </c:forEach>
</p> </p>
Expand Down
53 changes: 22 additions & 31 deletions web/WEB-INF/jsp/editIteration.jsp
Expand Up @@ -26,52 +26,43 @@
<ww:hidden name="iterationId" value="${iteration.id}"/> <ww:hidden name="iterationId" value="${iteration.id}"/>
<ww:hidden name="deliverableId"/> <ww:hidden name="deliverableId"/>


<ww:date name="%{new java.util.Date()}" format="dd-MM-yyyy" id="date"/> <%--<ww:date name="%{new java.util.Date()}" format="dd-MM-yyyy" id="date"/>
<p> <p>
Startdate: <ww:datepicker value="%{#date}" showstime="%{true}" format="%d-%m-%Y" name="iteration.startDate"/> Startdate: <ww:datepicker value="%{#date}" showstime="%{true}" format="%d-%m-%Y" name="iteration.startDate"/>
</p> </p>
<p> <p>
Enddate: <ww:datepicker value="%{#date}" showstime="%{true}" format="%d-%m-%Y" name="iteration.endDate"/> Enddate: <ww:datepicker value="%{#date}" showstime="%{true}" format="%d-%m-%Y" name="iteration.endDate"/>
</p> </p>--%>
<p> <p>
Name: <ww:textfield name="iteration.name"/> Name: <ww:textfield name="iteration.name"/>
</p> </p>
<p> <p>
Description: <ww:richtexteditor name="iteration.description" width="600px" toolbarStartExpanded="false"/> Description: <ww:richtexteditor name="iteration.description" width="600px" toolbarStartExpanded="false"/>
</p> </p>
<c:if test="${iteration.id > 0}">
fixme: old stuff no longer valid, db model changed
<%--
<h3>Backlogs</h3>
<p>
<c:forEach items="${iteration.backlogs}" var="backlog">
<p>
<ww:url id="editLink" action="editBacklog" includeParams="none">
<ww:param name="backlogId" value="${backlog.id}"/>
<ww:param name="iterationId" value="${iteration.id}"/>
</ww:url>
<ww:url id="deleteLink" action="deleteBacklog" includeParams="none">
<ww:param name="iterationId" value="${iteration.id}"/>
<ww:param name="backlogId" value="${backlog.id}"/>
</ww:url>
${backlog.name} - <ww:a href="%{editLink}">Edit</ww:a>|<ww:a href="%{deleteLink}">Delete</ww:a>
</p>
</c:forEach>
</p>
<p>
<ww:url id="createLink" action="createBacklog" includeParams="none">
<ww:param name="iterationId" value="${iteration.id}"/>
<ww:param name="backlogId" value="${backlog.id}"/>
</ww:url>
<ww:a href="%{createLink}">Create new</ww:a>
</p>
--%>
</c:if>
<p> <p>
<ww:submit value="Store"/> <ww:submit value="Store"/>
</p> </p>
</ww:form> </ww:form>


<p> <c:if test="${!empty iteration.backlogItems}">
<p>
Has backlog items:
</p>
<p>
<ul>
<c:forEach items="${iteration.backlogItems}" var="item">
<ww:url id="editLink" action="editBacklogItem" includeParams="none">
<ww:param name="backlogItemId" value="${item.id}"/>
</ww:url>
<ww:url id="deleteLink" action="deleteBacklogItem" includeParams="none">
<ww:param name="backlogItemId" value="${item.id}"/>
</ww:url>
<li>
${item.name} (${fn:length(item.tasks)} tasks) - <ww:a href="%{editLink}">Edit</ww:a>|<ww:a href="%{deleteLink}">Delete</ww:a>
</li>
</c:forEach>
</ul>
</p>
</c:if>
<%@ include file="./inc/_footer.jsp" %> <%@ include file="./inc/_footer.jsp" %>

0 comments on commit 4e748c9

Please sign in to comment.