dhis-mobile-devs team mailing list archive
-
dhis-mobile-devs team
-
Mailing list archive
-
Message #00411
[Branch ~dhis-mobile-devs/dhis-mobile/lwuit-tracking] Rev 221: update orgUnit links
------------------------------------------------------------
revno: 221
committer: Hong Em <em.hispvietnam@xxxxxxxxx>
branch nick: lwuit-tracking
timestamp: Wed 2014-05-21 21:31:18 +0700
message:
update orgUnit links
modified:
src/org/hisp/dhis/mobile/model/OrgUnit.java
--
lp:~dhis-mobile-devs/dhis-mobile/lwuit-tracking
https://code.launchpad.net/~dhis-mobile-devs/dhis-mobile/lwuit-tracking
Your team DHIS mobile developers is subscribed to branch lp:~dhis-mobile-devs/dhis-mobile/lwuit-tracking.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis-mobile-devs/dhis-mobile/lwuit-tracking/+edit-subscription
=== modified file 'src/org/hisp/dhis/mobile/model/OrgUnit.java'
--- src/org/hisp/dhis/mobile/model/OrgUnit.java 2014-05-21 09:09:34 +0000
+++ src/org/hisp/dhis/mobile/model/OrgUnit.java 2014-05-21 14:31:18 +0000
@@ -26,376 +26,386 @@
import org.hisp.dhis.mobile.log.LogMan;
import org.hisp.dhis.mobile.recordstore.SettingRecordStore;
-public class OrgUnit
- implements DataStreamSerializable
-{
- private static final String CLASS_TAG = "OrgUnit";
-
- private int id;
-
- private String name;
-
- private String downloadAllUrl;
-
- private String updateActivityPlanUrl;
-
- private String uploadFacilityReportUrl;
-
- private String downloadFacilityReportUrl;
-
- private String uploadActivityReportUrl;
-
- private String updateDataSetsUrl;
-
- private String changeDataSetLangUrl;
-
- private String searchUrl;
-
- private String updateNewVersionUrl;
-
- private String sendFeedbackUrl;
-
- private String findUserUrl;
-
- private String sendMessageUrl;
-
- private String updateContactUrl;
-
- private String findPatientUrl;
-
- private String uploadProgramStageUrl;
-
- private String registerPersonUrl;
-
- private String enrollProgramUrl;
-
- private String getVariesInfoUrl;
-
- private String addRelationshipUrl;
-
- private String downloadAnonymousProgramUrl;
-
- private String findProgramUrl;
-
- private String findPatientInAdvancedUrl;
-
- private String findVisitScheduleUrl;
-
- private String findLostToFollowUpUrl;
-
- private String handleLostToFollowUpUrl;
-
- private String generateRepeatableEventUrl;
-
- private String uploadSingleEventWithoutRegistration;
-
- public static double serverVersion;
-
- public int getId()
- {
- return id;
- }
-
- public void setId( int id )
- {
- this.id = id;
- }
-
- public String getName()
- {
- return name;
- }
-
- public void setName( String name )
- {
- this.name = name;
- }
-
- public String getDownloadAllUrl()
- {
- return downloadAllUrl;
- }
-
- public String getUploadFacilityReportUrl()
- {
- return uploadFacilityReportUrl;
- }
-
- public String getDownloadFacilityReportUrl()
- {
- return downloadFacilityReportUrl;
- }
-
- public String getUploadActivityReportUrl()
- {
- return uploadActivityReportUrl;
- }
-
- public String getUpdateDataSetsUrl()
- {
- return updateDataSetsUrl;
- }
-
- public String getUpdateActivityPlanUrl()
- {
- return updateActivityPlanUrl;
- }
-
- public String getChangeDataSetLangUrl()
- {
- return changeDataSetLangUrl;
- }
-
- public String getSearchUrl()
- {
- return searchUrl;
- }
-
- public String getUpdateNewVersionUrl()
- {
- return updateNewVersionUrl;
- }
-
- public String getSendFeedbackUrl()
- {
- return sendFeedbackUrl;
- }
-
- public String getFindUserUrl()
- {
- return findUserUrl;
- }
-
- public String getSendMessageUrl()
- {
- return sendMessageUrl;
- }
-
- public String getUpdateContactUrl()
- {
- return updateContactUrl;
- }
-
- public String getFindPatientUrl()
- {
- return findPatientUrl;
- }
-
- public String getUploadProgramStageUrl()
- {
- return uploadProgramStageUrl;
- }
-
- public String getRegisterPersonUrl()
- {
- return registerPersonUrl;
- }
-
- public String getEnrollProgramUrl()
- {
- return enrollProgramUrl;
- }
-
- public String getGetVariesInfoUrl()
- {
- return getVariesInfoUrl;
- }
-
- public String getAddRelationshipUrl()
- {
- return addRelationshipUrl;
- }
-
- public String getDownloadAnonymousProgramUrl()
- {
- return downloadAnonymousProgramUrl;
- }
-
- public String getFindProgramUrl()
- {
- return findProgramUrl;
- }
-
- public String getFindPatientInAdvancedUrl()
- {
- return findPatientInAdvancedUrl;
- }
-
- public String getFindVisitScheduleUrl()
- {
- return findVisitScheduleUrl;
- }
-
- public String getFindLostToFollowUpUrl()
- {
- return findLostToFollowUpUrl;
- }
-
- public String getHandleLostToFollowUpUrl()
- {
- return handleLostToFollowUpUrl;
- }
-
- public String getGenerateRepeatableEventUrl()
- {
- return generateRepeatableEventUrl;
- }
-
- public String getUploadSingleEventWithoutRegistration()
- {
- return uploadSingleEventWithoutRegistration;
- }
-
- public void setUploadSingleEventWithoutRegistration( String uploadSingleEventWithoutRegistration )
- {
- this.uploadSingleEventWithoutRegistration = uploadSingleEventWithoutRegistration;
- }
-
- public void serialize( DataOutputStream dataOutputStream )
- throws IOException
- {
- dataOutputStream.writeInt( id );
- dataOutputStream.writeUTF( name );
- dataOutputStream.writeUTF( downloadAllUrl );
- dataOutputStream.writeUTF( updateActivityPlanUrl );
- dataOutputStream.writeUTF( uploadFacilityReportUrl );
- dataOutputStream.writeUTF( downloadFacilityReportUrl );
- dataOutputStream.writeUTF( uploadActivityReportUrl );
- dataOutputStream.writeUTF( updateDataSetsUrl );
- dataOutputStream.writeUTF( changeDataSetLangUrl );
- dataOutputStream.writeUTF( searchUrl );
- dataOutputStream.writeUTF( updateNewVersionUrl );
- dataOutputStream.writeUTF( sendFeedbackUrl );
- dataOutputStream.writeUTF( findUserUrl );
- dataOutputStream.writeUTF( sendMessageUrl );
- dataOutputStream.writeUTF( updateContactUrl );
- dataOutputStream.writeUTF( findPatientUrl );
- dataOutputStream.writeUTF( registerPersonUrl );
- dataOutputStream.writeUTF( uploadProgramStageUrl );
- dataOutputStream.writeUTF( enrollProgramUrl );
- dataOutputStream.writeUTF( getVariesInfoUrl );
- dataOutputStream.writeUTF( addRelationshipUrl );
- dataOutputStream.writeUTF( downloadAnonymousProgramUrl );
- dataOutputStream.writeUTF( findProgramUrl );
- dataOutputStream.writeUTF( findPatientInAdvancedUrl );
- dataOutputStream.writeUTF( findVisitScheduleUrl );
- dataOutputStream.writeUTF( findLostToFollowUpUrl );
- dataOutputStream.writeUTF( handleLostToFollowUpUrl );
- dataOutputStream.writeUTF( generateRepeatableEventUrl );
- dataOutputStream.writeUTF( uploadSingleEventWithoutRegistration );
- }
-
- public void deSerialize( DataInputStream dataInputStream )
- throws IOException
- {
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "Deserializing Organization Unit..." );
-
- id = dataInputStream.readInt();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "id=" + id );
-
- name = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "name=" + name );
-
- downloadAllUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "downloadAllUrl=" + downloadAllUrl );
-
- updateActivityPlanUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateActivityPlanUrl=" + updateActivityPlanUrl );
-
- uploadFacilityReportUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "uploadFacilityReportUrl=" + uploadFacilityReportUrl );
-
- downloadFacilityReportUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "downloadFacilityReportUrl=" + downloadFacilityReportUrl );
-
- uploadActivityReportUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "uploadActivityReportUrl=" + uploadActivityReportUrl );
-
- updateDataSetsUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateDataSetsUrl=" + updateDataSetsUrl );
-
- changeDataSetLangUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "changeDataSetLangUrl=" + changeDataSetLangUrl );
-
- searchUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "searchUrl=" + searchUrl );
-
- updateNewVersionUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateNewVersionUrl=" + updateNewVersionUrl );
-
- sendFeedbackUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "sendFeedbackUrl=" + sendFeedbackUrl );
-
- findUserUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findUserUrl=" + findUserUrl );
-
- sendMessageUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "sendMessageUrl=" + sendMessageUrl );
-
- updateContactUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateContactUrl=" + updateContactUrl );
-
- findPatientUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findPatientUrl=" + findPatientUrl );
-
- registerPersonUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "registerPersonUrl=" + registerPersonUrl );
-
- uploadProgramStageUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "uploadProgramStageUrl=" + uploadProgramStageUrl );
-
- enrollProgramUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "enrollProgramUrl=" + enrollProgramUrl );
-
- getVariesInfoUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "getVariesInfoUrl=" + getVariesInfoUrl );
-
- addRelationshipUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "addRelationshipUrl=" + addRelationshipUrl );
-
- downloadAnonymousProgramUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "downloadAnonymousProgramUrl=" + downloadAnonymousProgramUrl );
-
- findProgramUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findProgramUrl=" + findProgramUrl );
-
- findPatientInAdvancedUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findPatientInAdvancedUrl=" + findPatientInAdvancedUrl );
-
- findVisitScheduleUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findVisitScheduleUrl=" + findVisitScheduleUrl );
-
- findLostToFollowUpUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findLostToFollowUpUrl=" + findLostToFollowUpUrl );
-
- handleLostToFollowUpUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "handleLostToFollowUpUrl=" + handleLostToFollowUpUrl );
-
- generateRepeatableEventUrl = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "generateRepeatableEventUrl=" + generateRepeatableEventUrl );
-
- uploadSingleEventWithoutRegistration = dataInputStream.readUTF();
- LogMan.log( LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "uploadSingleEventWithoutRegistration="
- + uploadSingleEventWithoutRegistration );
- }
-
- public boolean checkNewVersion( double serverVersion )
- {
- double clientVersion;
- boolean result = false;
- try
- {
- SettingRecordStore settingRecordStore = new SettingRecordStore();
- clientVersion = Double.parseDouble( settingRecordStore.get( SettingRecordStore.CLIENT_VERSION ) );
- if ( serverVersion > clientVersion )
- {
- result = true;
- }
- }
- catch ( Exception e )
- {
- e.printStackTrace();
- }
- return result;
- }
+public class OrgUnit implements DataStreamSerializable {
+ private static final String CLASS_TAG = "OrgUnit";
+
+ private int id;
+
+ private String name;
+
+ private String downloadAllUrl;
+
+ private String updateActivityPlanUrl;
+
+ private String uploadFacilityReportUrl;
+
+ private String downloadFacilityReportUrl;
+
+ private String uploadActivityReportUrl;
+
+ private String updateDataSetsUrl;
+
+ private String changeDataSetLangUrl;
+
+ private String searchUrl;
+
+ private String updateNewVersionUrl;
+
+ private String sendFeedbackUrl;
+
+ private String findUserUrl;
+
+ private String sendMessageUrl;
+
+ private String downloadMessageConversationUrl;
+
+ private String getMessageUrl;
+
+ private String updateContactUrl;
+
+ private String findPatientUrl;
+
+ private String uploadProgramStageUrl;
+
+ private String registerPersonUrl;
+
+ private String enrollProgramUrl;
+
+ private String getVariesInfoUrl;
+
+ private String addRelationshipUrl;
+
+ private String downloadAnonymousProgramUrl;
+
+ private String findProgramUrl;
+
+ private String findPatientInAdvancedUrl;
+
+ private String findVisitScheduleUrl;
+
+ private String findLostToFollowUpUrl;
+
+ private String handleLostToFollowUpUrl;
+
+ private String generateRepeatableEventUrl;
+
+ private String uploadSingleEventWithoutRegistration;
+
+ public static double serverVersion;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDownloadAllUrl() {
+ return downloadAllUrl;
+ }
+
+ public String getUploadFacilityReportUrl() {
+ return uploadFacilityReportUrl;
+ }
+
+ public String getDownloadFacilityReportUrl() {
+ return downloadFacilityReportUrl;
+ }
+
+ public String getUploadActivityReportUrl() {
+ return uploadActivityReportUrl;
+ }
+
+ public String getUpdateDataSetsUrl() {
+ return updateDataSetsUrl;
+ }
+
+ public String getUpdateActivityPlanUrl() {
+ return updateActivityPlanUrl;
+ }
+
+ public String getChangeDataSetLangUrl() {
+ return changeDataSetLangUrl;
+ }
+
+ public String getSearchUrl() {
+ return searchUrl;
+ }
+
+ public String getUpdateNewVersionUrl() {
+ return updateNewVersionUrl;
+ }
+
+ public String getSendFeedbackUrl() {
+ return sendFeedbackUrl;
+ }
+
+ public String getFindUserUrl() {
+ return findUserUrl;
+ }
+
+ public String getSendMessageUrl() {
+ return sendMessageUrl;
+ }
+
+ public String getDownloadMessageConversationUrl() {
+ return downloadMessageConversationUrl;
+ }
+
+ public String getGetMessageUrl() {
+ return getMessageUrl;
+ }
+
+ public String getUpdateContactUrl() {
+ return updateContactUrl;
+ }
+
+ public String getFindPatientUrl() {
+ return findPatientUrl;
+ }
+
+ public String getUploadProgramStageUrl() {
+ return uploadProgramStageUrl;
+ }
+
+ public String getRegisterPersonUrl() {
+ return registerPersonUrl;
+ }
+
+ public String getEnrollProgramUrl() {
+ return enrollProgramUrl;
+ }
+
+ public String getGetVariesInfoUrl() {
+ return getVariesInfoUrl;
+ }
+
+ public String getAddRelationshipUrl() {
+ return addRelationshipUrl;
+ }
+
+ public String getDownloadAnonymousProgramUrl() {
+ return downloadAnonymousProgramUrl;
+ }
+
+ public String getFindProgramUrl() {
+ return findProgramUrl;
+ }
+
+ public String getFindPatientInAdvancedUrl() {
+ return findPatientInAdvancedUrl;
+ }
+
+ public String getFindVisitScheduleUrl() {
+ return findVisitScheduleUrl;
+ }
+
+ public String getFindLostToFollowUpUrl() {
+ return findLostToFollowUpUrl;
+ }
+
+ public String getHandleLostToFollowUpUrl() {
+ return handleLostToFollowUpUrl;
+ }
+
+ public String getGenerateRepeatableEventUrl() {
+ return generateRepeatableEventUrl;
+ }
+
+ public String getUploadSingleEventWithoutRegistration() {
+ return uploadSingleEventWithoutRegistration;
+ }
+
+ public void setUploadSingleEventWithoutRegistration(
+ String uploadSingleEventWithoutRegistration) {
+ this.uploadSingleEventWithoutRegistration = uploadSingleEventWithoutRegistration;
+ }
+
+ public void serialize(DataOutputStream dataOutputStream) throws IOException {
+ dataOutputStream.writeInt(id);
+ dataOutputStream.writeUTF(name);
+ dataOutputStream.writeUTF(downloadAllUrl);
+ dataOutputStream.writeUTF(updateActivityPlanUrl);
+ dataOutputStream.writeUTF(uploadFacilityReportUrl);
+ dataOutputStream.writeUTF(downloadFacilityReportUrl);
+ dataOutputStream.writeUTF(uploadActivityReportUrl);
+ dataOutputStream.writeUTF(updateDataSetsUrl);
+ dataOutputStream.writeUTF(changeDataSetLangUrl);
+ dataOutputStream.writeUTF(searchUrl);
+ dataOutputStream.writeUTF(updateNewVersionUrl);
+ dataOutputStream.writeUTF(sendFeedbackUrl);
+ dataOutputStream.writeUTF(findUserUrl);
+ dataOutputStream.writeUTF(sendMessageUrl);
+ dataOutputStream.writeUTF(downloadMessageConversationUrl);
+ dataOutputStream.writeUTF(getMessageUrl);
+ dataOutputStream.writeUTF(updateContactUrl);
+ dataOutputStream.writeUTF(findPatientUrl);
+ dataOutputStream.writeUTF(registerPersonUrl);
+ dataOutputStream.writeUTF(uploadProgramStageUrl);
+ dataOutputStream.writeUTF(enrollProgramUrl);
+ dataOutputStream.writeUTF(getVariesInfoUrl);
+ dataOutputStream.writeUTF(addRelationshipUrl);
+ dataOutputStream.writeUTF(downloadAnonymousProgramUrl);
+ dataOutputStream.writeUTF(findProgramUrl);
+ dataOutputStream.writeUTF(findPatientInAdvancedUrl);
+ dataOutputStream.writeUTF(findVisitScheduleUrl);
+ dataOutputStream.writeUTF(findLostToFollowUpUrl);
+ dataOutputStream.writeUTF(handleLostToFollowUpUrl);
+ dataOutputStream.writeUTF(generateRepeatableEventUrl);
+ dataOutputStream.writeUTF(uploadSingleEventWithoutRegistration);
+ }
+
+ public void deSerialize(DataInputStream dataInputStream) throws IOException {
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "Deserializing Organization Unit...");
+
+ id = dataInputStream.readInt();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "id=" + id);
+
+ name = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "name=" + name);
+
+ downloadAllUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "downloadAllUrl="
+ + downloadAllUrl);
+
+ updateActivityPlanUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "updateActivityPlanUrl=" + updateActivityPlanUrl);
+
+ uploadFacilityReportUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "uploadFacilityReportUrl=" + uploadFacilityReportUrl);
+
+ downloadFacilityReportUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "downloadFacilityReportUrl=" + downloadFacilityReportUrl);
+
+ uploadActivityReportUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "uploadActivityReportUrl=" + uploadActivityReportUrl);
+
+ updateDataSetsUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateDataSetsUrl="
+ + updateDataSetsUrl);
+
+ changeDataSetLangUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "changeDataSetLangUrl=" + changeDataSetLangUrl);
+
+ searchUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "searchUrl="
+ + searchUrl);
+
+ updateNewVersionUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateNewVersionUrl="
+ + updateNewVersionUrl);
+
+ sendFeedbackUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "sendFeedbackUrl="
+ + sendFeedbackUrl);
+
+ findUserUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findUserUrl="
+ + findUserUrl);
+
+ sendMessageUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "sendMessageUrl="
+ + sendMessageUrl);
+
+ downloadMessageConversationUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "downloadMessageConversationUrl="
+ + downloadMessageConversationUrl);
+
+ getMessageUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "getMessageUrl="
+ + getMessageUrl);
+
+ updateContactUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "updateContactUrl="
+ + updateContactUrl);
+
+ findPatientUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findPatientUrl="
+ + findPatientUrl);
+
+ registerPersonUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "registerPersonUrl="
+ + registerPersonUrl);
+
+ uploadProgramStageUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "uploadProgramStageUrl=" + uploadProgramStageUrl);
+
+ enrollProgramUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "enrollProgramUrl="
+ + enrollProgramUrl);
+
+ getVariesInfoUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "getVariesInfoUrl="
+ + getVariesInfoUrl);
+
+ addRelationshipUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "addRelationshipUrl="
+ + addRelationshipUrl);
+
+ downloadAnonymousProgramUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "downloadAnonymousProgramUrl=" + downloadAnonymousProgramUrl);
+
+ findProgramUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG, "findProgramUrl="
+ + findProgramUrl);
+
+ findPatientInAdvancedUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "findPatientInAdvancedUrl=" + findPatientInAdvancedUrl);
+
+ findVisitScheduleUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "findVisitScheduleUrl=" + findVisitScheduleUrl);
+
+ findLostToFollowUpUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "findLostToFollowUpUrl=" + findLostToFollowUpUrl);
+
+ handleLostToFollowUpUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "handleLostToFollowUpUrl=" + handleLostToFollowUpUrl);
+
+ generateRepeatableEventUrl = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "generateRepeatableEventUrl=" + generateRepeatableEventUrl);
+
+ uploadSingleEventWithoutRegistration = dataInputStream.readUTF();
+ LogMan.log(LogMan.DEBUG, "OrgUnit," + CLASS_TAG,
+ "uploadSingleEventWithoutRegistration="
+ + uploadSingleEventWithoutRegistration);
+ }
+
+ public boolean checkNewVersion(double serverVersion) {
+ double clientVersion;
+ boolean result = false;
+ try {
+ SettingRecordStore settingRecordStore = new SettingRecordStore();
+ clientVersion = Double.parseDouble(settingRecordStore
+ .get(SettingRecordStore.CLIENT_VERSION));
+ if (serverVersion > clientVersion) {
+ result = true;
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return result;
+ }
}
\ No newline at end of file