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
2666dd82
Commit
2666dd82
authored
Mar 21, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#33006 事業者毎のリソース多重化(Android)
parent
1525055a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
8 deletions
+40
-8
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ContentVersionsJSON.java
+10
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
+5
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
+5
-0
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+0
-1
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+0
-1
ABVJE_Res_Default_Android/res/values/strings.xml
+0
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+4
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+16
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ContentVersionsJSON.java
View file @
2666dd82
...
...
@@ -27,6 +27,11 @@ public class ContentVersionsJSON extends AcmsCommonJSON {
public
ArrayList
<
ContentDto
>
contentVersions
;
public
String
fetchDate
;
// #33006 start
public
static
final
String
ResourcePattern
=
"resourcepattern"
;
// リソースパターン
public
int
resourcePattern
;
// #33006 end
public
ContentVersionsJSON
(
String
jsonString
)
throws
AcmsException
{
super
(
jsonString
);
...
...
@@ -34,6 +39,11 @@ public class ContentVersionsJSON extends AcmsCommonJSON {
@Override
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
// #33006 start
if
(
json
.
has
(
ResourcePattern
))
{
resourcePattern
=
json
.
getInt
(
ResourcePattern
);
}
// #33006 end
if
(
json
.
has
(
FetchDate
))
{
fetchDate
=
json
.
getString
(
FetchDate
);
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
View file @
2666dd82
...
...
@@ -59,6 +59,11 @@ public class ABVEnvironment {
// ダウンロード作業が完了したあと、テーブルに値を更新する。その後、再びクリアするようにする
public
String
tempContentVersionLastFetchDate
=
""
;
// #33006 start
// Serverから取得したcontentVersion時のリソースパターンを一時的に保存するための変数
public
int
resourcePattern
;
// #33006 end
////////////////////////////// 定数 //////////////////////////////////
private
static
final
String
ServerTimeKey
=
"ABook"
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
View file @
2666dd82
...
...
@@ -265,6 +265,11 @@ public class ContentRefresher {
return
false
;
}
// #33006 start
// リソースパターンの値を取得する
ABVEnvironment
.
getInstance
().
resourcePattern
=
json
.
resourcePattern
;
// #33006 end
// 一時値を保存。ダウンロード処理が完了したあとにlastFetchDateを更新
String
fetchDate
=
json
.
fetchDate
;
ABVEnvironment
.
getInstance
().
tempContentVersionLastFetchDate
=
fetchDate
;
...
...
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
2666dd82
...
...
@@ -162,7 +162,6 @@
<string
name=
"homepage"
>
ホームページ
</string>
<string
name=
"support_mail"
>
サポートメール
</string>
<string
name=
"error"
>
エラー
</string>
<!-- #33006 -->
<string
name=
"error_email_subject"
>
【Error Report】 ABook for Android
</string>
<string
name=
"sendlog_email_subject"
>
ABook for Android ログファイル
</string>
...
...
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
2666dd82
...
...
@@ -163,7 +163,6 @@
<string
name=
"homepage"
>
홈페이지
</string>
<string
name=
"support_mail"
>
서포트메일
</string>
<string
name=
"error"
>
Error
</string>
<!-- #33006 -->
<string
name=
"error_email_subject"
>
【Error Report】 ABook for Android
</string>
<string
name=
"sendlog_email_subject"
>
ABook for Android 로그파일
</string>
...
...
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
2666dd82
...
...
@@ -162,7 +162,6 @@
<string
name=
"homepage"
>
Homepage
</string>
<string
name=
"support_mail"
>
Support Mail
</string>
<string
name=
"error"
>
Error
</string>
<!-- #33006 -->
<string
name=
"error_email_subject"
>
【Error Report】 ABook for Android
</string>
<string
name=
"sendlog_email_subject"
>
ABook for Android Log file
</string>
...
...
@@ -370,10 +369,6 @@
<string
name=
"pano_edit"
>
360edit
</string>
<string
name=
"information_update"
>
Update
</string>
<string
name=
"work_report"
>
Report
</string>
<!-- #33006 start -->
<string
name=
"work_report_1"
>
Report1
</string>
<string
name=
"work_report_2"
>
Report2
</string>
<!-- #33006 end -->
<string
name=
"synchronizing"
>
Syncing...
</string>
<string
name=
"msg_error_task_receiving_failed"
>
An error occurred while receiving work data.
</string>
<string
name=
"msg_error_task_report_receiving_failed"
>
An error occurred while receiving work report data.
</string>
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
View file @
2666dd82
...
...
@@ -54,6 +54,10 @@ public interface AppDefType {
String
VIEW_MODE
=
"viewMode"
;
String
OPERATION_REPORT_TYPES
=
"operationReportTypes"
;
// #33006 start
String
RESOURCE_PATTERN
=
"resourcePattern"
;
// リソースパターン
// #33006 end
}
/**
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
2666dd82
...
...
@@ -375,6 +375,10 @@ public class OperationListActivity extends ABVUIActivity {
if
(
refreshBaseView
!=
null
)
{
refreshBaseView
.
onRefreshComplete
();
}
// #33006 start
// リソースパターンを取得し、保存する。
getResourcePattern
();
// #33006 end
refreshOperationList
();
}
}
...
...
@@ -611,7 +615,7 @@ public class OperationListActivity extends ABVUIActivity {
for
(
TaskReportDto
taskReportDto
:
listTaskReport
)
{
// #32926 作業報告画面改善 start
if
(
taskReportDto
.
reporterFlag
)
{
FileUtil
.
delete
(
ABVEnvironment
.
getInstance
().
getOperationTaskReportLevelDirPath
(
operationId
,
taskReportDto
.
taskKey
,
String
.
valueOf
(
taskReportDto
.
taskReportLevel
));
FileUtil
.
delete
(
ABVEnvironment
.
getInstance
().
getOperationTaskReportLevelDirPath
(
operationId
,
taskReportDto
.
taskKey
,
String
.
valueOf
(
taskReportDto
.
taskReportLevel
))
)
;
}
// #32926 作業報告画面改善 end
}
...
...
@@ -1926,4 +1930,15 @@ public class OperationListActivity extends ABVUIActivity {
}
return
operationReportTypes
;
}
// #33006 start
// ログイン成功した後、新着更新時の「ContentVersion」APIからリソースパターンを取得し、ローカルに保存する。
private
void
getResourcePattern
()
{
Logger
.
d
(
TAG
,
"ABVEnvironment.getInstance().resourcePattern : "
+
ABVEnvironment
.
getInstance
().
resourcePattern
);
if
(
ABVEnvironment
.
getInstance
().
resourcePattern
!=
0
)
{
}
else
{
}
putUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN
,
ABVEnvironment
.
getInstance
().
resourcePattern
);
}
// #33006 end
}
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