=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/SharingUtils.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/SharingUtils.java 2013-08-13 11:06:13 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/SharingUtils.java 2013-08-13 11:54:13 +0000 @@ -39,7 +39,6 @@ import org.hisp.dhis.program.Program; import org.hisp.dhis.report.Report; import org.hisp.dhis.reporttable.ReportTable; -import org.hisp.dhis.sms.phonepattern.PhoneNumberPattern; import org.hisp.dhis.user.User; import org.hisp.dhis.user.UserGroup; import org.hisp.dhis.user.UserGroupAccess; @@ -104,11 +103,9 @@ addType( UserGroup.class, "userGroup", null, "F_USERGROUP_PUBLIC_ADD", null ); addType( PatientTabularReport.class, "patientTabularReport", null, "F_PATIENT_TABULAR_REPORT_PUBLIC_ADD", null ); addType( PatientAggregateReport.class, "patientAggregateReport", null, "F_PATIENT_TABULAR_REPORT_PUBLIC_ADD", null ); - - addType( org.hisp.dhis.mapping.Map.class, "map", "F_MAP_EXTERNAL", "F_MAP_PUBLIC_ADD", null ); - addType( Chart.class, "chart", "F_CHART_EXTERNAL", "F_CHART_PUBLIC_ADD", null ); - addType( ReportTable.class, "reportTable", "F_REPORTTABLE_EXTERNAL", "F_REPORTTABLE_PUBLIC_ADD", null ); - addType( PhoneNumberPattern.class, "phoneNumberPattern", null, null, null ); + addType( org.hisp.dhis.mapping.Map.class, "map", "F_MAP_EXTERNAL_ADD", "F_MAP_PUBLIC_ADD", null ); + addType( Chart.class, "chart", "F_CHART_PUBLIC_ADD", "F_CHART_PUBLIC_ADD", null ); + addType( ReportTable.class, "reportTable", "F_REPORTTABLE_OPEN_ADD", "F_REPORTTABLE_PUBLIC_ADD", null ); } public static boolean isSupported( String type ) === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/outbound/OutboundSmsStore.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/outbound/OutboundSmsStore.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/outbound/OutboundSmsStore.java 2013-08-13 11:54:13 +0000 @@ -2,8 +2,6 @@ import java.util.List; -import org.hisp.dhis.common.GenericStore; - /* * Copyright (c) 2004-2012, University of Oslo * All rights reserved. @@ -31,7 +29,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -public interface OutboundSmsStore extends GenericStore +public interface OutboundSmsStore { int saveOutboundSms( OutboundSms sms ); === removed directory 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern' === removed file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPattern.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPattern.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPattern.java 1970-01-01 00:00:00 +0000 @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2004-2012, 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. - */ -package org.hisp.dhis.sms.phonepattern; - -import java.util.List; - -import org.hisp.dhis.common.BaseIdentifiableObject; - - /** - * @author Nguyen Kim Lai - * - * @version PhoneNumberPattern.java 1:11:57 PM Aug 7, 2013 $ - */ -public class PhoneNumberPattern extends BaseIdentifiableObject -{ - private static final long serialVersionUID = -9068432098081093265L; - - private List startWiths; - - private List followBys; - - private Integer digitLeft; - - private String regex; - - public List getStartWiths() - { - return startWiths; - } - - public void setStartWiths( List startWiths ) - { - this.startWiths = startWiths; - } - - public List getFollowBys() - { - return followBys; - } - - public void setFollowBys( List followBys ) - { - this.followBys = followBys; - } - - public Integer getDigitLeft() - { - return digitLeft; - } - - public void setDigitLeft( Integer digitLeft ) - { - this.digitLeft = digitLeft; - } - - public String getRegex() - { - return regex; - } - - public void setRegex( String regex ) - { - this.regex = regex; - } -} === removed file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPatternService.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPatternService.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPatternService.java 1970-01-01 00:00:00 +0000 @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2004-2012, 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. - */ -package org.hisp.dhis.sms.phonepattern; - -import java.util.List; - - /** - * @author Nguyen Kim Lai - * - * @version PhonePatternService.java 2:13:18 PM Aug 7, 2013 $ - */ -public interface PhoneNumberPatternService -{ - String ID = PhoneNumberPatternService.class.getName(); - - int savePhonePattern( PhoneNumberPattern sms ); - - void updatePhonePattern( PhoneNumberPattern sms ); - - void deleteById( Integer outboundSmsId ); - - List getAllPhonePattern(); - - PhoneNumberPattern getPhonePatternById( int id ); -} === removed file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPatternStore.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPatternStore.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/sms/phonepattern/PhoneNumberPatternStore.java 1970-01-01 00:00:00 +0000 @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2004-2012, 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. - */ -package org.hisp.dhis.sms.phonepattern; - -import org.hisp.dhis.common.GenericNameableObjectStore; - -/** - * @author Nguyen Kim Lai - * - * @version PhoneNumberPatternStore.java 3:08:01 PM Aug 8, 2013 $ - */ -public interface PhoneNumberPatternStore extends GenericNameableObjectStore -{ - String ID = PhoneNumberPatternStore.class.getName(); - - void deleteById ( Integer id ); -} === removed file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/hibernate/HibernatePhoneNumberPatternStore.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/hibernate/HibernatePhoneNumberPatternStore.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/hibernate/HibernatePhoneNumberPatternStore.java 1970-01-01 00:00:00 +0000 @@ -1,66 +0,0 @@ -/* - * Copyright (c) 2004-2012, 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. - */ -package org.hisp.dhis.sms.hibernate; - -import org.hisp.dhis.hibernate.HibernateGenericStore; -import org.hisp.dhis.sms.phonepattern.PhoneNumberPattern; -import org.hisp.dhis.sms.phonepattern.PhoneNumberPatternStore; -import org.springframework.jdbc.core.JdbcTemplate; -import org.springframework.transaction.annotation.Transactional; - -/** - * @author Nguyen Kim Lai - * - * @version HibernatePhoneNumberPatternStore.java 3:21:45 PM Aug 8, 2013 $ - */ - -@Transactional -public class HibernatePhoneNumberPatternStore - extends HibernateGenericStore - implements PhoneNumberPatternStore -{ - // ------------------------------------------------------------------------- - // Dependencies - // ------------------------------------------------------------------------- - - private JdbcTemplate jdbcTemplate; - - public void setJdbcTemplate( JdbcTemplate jdbcTemplate ) - { - this.jdbcTemplate = jdbcTemplate; - } - - // ------------------------------------------------------------------------- - // Implementation - // ------------------------------------------------------------------------- - - @Override - public void deleteById( Integer id ) - { - delete( get( id ) ); - } -} === removed directory 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/phonepattern' === removed file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/phonepattern/DefaultPhoneNumberPatternService.java' --- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/phonepattern/DefaultPhoneNumberPatternService.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/phonepattern/DefaultPhoneNumberPatternService.java 1970-01-01 00:00:00 +0000 @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2004-2012, 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. - */ -package org.hisp.dhis.sms.phonepattern; - -import java.util.List; - -/** - * @author Nguyen Kim Lai - * - * @version DefaultPhoneNumberPatternService.java 3:21:33 PM Aug 8, 2013 $ - */ -public class DefaultPhoneNumberPatternService - implements PhoneNumberPatternService -{ - // ------------------------------------------------------------------------- - // Dependencies - // ------------------------------------------------------------------------- - private PhoneNumberPatternStore phoneNumberPatternStore; - - public void setPhoneNumberPatternStore( PhoneNumberPatternStore phoneNumberPatternStore ) - { - this.phoneNumberPatternStore = phoneNumberPatternStore; - } - - // ------------------------------------------------------------------------- - // Implementation - // ------------------------------------------------------------------------- - - @Override - public void deleteById( Integer id ) - { - phoneNumberPatternStore.deleteById( id ); - } - - @Override - public List getAllPhonePattern() - { - return phoneNumberPatternStore.getAll(); - } - - @Override - public PhoneNumberPattern getPhonePatternById( int id ) - { - return phoneNumberPatternStore.get( id ); - } - - @Override - public int savePhonePattern( PhoneNumberPattern phoneNumberPattern ) - { - return phoneNumberPatternStore.save( phoneNumberPattern ); - } - - @Override - public void updatePhonePattern( PhoneNumberPattern phoneNumberPattern ) - { - phoneNumberPatternStore.update( phoneNumberPattern ); - } -} === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml 2013-08-13 11:54:13 +0000 @@ -347,12 +347,9 @@ - - - - - - + + + @@ -784,9 +781,6 @@ - - - === removed file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/sms/hibernate/PhoneNumberPattern.hbm.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/sms/hibernate/PhoneNumberPattern.hbm.xml 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/sms/hibernate/PhoneNumberPattern.hbm.xml 1970-01-01 00:00:00 +0000 @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - === removed file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/java/org/hisp/dhis/mobile/action/MobilePhonesPatternAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/java/org/hisp/dhis/mobile/action/MobilePhonesPatternAction.java 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/java/org/hisp/dhis/mobile/action/MobilePhonesPatternAction.java 1970-01-01 00:00:00 +0000 @@ -1,77 +0,0 @@ -/* - * Copyright (c) 2004-2012, 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. - */ -package org.hisp.dhis.mobile.action; - -import java.util.ArrayList; -import java.util.List; - -import org.hisp.dhis.sms.phonepattern.PhoneNumberPattern; -import org.hisp.dhis.sms.phonepattern.PhoneNumberPatternService; - -import com.opensymphony.xwork2.Action; - - /** - * @author Nguyen Kim Lai - * - * @version MobilePhonesPatternAction.java 10:19:46 AM Aug 7, 2013 $ - */ -public class MobilePhonesPatternAction implements Action -{ - // ------------------------------------------------------------------------- - // Dependencies - // ------------------------------------------------------------------------- - - private PhoneNumberPatternService phoneNumberPatternService; - - public void setPhoneNumberPatternService( PhoneNumberPatternService phoneNumberPatternService ) - { - this.phoneNumberPatternService = phoneNumberPatternService; - } - - // ------------------------------------------------------------------------- - // Action Implementation - // ------------------------------------------------------------------------- - - @Override - public String execute() - throws Exception - { - /*PhoneNumberPattern phoneNumberPattern = new PhoneNumberPattern(); - List startWiths = new ArrayList(); - startWiths.add( "+84" ); - List followBys = new ArrayList(); - followBys.add( "9" ); - phoneNumberPattern.setStartWiths( startWiths ); - phoneNumberPattern.setFollowBys( followBys ); - phoneNumberPattern.setDigitLeft( 8 ); - - phoneNumberPatternService.savePhonePattern( phoneNumberPattern );*/ - - return SUCCESS; - } - -} === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/META-INF/dhis/beans.xml' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/META-INF/dhis/beans.xml 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/META-INF/dhis/beans.xml 2013-08-13 11:54:13 +0000 @@ -8,59 +8,68 @@ - + - + - + - + + class="org.hisp.dhis.mobile.action.incoming.ReceivingSMSAction" + scope="prototype"> - - - - - + + class="org.hisp.dhis.mobile.action.ShowMobileSettingFormAction" + scope="prototype"> + class="org.hisp.dhis.mobile.action.UpdateMobileSettingAction" + scope="prototype"> - + class="org.hisp.dhis.mobile.action.MobileDataSetListAction" + scope="prototype"> + - + class="org.hisp.dhis.mobile.action.UpdateMobileDataSetAction" + scope="prototype"> + + class="org.hisp.dhis.mobile.action.GetSmsConfigurationAction" + scope="prototype" /> + class="org.hisp.dhis.mobile.action.SaveSmsConfigurationAction" + scope="prototype" /> - - @@ -112,21 +130,27 @@ class="org.hisp.dhis.mobile.action.UpdateGenericHTTPGateWayConfigAction" scope="prototype" /> - + + class="org.hisp.dhis.mobile.action.RemoveGatewayConfigAction" + scope="prototype" /> + class="org.hisp.dhis.mobile.action.smscommand.SMSCommandAction" + scope="prototype"> - - + + @@ -134,9 +158,12 @@ class="org.hisp.dhis.mobile.action.smscommand.EditSMSCommandForm" scope="prototype"> - - - + + + @@ -144,8 +171,10 @@ class="org.hisp.dhis.mobile.action.smscommand.CreateSMSCommandForm" scope="prototype"> - - + + + class="org.hisp.dhis.mobile.action.J2meClientUpdateAction" + scope="prototype"> - + + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/struts.xml 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/resources/struts.xml 2013-08-13 11:54:13 +0000 @@ -205,12 +205,12 @@ F_MOBILE_SENDSMS - + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/menu.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/menu.vm 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/menu.vm 2013-08-13 11:54:13 +0000 @@ -8,5 +8,5 @@
  • $i18n.getString( "show_receive_sms_form" )
  • $i18n.getString( "sms_command_form" )
  • $i18n.getString( "j2me_client_update" )
  • - + \ No newline at end of file === removed file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/phonePatternPage.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/phonePatternPage.vm 2013-08-13 08:06:25 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-mobile/src/main/webapp/dhis-web-maintenance-mobile/phonePatternPage.vm 1970-01-01 00:00:00 +0000 @@ -1,21 +0,0 @@ -

    $i18n.getString( "mobile_phones_pattern" )

    -
    - - - - - - - - - - - - - - - - -
    $i18n.getString( "start_with" ) :
    $i18n.getString( "follow_by" ) :
    $i18n.getString( "digit_left" ) :
    -
    -
    \ No newline at end of file