Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
5c1bb4bc
Commit
5c1bb4bc
authored
Sep 06, 2019
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/1.2.0_34869' into 'features/1.2.0'
Features/1.2.0 34869 See merge request
!35
parents
2aedb779
d90aa885
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationGroupMasterLogic.java
+0
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+17
-3
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
+3
-3
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationGroupMasterLogic.java
View file @
5c1bb4bc
...
@@ -13,13 +13,11 @@ import jp.agentec.abook.abv.bl.common.ABVEnvironment;
...
@@ -13,13 +13,11 @@ import jp.agentec.abook.abv.bl.common.ABVEnvironment;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
import
jp.agentec.abook.abv.bl.common.exception.NetworkDisconnectedException
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.data.ABVDataCache
;
import
jp.agentec.abook.abv.bl.data.dao.AbstractDao
;
import
jp.agentec.abook.abv.bl.data.dao.AbstractDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationGroupMasterDao
;
import
jp.agentec.abook.abv.bl.data.dao.OperationGroupMasterDao
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.dto.OperationDto
;
import
jp.agentec.abook.abv.bl.dto.OperationGroupMasterDto
;
import
jp.agentec.abook.abv.bl.dto.OperationGroupMasterDto
;
import
jp.agentec.abook.abv.bl.dto.OperationGroupMasterRelationDto
;
import
jp.agentec.abook.abv.bl.dto.comparator.OperationGroupMasterLevelComparator
;
import
jp.agentec.abook.abv.bl.dto.comparator.OperationGroupMasterLevelComparator
;
/**
/**
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
5c1bb4bc
...
@@ -493,6 +493,10 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -493,6 +493,10 @@ public class OperationListActivity extends ABVUIActivity {
public
void
run
()
{
public
void
run
()
{
Logger
.
d
(
TAG
,
"onResume Sync operationId : "
+
operationId
);
Logger
.
d
(
TAG
,
"onResume Sync operationId : "
+
operationId
);
if
(
operationDto
!=
null
&&
operationDto
.
needSyncFlg
)
{
if
(
operationDto
!=
null
&&
operationDto
.
needSyncFlg
)
{
if
(!
ABVEnvironment
.
getInstance
().
networkAdapter
.
isNetworkConnected
())
{
ABVToastUtil
.
showMakeText
(
OperationListActivity
.
this
,
R
.
string
.
msg_network_offline
,
Toast
.
LENGTH_SHORT
);
return
;
}
// 同期処理後、直列処理で新着更新を行う。
// 同期処理後、直列処理で新着更新を行う。
singleSyncOperation
(
operationId
,
operationDto
.
reportType
);
singleSyncOperation
(
operationId
,
operationDto
.
reportType
);
}
else
{
}
else
{
...
@@ -734,7 +738,19 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -734,7 +738,19 @@ public class OperationListActivity extends ABVUIActivity {
@Override
@Override
public
void
onDownloadingContentZip
(
final
ContentZipDownloadNotification
notification
)
{
public
void
onDownloadingContentZip
(
final
ContentZipDownloadNotification
notification
)
{
Logger
.
d
(
TAG
,
"[onDownloadingContentZip]"
);
Logger
.
d
(
TAG
,
"[onDownloadingContentZip]"
);
String
errorCodeStr
=
""
;
if
(
isShowingBatchSync
())
{
if
(
notification
.
getError
()
!=
null
)
{
Exception
e
=
notification
.
getError
();
Logger
.
e
(
TAG
,
e
);
if
(
e
instanceof
AcmsException
&&
((
AcmsException
)
e
).
getCode
()
!=
null
)
{
errorCodeStr
=
Integer
.
toString
(((
AcmsException
)
e
).
getHttpStatus
());
}
}
}
else
{
// 一括同期以外は親Activityに通知する
super
.
onDownloadingContentZip
(
notification
);
super
.
onDownloadingContentZip
(
notification
);
}
OperationContentDto
operationContentDto
=
mOperationContentDao
.
getOperationContentForContentId
(
notification
.
getContentId
());
OperationContentDto
operationContentDto
=
mOperationContentDao
.
getOperationContentForContentId
(
notification
.
getContentId
());
if
(
operationContentDto
!=
null
)
{
if
(
operationContentDto
!=
null
)
{
if
(
notification
.
downloadStatus
==
DownloadStatusType
.
Succeeded
)
{
if
(
notification
.
downloadStatus
==
DownloadStatusType
.
Succeeded
)
{
...
@@ -751,7 +767,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -751,7 +767,7 @@ public class OperationListActivity extends ABVUIActivity {
if
(
isShowingBatchSync
())
{
if
(
isShowingBatchSync
())
{
// 一括同期からのダウンロード失敗時、エラーメッセージ表示
// 一括同期からのダウンロード失敗時、エラーメッセージ表示
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
operationContentDto
.
operationId
);
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
operationContentDto
.
operationId
);
batchSyncView
.
showBatchSyncErrorAlert
(
operationDto
,
getString
(
R
.
string
.
msg_batch_sync_content_download_fail
));
batchSyncView
.
showBatchSyncErrorAlert
(
operationDto
,
getString
(
R
.
string
.
msg_batch_sync_content_download_fail
)
+
(
StringUtil
.
isNullOrEmpty
(
errorCodeStr
)
?
""
:
"("
+
errorCodeStr
+
")"
)
);
}
}
closeProgressPopup
();
closeProgressPopup
();
}
}
...
@@ -1850,8 +1866,6 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -1850,8 +1866,6 @@ public class OperationListActivity extends ABVUIActivity {
dialog
.
setOnItemClickListener
(
new
AdapterView
.
OnItemClickListener
()
{
dialog
.
setOnItemClickListener
(
new
AdapterView
.
OnItemClickListener
()
{
@Override
@Override
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
public
void
onItemClick
(
AdapterView
<?>
parent
,
View
view
,
int
position
,
long
id
)
{
// ポップアップ非表示
dialog
.
dismiss
();
getABVUIDataCache
().
setSortCondition
((
int
)
id
);
getABVUIDataCache
().
setSortCondition
((
int
)
id
);
refreshOperationList
();
refreshOperationList
();
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ABookCheckWebViewHelper.java
View file @
5c1bb4bc
...
@@ -149,7 +149,9 @@ public class ABookCheckWebViewHelper extends ABookHelper {
...
@@ -149,7 +149,9 @@ public class ABookCheckWebViewHelper extends ABookHelper {
* @param taskKey タスクキー
* @param taskKey タスクキー
*/
*/
private
void
sendTaskData
(
final
ABVContentViewActivity
context
,
final
long
operationId
,
final
String
taskKey
,
final
int
taskReportLevel
)
{
private
void
sendTaskData
(
final
ABVContentViewActivity
context
,
final
long
operationId
,
final
String
taskKey
,
final
int
taskReportLevel
)
{
// TODO 以下の処理見直し
// needSyncFlgをtrueに設定
mOperationLogic
.
updateSyncOperation
(
operationId
,
true
);
// ネットワーク通信チェック
// ネットワーク通信チェック
if
(!
ABVEnvironment
.
getInstance
().
networkAdapter
.
isNetworkConnected
())
{
if
(!
ABVEnvironment
.
getInstance
().
networkAdapter
.
isNetworkConnected
())
{
mFinishCallback
.
callback
(
false
);
mFinishCallback
.
callback
(
false
);
...
@@ -177,11 +179,9 @@ public class ABookCheckWebViewHelper extends ABookHelper {
...
@@ -177,11 +179,9 @@ public class ABookCheckWebViewHelper extends ABookHelper {
CommonExecutor
.
execute
(
new
Runnable
()
{
CommonExecutor
.
execute
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
OperationDto
operationDto
=
mOperationLogic
.
getOperation
(
operationId
);
boolean
isError
=
false
;
boolean
isError
=
false
;
try
{
try
{
mOperationLogic
.
updateSyncOperation
(
operationId
,
true
);
mOperationLogic
.
sendTaskReportSendData
(
operationId
,
taskKey
,
taskReportLevel
,
progressCallback
);
mOperationLogic
.
sendTaskReportSendData
(
operationId
,
taskKey
,
taskReportLevel
,
progressCallback
);
}
catch
(
AcmsException
ex
)
{
}
catch
(
AcmsException
ex
)
{
//noinspection EnumSwitchStatementWhichMissesCases
//noinspection EnumSwitchStatementWhichMissesCases
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment