[Dhis2-devs] J2SE Code Names

2010-02-21 Thread Brajesh Murari
hi,

Please have a look on official code names of different flavors of JAVA.
Its so nice, every one have specific code name.
http://java.sun.com/j2se/codenames.html
But i am surprised why sun had decided to put TIGER as a official code name
of J2SE 5.0.
Any Guess...

-- 
With Regards,
Brajesh
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] J2SE Code Names

2010-02-21 Thread Saptarshi Purkayastha
I'm not sure these codenames have some well known logic to them... they are
just names which someone thought was an interesting name... obviously good
trivia to know the reason for the name

That list does not have Java 6 (codename Mustang) and upcoming Java 7
(codename Dolphin)... Probably the java forums are a better place to ask
the question and get an answer to the reasons for the code names than DHIS2
devs list :-)

---
Regards,
Saptarshi PURKAYASTHA
Director R  D, HISP India
Health Information Systems Programme

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 21 February 2010 14:20, Brajesh Murari brajesh2mur...@gmail.com wrote:

 hi,

 Please have a look on official code names of different flavors of JAVA.
 Its so nice, every one have specific code name.
 http://java.sun.com/j2se/codenames.html
 But i am surprised why sun had decided to put TIGER as a official code name
 of J2SE 5.0.
 Any Guess...

 --
 With Regards,
 Brajesh



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] J2SE Code Names

2010-02-21 Thread Bob Jolliffe
What's dhis2 2.0.4?  Can anyone suggest a good codename?  Maybe we
need a theme.  Fish, clouds, mammals ...

On 21 February 2010 13:31, Saptarshi Purkayastha sun...@gmail.com wrote:
 I'm not sure these codenames have some well known logic to them... they are
 just names which someone thought was an interesting name... obviously good
 trivia to know the reason for the name
 That list does not have Java 6 (codename Mustang) and upcoming Java 7
 (codename Dolphin)... Probably the java forums are a better place to ask
 the question and get an answer to the reasons for the code names than DHIS2
 devs list :-)
 ---
 Regards,
 Saptarshi PURKAYASTHA
 Director R  D, HISP India
 Health Information Systems Programme

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 21 February 2010 14:20, Brajesh Murari brajesh2mur...@gmail.com wrote:

 hi,

 Please have a look on official code names of different flavors of JAVA.
 Its so nice, every one have specific code name.
 http://java.sun.com/j2se/codenames.html
 But i am surprised why sun had decided to put TIGER as a official code
 name of J2SE 5.0.
 Any Guess...

 --
 With Regards,
 Brajesh



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] J2SE Code Names

2010-02-21 Thread Jason Pickering
Jeez, we have enough work, do we really need a code name?

I am all for James Bond villains.

Jaws..OddJob..Kristatos..

we have many to choose from.

:)

On Sun, Feb 21, 2010 at 8:55 PM, Bob Jolliffe bobjolli...@gmail.com wrote:
 What's dhis2 2.0.4?  Can anyone suggest a good codename?  Maybe we
 need a theme.  Fish, clouds, mammals ...

 On 21 February 2010 13:31, Saptarshi Purkayastha sun...@gmail.com wrote:
 I'm not sure these codenames have some well known logic to them... they are
 just names which someone thought was an interesting name... obviously good
 trivia to know the reason for the name
 That list does not have Java 6 (codename Mustang) and upcoming Java 7
 (codename Dolphin)... Probably the java forums are a better place to ask
 the question and get an answer to the reasons for the code names than DHIS2
 devs list :-)
 ---
 Regards,
 Saptarshi PURKAYASTHA
 Director R  D, HISP India
 Health Information Systems Programme

 My Tech Blog:  http://sunnytalkstech.blogspot.com
 You Live by CHOICE, Not by CHANCE


 On 21 February 2010 14:20, Brajesh Murari brajesh2mur...@gmail.com wrote:

 hi,

 Please have a look on official code names of different flavors of JAVA.
 Its so nice, every one have specific code name.
 http://java.sun.com/j2se/codenames.html
 But i am surprised why sun had decided to put TIGER as a official code
 name of J2SE 5.0.
 Any Guess...

 --
 With Regards,
 Brajesh



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp



 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to     : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] J2SE Code Names

2010-02-21 Thread Brajesh Murari
We should follow some conventions about it and should fix certain specific
code name for each release of DHIS 2 onwards.
After all, if we are probably going to approach it in each release as a
steep to make it an expert system in near future which is an ongoing
process. And if we have not started thinking about it yet, does not mean we
should not.

:)


On Mon, Feb 22, 2010 at 12:43 AM, Jason Pickering 
jason.p.picker...@gmail.com wrote:

 Jeez, we have enough work, do we really need a code name?

 I am all for James Bond villains.

 Jaws..OddJob..Kristatos..

 we have many to choose from.

 :)

 On Sun, Feb 21, 2010 at 8:55 PM, Bob Jolliffe bobjolli...@gmail.com
 wrote:
  What's dhis2 2.0.4?  Can anyone suggest a good codename?  Maybe we
  need a theme.  Fish, clouds, mammals ...
 
  On 21 February 2010 13:31, Saptarshi Purkayastha sun...@gmail.com
 wrote:
  I'm not sure these codenames have some well known logic to them... they
 are
  just names which someone thought was an interesting name... obviously
 good
  trivia to know the reason for the name
  That list does not have Java 6 (codename Mustang) and upcoming Java 7
  (codename Dolphin)... Probably the java forums are a better place to
 ask
  the question and get an answer to the reasons for the code names than
 DHIS2
  devs list :-)
  ---
  Regards,
  Saptarshi PURKAYASTHA
  Director R  D, HISP India
  Health Information Systems Programme
 
  My Tech Blog:  http://sunnytalkstech.blogspot.com
  You Live by CHOICE, Not by CHANCE
 
 
  On 21 February 2010 14:20, Brajesh Murari brajesh2mur...@gmail.com
 wrote:
 
  hi,
 
  Please have a look on official code names of different flavors of JAVA.
  Its so nice, every one have specific code name.
  http://java.sun.com/j2se/codenames.html
  But i am surprised why sun had decided to put TIGER as a official code
  name of J2SE 5.0.
  Any Guess...
 
  --
  With Regards,
  Brajesh
 
 
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 
 
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 
 
 
  ___
  Mailing list: https://launchpad.net/~dhis2-devs
  Post to : dhis2-devs@lists.launchpad.net
  Unsubscribe : https://launchpad.net/~dhis2-devs
  More help   : https://help.launchpad.net/ListHelp
 

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp




-- 
With Regards,
Brajesh
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 1459: Sort excel item and group in order of alphabet letters - Excel Reporting

2010-02-21 Thread noreply

revno: 1459
committer: Tran Chau tran.hispviet...@gmail.com
branch nick: trunk
timestamp: Mon 2010-02-22 13:15:52 +0700
message:
  Sort excel item and group in order of alphabet letters - Excel Reporting
added:
  
dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/comparator/ExcelItemGroupComparator.java
modified:
  
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ListExcelItemAction.java
  
dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitemgroup/action/ListAllExcelItemGroupAction.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== added file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/comparator/ExcelItemGroupComparator.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/comparator/ExcelItemGroupComparator.java	1970-01-01 00:00:00 +
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/comparator/ExcelItemGroupComparator.java	2010-02-22 06:15:52 +
@@ -0,0 +1,45 @@
+package org.hisp.dhis.reportexcel.excelitem.comparator;
+
+/*
+ * Copyright (c) 2004-2007, University of Oslo
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ * * Redistributions of source code must retain the above copyright notice, this
+ *   list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright notice,
+ *   this list of conditions and the following disclaimer in the documentation
+ *   and/or other materials provided with the distribution.
+ * * Neither the name of the HISP project nor the names of its contributors may
+ *   be used to endorse or promote products derived from this software without
+ *   specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+import java.util.Comparator;
+
+import org.hisp.dhis.reportexcel.excelitem.ExcelItemGroup;
+
+/**
+ * @author Chau Thu Tran
+ * @version $Id$
+ */
+public class ExcelItemGroupComparator
+implements ComparatorExcelItemGroup
+{
+public int compare( ExcelItemGroup o1, ExcelItemGroup o2 )
+{
+return o1.getName().compareToIgnoreCase( o2.getName() );
+}
+}

=== modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ListExcelItemAction.java'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ListExcelItemAction.java	2009-12-04 05:00:32 +
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/action/ListExcelItemAction.java	2010-02-22 06:15:52 +
@@ -28,7 +28,6 @@
  */
 
 import java.util.ArrayList;
-import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
 
@@ -38,6 +37,7 @@
 import org.hisp.dhis.reportexcel.excelitem.ExcelItem;
 import org.hisp.dhis.reportexcel.excelitem.ExcelItemGroup;
 import org.hisp.dhis.reportexcel.excelitem.ExcelItemService;
+import org.hisp.dhis.reportexcel.excelitem.comparator.ExcelItemComparator;
 
 import com.opensymphony.xwork2.Action;
 
@@ -62,10 +62,10 @@
 // -
 
 private int excelItemGroupId;
-
+
 private ExcelItemGroup excelItemGroup;
-
-private CollectionExcelItem excelItems;
+
+private ListExcelItem excelItems;
 
 private ListDataElementGroup dataElementGroups;
 
@@ -73,7 +73,7 @@
 // Getters and Setters
 // -
 
-public CollectionExcelItem getExcelItems()
+public ListExcelItem getExcelItems()
 {
 return excelItems;
 }
@@ -112,7 +112,9 @@
 {
 excelItemGroup = excelItemService.getExcelItemGroup( excelItemGroupId );
 
-excelItems =