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
c53f122e
Commit
c53f122e
authored
May 19, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
協業切替API連動及び#42838対応。
parent
e75deb32
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
124 additions
and
20 deletions
+124
-20
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
+4
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/parameters/ChangeCollaborationParameters.java
+82
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/type/AcmsApis.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+15
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
+7
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+15
-11
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
View file @
c53f122e
...
...
@@ -53,6 +53,7 @@ import jp.agentec.abook.abv.bl.acms.client.parameters.AddMemberGroupParameters;
import
jp.agentec.abook.abv.bl.acms.client.parameters.AppStoreNewLoginParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.ArchiveDetailRequestParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.ArchiveRequestParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.ChangeCollaborationParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.ChangeRoomNameParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.CheckSendLogParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.ContentReadingLogParameters
;
...
...
@@ -808,6 +809,9 @@ public class AcmsClient implements AcmsClientResponseListener {
HttpResponse
response
=
send
(
AcmsApis
.
ApigetCollaboration
,
new
FinishCollaborationParameters
(
sid
,
AcmsApis
.
CollaborationCmds
.
finish
,
roomId
));
}
public
void
changeCollaboration
(
String
sid
,
int
roomId
,
int
changeCollaborationType
,
int
meetingId
)
throws
NetworkDisconnectedException
,
AcmsException
{
HttpResponse
response
=
send
(
AcmsApis
.
ApigetCollaboration
,
new
ChangeCollaborationParameters
(
sid
,
AcmsApis
.
CollaborationCmds
.
change
,
roomId
,
changeCollaborationType
,
meetingId
));
}
/**
* 協業内ユーザー招待
*
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/parameters/ChangeCollaborationParameters.java
0 → 100644
View file @
c53f122e
package
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
parameters
;
import
jp.agentec.adf.net.http.HttpParameterObject
;
/**
* ACMSのAPIに渡す共通的なパラメータを格納します。ACMSのAPIのパラメータ用クラスを作成するときはこのクラスを継承してください。<br>
* ただし、このクラスはログイン状態の確認用として使われる {@link ChangeCollaborationParameters#sid} を持っているため、ログイン用のパラメータ {@link MobileLoginParameters} は、このクラスを継承する必要はありません。
* @author lee-mk
* @version 1.0.0
*/
public
class
ChangeCollaborationParameters
extends
HttpParameterObject
{
/**
* セッションID
* @since 1.0.0
*/
private
String
sid
;
private
String
cmd
;
private
Integer
roomId
;
private
Integer
collaborationType
;
private
Integer
meetingId
;
/**
* {@link ChangeCollaborationParameters} のインスタンスを初期化します。
* @param sid ログインした時のセッションIDです。
* @param cmd Apiリクエストに必要なコマンド(ABOOK COMM専用)。
* @param roomId roomId
* @param meetingId meetingId
* @since 1.0.0
*/
public
ChangeCollaborationParameters
(
String
sid
,
String
cmd
,
Integer
roomId
,
Integer
collaborationType
,
Integer
meetingId
)
{
this
.
sid
=
sid
;
this
.
cmd
=
cmd
;
this
.
roomId
=
roomId
;
this
.
collaborationType
=
collaborationType
;
this
.
meetingId
=
meetingId
;
}
/**
* セッションIDを返します。
* @return ログインした時のセッションIDです。
* @since 1.0.0
*/
public
String
getSid
()
{
return
sid
;
}
/**
* コマンドを返します。
* @return ログインした時のセッションIDです。
* @since 1.0.0
*/
public
String
getCmd
()
{
return
cmd
;
}
/**
* roomIdを返します。
* @return roomId
* @since 1.0.0
*/
public
Integer
getRoomId
()
{
return
roomId
;
}
/**
* meetingIdを返します。
* @return meetingId
* @since 1.0.0
*/
public
Integer
getMeetingId
()
{
return
meetingId
;
}
/**
* collaborationTypeを返します。
* @return collaborationType
* @since 1.0.0
*/
public
Integer
getCollaborationType
()
{
return
collaborationType
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/type/AcmsApis.java
View file @
c53f122e
...
...
@@ -209,7 +209,7 @@ public class AcmsApis {
}
public
static
final
class
CollaborationCmds
{
public
static
final
String
start
=
"1"
;
public
static
final
String
change
=
"1"
;
public
static
final
String
join
=
"2"
;
public
static
final
String
finish
=
"3"
;
public
static
final
String
invite
=
"4"
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
c53f122e
...
...
@@ -1398,7 +1398,10 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
public
int
createContentView
()
{
Integer
meetingId
=
null
;
meetingManager
.
close
();
Stack
<
ABVAuthenticatedActivity
>
stack
=
activityHandlingHelper
.
getCurrentActivityStack
();
activityHandlingHelper
.
removeContentViewActivity
(
activityHandlingHelper
.
getContentViewActivity
());
finishBeforeContentListActivity
();
Stack
<
ABVAuthenticatedActivity
>
stack2
=
activityHandlingHelper
.
getCurrentActivityStack
();
try
{
connectMeetingServer
();
List
<
MeetingDto
>
meetingList
=
meetingManager
.
getMeetingList
(
mSkey
);
...
...
@@ -1412,7 +1415,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
}
catch
(
Exception
e
)
{
mChatWebView
.
loadUrl
(
"javascript:alert('"
+
"会議室サーバに接続できませんでした。"
+
"');"
);
}
finishBeforeContentListActivity
();
PictureInPictureParams
.
Builder
mPipBuilder
=
new
PictureInPictureParams
.
Builder
();
enterPictureInPictureMode
(
mPipBuilder
.
build
());
startContentListActivity
(
true
);
...
...
@@ -1421,8 +1423,9 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
@JavascriptInterface
public
void
startContentView
()
{
meetingManager
.
close
();
activityHandlingHelper
.
removeContentViewActivity
(
activityHandlingHelper
.
getContentViewActivity
());
finishBeforeContentListActivity
();
meetingManager
.
close
();
try
{
connectMeetingServer
();
List
<
MeetingDto
>
meetingList
=
meetingManager
.
getMeetingList
(
mSkey
);
...
...
@@ -1430,7 +1433,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
}
catch
(
Exception
e
)
{
mChatWebView
.
loadUrl
(
"javascript:alert('"
+
"会議室サーバに接続できませんでした。"
+
"');"
);
}
finishBeforeContentListActivity
();
PictureInPictureParams
.
Builder
mPipBuilder
=
new
PictureInPictureParams
.
Builder
();
enterPictureInPictureMode
(
mPipBuilder
.
build
());
startContentListActivity
(
false
);
...
...
@@ -1438,8 +1440,9 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
@JavascriptInterface
public
void
joinMeetingRoom
(
int
newMeetingId
)
{
meetingManager
.
close
();
activityHandlingHelper
.
removeContentViewActivity
(
activityHandlingHelper
.
getContentViewActivity
());
finishBeforeContentListActivity
();
meetingManager
.
close
();
try
{
connectMeetingServer
();
List
<
MeetingDto
>
meetingList
=
meetingManager
.
getMeetingList
(
mSkey
);
...
...
@@ -1447,7 +1450,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
}
catch
(
Exception
e
)
{
mChatWebView
.
loadUrl
(
"javascript:alert('"
+
"会議室サーバに接続できませんでした。"
+
"');"
);
}
finishBeforeContentListActivity
();
PictureInPictureParams
.
Builder
mPipBuilder
=
new
PictureInPictureParams
.
Builder
();
enterPictureInPictureMode
(
mPipBuilder
.
build
());
startContentListActivity
(
false
);
...
...
@@ -1475,6 +1477,13 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
public
void
setJoinCollaborationType
(
int
collaborationType
)
{
mCollaborationType
=
collaborationType
;
}
@JavascriptInterface
public
void
changeCollaboration
(
int
changeCollaborationType
,
int
meetingId
)
throws
NetworkDisconnectedException
,
AcmsException
{
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
changeCollaboration
(
sid
,
roomId
.
intValue
(),
changeCollaborationType
,
meetingId
);
int
test
=
1
;
test
=
test
+
1
;
}
}
/**
...
...
@@ -1500,7 +1509,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
private
void
finishPIPmode
()
{
if
(
isPIP
)
{
getApplication
().
startActivity
(
new
Intent
(
this
,
ChatWebViewActivity
.
class
)
.
addFlags
(
Intent
.
FLAG_ACTIVITY_REORDER_TO_FRONT
));
.
addFlags
(
Intent
.
FLAG_ACTIVITY_REORDER_TO_FRONT
|
Intent
.
FLAG_ACTIVITY_NEW_TASK
));
}
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
View file @
c53f122e
...
...
@@ -519,8 +519,13 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
showProgressPopup
();
hideContentList
();
MeetingManager
meetingManager
=
MeetingManager
.
getInstance
();
if
(!
meetingManager
.
isConnected
())
{
backToHome
();
}
MeetingManager
meetingManager
=
MeetingManager
.
getInstance
();
if
(!
meetingManager
.
isConnected
())
{
ChatWebViewActivity
chatWebViewActivity
=
activityHandlingHelper
.
getActivity
(
ChatWebViewActivity
.
class
);
if
(
chatWebViewActivity
!=
null
&&
chatWebViewActivity
.
isInPictureInPictureMode
())
{
getApplication
().
startActivity
(
new
Intent
(
chatWebViewActivity
,
ChatWebViewActivity
.
class
)
.
addFlags
(
Intent
.
FLAG_ACTIVITY_REORDER_TO_FRONT
|
Intent
.
FLAG_ACTIVITY_NEW_TASK
));
}
}
}
else
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
c53f122e
...
...
@@ -174,11 +174,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
@Override
public
void
run
()
{
try
{
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
);
if
(
page
!=
null
)
{
intent
.
putExtra
(
ABVActivity
.
PAGE
,
page
);
}
startContentActivity
(
mContext
,
intent
,
null
,
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
,
contentId
);
startContentActivity
(
mContext
,
intent
,
null
,
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
,
contentId
);
}
catch
(
Exception
e
)
{
Logger
.
e
(
TAG
,
"startContentActivity contentId="
+
contentId
,
e
);
showToast
(
mContext
.
getString
(
R
.
string
.
E113
));
...
...
@@ -293,6 +293,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
if
(
intent
==
null
)
{
intent
=
new
Intent
();
}
intent
.
putExtra
(
ABookKeys
.
CONTENT_ID
,
contentId
);
intent
.
putExtra
(
FILEPATH
,
path
);
intent
.
putExtra
(
ABookKeys
.
CONTENT_TYPE
,
contentType
);
...
...
@@ -384,20 +385,23 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
recordContentReadLog
(
context
,
contentId
);
}
Activity
targetActivity
=
getCurrentActivity
();
if
(
targetActivity
instanceof
ChatWebViewActivity
)
{
Stack
<
ABVAuthenticatedActivity
>
stack
=
getCurrentActivityStack
();
if
(
stack
.
size
()
>
1
){
targetActivity
=
stack
.
get
(
stack
.
size
()-
2
);
//AbookCommの文書協業の場合(ChatWebviewがPIPモードの場合)既存Contextでなく以前のActivityから画面を遷移する。
ChatWebViewActivity
chatWebViewActivity
=
getActivity
(
ChatWebViewActivity
.
class
);
if
(
chatWebViewActivity
!=
null
&&
chatWebViewActivity
.
isInPictureInPictureMode
())
{
context
=
getCurrentActivity
();
intent
.
removeFlags
(
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
|
intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_SINGLE_TOP
);
if
(
context
instanceof
ChatWebViewActivity
)
{
Stack
<
ABVAuthenticatedActivity
>
stack
=
getCurrentActivityStack
();
if
(
stack
.
size
()
>
1
){
context
=
stack
.
get
(
stack
.
size
()-
2
);
}
}
}
intent
.
setClass
(
targetActivity
,
ContentViewActivity
.
class
);
if
(!
StringUtil
.
equalsAny
(
contentType
,
ContentJSON
.
KEY_HTML_TYPE
,
ContentJSON
.
KEY_LINK_TYPE
,
ContentJSON
.
KEY_ENQUETE_TYPE
,
ContentJSON
.
KEY_EXAM_TYPE
,
ContentJSON
.
KEY_PANO_MOVIE_TYPE
,
ContentJSON
.
KEY_PANO_IMAGE_TYPE
,
ContentJSON
.
KEY_OBJECTVR_TYPE
))
{
targetActivity
.
startActivity
(
intent
);
context
.
startActivity
(
intent
);
}
}
...
...
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