) FileUtils.listFiles( completedFolder, new String[]
- {
- "xml"
- }, false );
- return completed;
- }
-
- public void startImportingMessages()
- {
- smsImportService.saveDataValues();
- }
-
- @Override
- public String execute()
- throws Exception
- {
- return SUCCESS;
- }
-}
=== removed file 'dhis-mobile/dhis-web-sms/src/main/java/org/hisp/dhis/mobile/action/SendSMSAction.java'
--- dhis-mobile/dhis-web-sms/src/main/java/org/hisp/dhis/mobile/action/SendSMSAction.java 2011-05-06 14:31:30 +0000
+++ dhis-mobile/dhis-web-sms/src/main/java/org/hisp/dhis/mobile/action/SendSMSAction.java 1970-01-01 00:00:00 +0000
@@ -1,107 +0,0 @@
-package org.hisp.dhis.mobile.action;
-
-/*
- * 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 com.opensymphony.xwork2.Action;
-import org.hisp.dhis.mobile.sms.SmsService;
-
-public class SendSMSAction implements Action
-{
- // -------------------------------------------------------------------------
- // Dependencies
- // -------------------------------------------------------------------------
-
- SmsService smsService;
-
- public void setSmsService( SmsService smsService )
- {
- this.smsService = smsService;
- }
-
- // -------------------------------------------------------------------------
- // Action Implementation
- // -------------------------------------------------------------------------
- boolean smsServiceStatus;
-
- public boolean getSmsServiceStatus()
- {
- return smsService.isServiceRunning();
- }
-
- String statAction;
-
- public void setStatAction( String statAction )
- {
- if ( statAction.equalsIgnoreCase( "Start" ) )
- {
- this.message = smsService.startSmsService();
- } else
- {
- this.message = smsService.stopSmsService();
- }
- }
-
- String recipient;
-
- public void setRecipient( String recipient )
- {
- this.recipient = recipient;
- }
-
- String msg;
-
- public void setMsg( String msg )
- {
- this.msg = msg;
- }
-
- String send;
-
- public void setSend( String send )
- {
- this.send = send;
- }
-
- String message = "";
-
- public String getMessage()
- {
- return message;
- }
-
- @Override
- public String execute()
- throws Exception
- {
- if ( this.send != null )
- {
- this.message = smsService.sendMessage( recipient, msg );
- }
- return SUCCESS;
- }
-}
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources/META-INF'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources/META-INF/dhis'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-mobile/dhis-web-sms/src/main/resources/META-INF/dhis/beans.xml 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/resources/META-INF/dhis/beans.xml 1970-01-01 00:00:00 +0000
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources/org'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis/mobile'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis/mobile/i18n_module.properties'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis/mobile/i18n_module_id_ID.properties'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis/mobile/i18n_module_my_MM.properties'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis/mobile/i18n_module_pt_BR.properties'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/org/hisp/dhis/mobile/i18n_module_pt_PT.properties'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/resources/struts.xml'
--- dhis-mobile/dhis-web-sms/src/main/resources/struts.xml 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/resources/struts.xml 1970-01-01 00:00:00 +0000
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
- /main.vm
- /dhis-web-sms/welcome.vm
- /dhis-web-sms/menu.vm
-
-
- /main.vm
- /dhis-web-sms/receiveImportPage.vm
- /dhis-web-sms/menu.vm
- css/receiveImportPage.css
-
-
- /main.vm
- /dhis-web-sms/sendSMSPage.vm
- /dhis-web-sms/menu.vm
- F_MOBILE_SENDSMS
-
-
- /main.vm
- /dhis-web-sms/mobileSettingsPage.vm
- /dhis-web-sms/menu.vm
- F_MOBILE_SETTINGS
-
-
-
-
\ No newline at end of file
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/META-INF'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/META-INF/context.xml'
--- dhis-mobile/dhis-web-sms/src/main/webapp/META-INF/context.xml 2011-05-06 14:31:30 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/META-INF/context.xml 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
-
-
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/classes'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/classes/log4j.properties'
--- dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/classes/log4j.properties 2011-05-06 14:31:30 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/classes/log4j.properties 1970-01-01 00:00:00 +0000
@@ -1,29 +0,0 @@
-
-# Configuration file for log4j
-
-# Log to file setup
-log4j.appender.file = org.apache.log4j.RollingFileAppender
-log4j.appender.file.File = dhis.log
-log4j.appender.file.MaxFileSize = 100KB
-log4j.appender.file.MaxBackupIndex = 3
-log4j.appender.file.layout = org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern = * %-5p %d{ABSOLUTE} %m (%F [%t])%n
-
-# Log to console setup
-log4j.appender.console = org.apache.log4j.ConsoleAppender
-log4j.appender.console.layout = org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern = * %-5p %d{ABSOLUTE} %m (%F [%t])%n
-
-#Audit log level
-log4j.appender.AUDIT=org.apache.log4j.DailyRollingFileAppender
-log4j.appender.AUDIT.File= audit.log
-log4j.appender.AUDIT.DatePattern='.'yyyy-MM-dd
-log4j.appender.AUDIT.threshold=AUDIT_TRAIL#org.hisp.dhis.system.util.AuditLogLevel
-log4j.appender.AUDIT.layout=org.apache.log4j.PatternLayout
-log4j.appender.AUDIT.layout.ConversionPattern= * %-5p %d{ABSOLUTE} %m %n
-
-# Categories (order: DEBUG, INFO, WARN, ERROR, FATAL)
-log4j.rootCategory = WARN, console
-log4j.category.org.hisp.dhis = INFO, AUDIT
-log4j.category.org.amplecode = INFO
-log4j.category.smslib = INFO
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/web.xml'
--- dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/web.xml 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/WEB-INF/web.xml 1970-01-01 00:00:00 +0000
@@ -1,60 +0,0 @@
-
-
-
- DHIS Mobile Importing
-
-
- contextConfigLocation
- classpath*:/META-INF/dhis/beans.xml
-
-
- automaticAccessType
- ghostAdmin
-
-
-
- RedirectFilter
- org.hisp.dhis.servlet.filter.HttpRedirectFilter
-
- redirectPath
- dhis-web-sms/index.action
-
-
-
- OpenSessionInViewFilter
- org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
-
-
- springSecurityFilterChain
- org.springframework.web.filter.DelegatingFilterProxy
-
-
- Struts
- org.apache.struts2.dispatcher.FilterDispatcher
-
-
-
- RedirectFilter
- /
-
-
- OpenSessionInViewFilter
- *.action
-
-
- springSecurityFilterChain
- /*
-
-
- Struts
- *.action
-
-
-
- org.springframework.web.context.ContextLoaderListener
-
-
- org.hisp.dhis.system.startup.StartupListener
-
-
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms'
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/StylesForTags.css'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/StylesForTags.css 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/StylesForTags.css 1970-01-01 00:00:00 +0000
@@ -1,56 +0,0 @@
-.Heading {
- font-family: times,arial, georgia, tahoma;
- font-size: 35px;
- font-weight: bold;
- white-space: nowrap;
- cursor: default;
-}
-
-.Normal {
- font-family: arial, georgia, tahoma;
- font-size: 10px;
- white-space: nowrap;
- cursor: default;
- text-align: center;
-}
-
-.NormalB {
- font-family: arial, georgia, tahoma;
- font-size: 13px;
- font-weight: bold;
- white-space: nowrap;
- cursor: default;
-}
-
-.TableDataCellStyles {
- font-family: arial, georgia, tahoma;
- font-size: 10px;
- white-space: nowrap;
- cursor: default;
- text-align: center;
- border:1px dotted #C0C0C0;
-}
-
-.TableHeadingCellStyles {
- font-family: arial, georgia, tahoma;
- font-size: 11px;
- white-space: nowrap;
- cursor: default;
-}
-
-.DefaultFontStyles {
- font-family: arial, georgia, tahoma;
- font-size: 13px;
- font-weight: bold;
- white-space: nowrap;
- cursor: default;
-}
-
-.DefaultFontStylesNoBold {
- font-family: arial, georgia, tahoma;
- font-size: 13px;
- white-space: nowrap;
- cursor: default;
-}
-
-
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/receiveImportPage.css'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/receiveImportPage.css 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/receiveImportPage.css 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
-.header{
- color: white;
- padding: 5px 5px;
- margin: -16px 0 0 -20px;
- font-weight: bold;
- background-color: #8FABC7;
-}
-.box{
- position:relative;
- border: 1px solid #8FABC7;
- padding: 5px 5px;
- margin-left: -20px;
-}
-.mainTable{
- width: 100%;
- border-collapse: collapse;
-}
-.mainTable th{
- border: 1px solid #C3C3C3;
- padding: 3px;
- vertical-align: top;
-}
-.mainTable td{
- border: 1px solid #C3C3C3;
- padding: 3px;
- vertical-align: top;
-}
\ No newline at end of file
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/stylesForReports.css'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/stylesForReports.css 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/css/stylesForReports.css 1970-01-01 00:00:00 +0000
@@ -1,74 +0,0 @@
-
-
-.reportheading {
- font-family: arial, georgia, tahoma;
- font-size: 17px;
- font-weight: bold;
- white-space: nowrap;
- cursor: default;
-}
-
-.reportheadingwithunderline {
- font-family: arial, georgia, tahoma;
- font-size: 13px;
- font-weight: bold;
- white-space: nowrap;
- cursor: default;
-}
-
-.reportsubheading {
- font-family: arial, georgia, tahoma;
- font-size: 15px;
- font-weight: bold;
- white-space: nowrap;
- cursor: default;
-}
-
-.tableheading1 {
- font-family: arial, georgia, tahoma;
- font-size: 13px;
- font-weight: bold;
- cursor: default;
-}
-
-.tabledata1 {
- font-family: arial, georgia, tahoma;
- font-size: 12px;
- cursor: default;
-}
-
-.tableheading2 {
- font-family: arial, georgia, tahoma;
- font-size: 10px;
- font-weight: bold;
- cursor: default;
-}
-
-.tabledata2 {
- font-family: arial, georgia, tahoma;
- font-size: 10px;
- cursor: default;
-}
-
-#dropmenudiv{
- position:absolute;
- border:1px solid black;
- border-bottom-width: 0;
- font:normal 12px Verdana;
- line-height:18px;
- z-index:100;
- }
-
- #dropmenudiv a{
- width: 100%;
- display: block;
- text-indent: 3px;
- border-bottom: 1px solid black;
- padding: 1px 0;
- text-decoration: none;
- font-weight: bold;
- }
-
- #dropmenudiv a:hover{ /*hover background color*/
- background-color: yellow;
- }
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/images'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/images/intro.png'
Binary files dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/images/intro.png 2011-05-06 20:21:40 +0000 and dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/images/intro.png 1970-01-01 00:00:00 +0000 differ
=== removed directory 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/javascript'
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/javascript/user.js'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/javascript/user.js 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/javascript/user.js 1970-01-01 00:00:00 +0000
@@ -1,54 +0,0 @@
-function removeUserGroup( userGroupId, userGroupName )
-{
- removeItem( userGroupId, userGroupName, i18n_confirm_delete, "removeUserGroup.action" );
-}
-
-function showUserGroupDetails( userGroupId )
-{
- var request = new Request();
- request.setResponseTypeXML( 'userGroup' );
- request.setCallbackSuccess( userGroupReceived );
- request.send( 'getUserGroup.action?userGroupId=' + userGroupId );
-}
-
-function userGroupReceived( userGroupElement )
-{
- setInnerHTML( 'nameField', getElementValue( userGroupElement, 'name' ) );
- setInnerHTML( 'idField', getElementValue( userGroupElement, 'id' ) );
- setInnerHTML( 'noOfGroupField', getElementValue( userGroupElement, 'noOfUsers' ) );
-
- showDetails();
-}
-
-function addValidation ()
-{
- var k =0 ;
- var xyz=document.getElementById("name");
- var abc =document.getElementById("groupMembers");
- var c = abc.length ;
- if( xyz.value == "") {
- alert ("please select name ");
- return false;
- }
- else if ( c <=0 ){
- alert("please select at least one member");
- return false ;
- }else
- if (c >0 )
- {
- for( k =0;k<=c;k++)
- {
- abc.options[k].selected = true ;
-
- }
- }
-
- return true;
-}
-
-function editValidation ()
-{
-alert("dev");
-}
-
-
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/menu.vm'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/menu.vm 2011-05-11 07:26:38 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/menu.vm 1970-01-01 00:00:00 +0000
@@ -1,6 +0,0 @@
-DHIS SMS
-
\ No newline at end of file
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/mobileImportingResult.vm'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/mobileImportingResult.vm 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/mobileImportingResult.vm 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
-
-
-$importStatus
-
\ No newline at end of file
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/mobileSettingsPage.vm'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/mobileSettingsPage.vm 2011-05-16 19:04:09 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/mobileSettingsPage.vm 1970-01-01 00:00:00 +0000
@@ -1,39 +0,0 @@
-Mobile Gateway Settings
-
\ No newline at end of file
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/receiveImportPage.vm'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/receiveImportPage.vm 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/receiveImportPage.vm 1970-01-01 00:00:00 +0000
@@ -1,69 +0,0 @@
-
-
-#if ($smsServiceStatus)
-
-#else
-
-#end
-Receive SMS
-
-
-
-
-
-
-
- Pending ($pending.size())
- Bounced ($bounced.size())
- Completed ($completed.size())
-
-
- Show Details
- Show Details
- $completed.size() Already Imported
-
-
-
-
-
-
-
-
-
-
-
-
-$result
\ No newline at end of file
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/sendSMSPage.vm'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/sendSMSPage.vm 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/sendSMSPage.vm 1970-01-01 00:00:00 +0000
@@ -1,32 +0,0 @@
-
-
-
- #if ($smsServiceStatus)
-
- #else
-
- #end
-
-Send SMS
-
\ No newline at end of file
=== removed file 'dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/welcome.vm'
--- dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/welcome.vm 2011-05-06 20:21:40 +0000
+++ dhis-mobile/dhis-web-sms/src/main/webapp/dhis-web-sms/welcome.vm 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
-DHIS SMS
-
\ No newline at end of file
=== removed file 'dhis-mobile/pom.xml'
--- dhis-mobile/pom.xml 2012-05-29 07:58:51 +0000
+++ dhis-mobile/pom.xml 1970-01-01 00:00:00 +0000
@@ -1,31 +0,0 @@
-
- 4.0.0
-
- org.hisp.dhis
- dhis-sms
- 2.9-SNAPSHOT
- pom
- Mobile SMS Modules
-
- http://dhis2.org/mobile
-
- The DHIS2 Mobile SMS Modules add functionality for sending and
- recieving SMS to DHIS2. With a configured SMS modem, a custom
- built mobile client and a corresponding mapping from the SMS
- format used by the clients, mobiles can be used to report on data
- sets to DHIS2.
-
-
-
- DHIS2
- http://dhis2.org
-
-
-
- dhis-service-sms
- dhis-web-sms
-
-
-