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
833fcf32
Commit
833fcf32
authored
Mar 25, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#33006 事業者毎のリソース多重化(Android)
- APIと連携対応の修正
parent
99e0cbc2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ContentVersionsJSON.java
+4
-4
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+3
-3
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ContentVersionsJSON.java
View file @
833fcf32
...
...
@@ -29,8 +29,8 @@ public class ContentVersionsJSON extends AcmsCommonJSON {
public
String
fetchDate
;
// #33006 start
public
static
final
String
ResourcePattern
=
"resourcepattern"
;
//
リソースパターン
public
int
resourcePattern
;
public
static
final
String
ResourcePattern
Type
=
"resourcePatternType"
;
// 文言
リソースパターン
public
int
resourcePattern
Type
;
// #33006 end
public
ContentVersionsJSON
(
String
jsonString
)
throws
AcmsException
{
...
...
@@ -40,8 +40,8 @@ public class ContentVersionsJSON extends AcmsCommonJSON {
@Override
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
// #33006 start
if
(
json
.
has
(
ResourcePattern
))
{
resourcePattern
=
json
.
getInt
(
ResourcePattern
);
if
(
json
.
has
(
ResourcePattern
Type
))
{
resourcePattern
Type
=
json
.
getInt
(
ResourcePatternType
);
}
// #33006 end
if
(
json
.
has
(
FetchDate
))
{
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/ABVEnvironment.java
View file @
833fcf32
...
...
@@ -61,7 +61,7 @@ public class ABVEnvironment {
// #33006 start
// Serverから取得したcontentVersion時のリソースパターンを一時的に保存するための変数
public
int
resourcePattern
;
public
int
resourcePattern
Type
;
// #33006 end
////////////////////////////// 定数 //////////////////////////////////
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/download/ContentRefresher.java
View file @
833fcf32
...
...
@@ -267,7 +267,7 @@ public class ContentRefresher {
// #33006 start
// リソースパターンの値を取得する
ABVEnvironment
.
getInstance
().
resourcePattern
=
json
.
resourcePattern
;
ABVEnvironment
.
getInstance
().
resourcePattern
Type
=
json
.
resourcePatternType
;
// #33006 end
// 一時値を保存。ダウンロード処理が完了したあとにlastFetchDateを更新
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/appinfo/AppDefType.java
View file @
833fcf32
...
...
@@ -56,7 +56,7 @@ public interface AppDefType {
String
OPERATION_REPORT_TYPES
=
"operationReportTypes"
;
// #33006 start
String
RESOURCE_PATTERN
=
"resourcePattern"
;
//
リソースパターン
String
RESOURCE_PATTERN
_TYPE
=
"resourcePatternType"
;
// 文言
リソースパターン
// #33006 end
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
833fcf32
...
...
@@ -1806,11 +1806,11 @@ public class OperationListActivity extends ABVUIActivity {
// #33006 start
// ログイン成功した後、新着更新時の「ContentVersion」APIからリソースパターンを取得し、ローカルに保存する。
private
void
getResourcePattern
()
{
Logger
.
d
(
TAG
,
"ABVEnvironment.getInstance().resourcePattern
: "
+
ABVEnvironment
.
getInstance
().
resourcePattern
);
if
(
ABVEnvironment
.
getInstance
().
resourcePattern
!=
0
)
{
Logger
.
d
(
TAG
,
"ABVEnvironment.getInstance().resourcePattern
Type : "
+
ABVEnvironment
.
getInstance
().
resourcePatternType
);
if
(
ABVEnvironment
.
getInstance
().
resourcePattern
Type
!=
0
)
{
}
else
{
}
putUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN
,
ABVEnvironment
.
getInstance
().
resourcePattern
);
putUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN
_TYPE
,
ABVEnvironment
.
getInstance
().
resourcePatternType
);
}
// #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