Commit 1daa74dc by Lee Munkyeong

Merge branch 'features/abcomm_sp6' of…

Merge branch 'features/abcomm_sp6' of https://gitlab.agentec.jp/abook_android/abook_check into features/abcomm_sp6_document_collaboration
parents 08b20c80 bc84c3d7
...@@ -175,6 +175,7 @@ public class ChatRoomDao extends AbstractCommunicationDao { ...@@ -175,6 +175,7 @@ public class ChatRoomDao extends AbstractCommunicationDao {
for (ChatRoomDto chatRoomDto : chatRoomDtoList) { for (ChatRoomDto chatRoomDto : chatRoomDtoList) {
roomIdList.add(chatRoomDto.chatRoomId); roomIdList.add(chatRoomDto.chatRoomId);
insertChatRoom(chatRoomDto); insertChatRoom(chatRoomDto);
deleteChatRoomUsers(chatRoomDto.chatRoomId);
insertChatRoomUsers(chatRoomDto.attendUsers, chatRoomDto.chatRoomId); insertChatRoomUsers(chatRoomDto.attendUsers, chatRoomDto.chatRoomId);
} }
update("delete from t_chat_room where chat_room_id NOT IN (" + StringUtil.join(" , ", roomIdList) + ")", null); update("delete from t_chat_room where chat_room_id NOT IN (" + StringUtil.join(" , ", roomIdList) + ")", null);
...@@ -187,12 +188,15 @@ public class ChatRoomDao extends AbstractCommunicationDao { ...@@ -187,12 +188,15 @@ public class ChatRoomDao extends AbstractCommunicationDao {
} }
public void insertChatRoomUsers(List<Integer> attendUsers, Integer chatRoomId) { public void insertChatRoomUsers(List<Integer> attendUsers, Integer chatRoomId) {
update("delete from r_chat_room_shop_member where chat_room_id = ?", new Integer[]{chatRoomId});
for (Integer attendUserId : attendUsers) { for (Integer attendUserId : attendUsers) {
insert("insert or replace into r_chat_room_shop_member (chat_room_id, shop_member_id) values (?,?)", new Integer[]{chatRoomId, attendUserId}); insert("insert or replace into r_chat_room_shop_member (chat_room_id, shop_member_id) values (?,?)", new Integer[]{chatRoomId, attendUserId});
} }
} }
public void deleteChatRoomUsers(Integer chatRoomId) {
update("delete from r_chat_room_shop_member where chat_room_id = ?", new Integer[]{chatRoomId});
}
public boolean updateChatRoom(ChatRoomDto dto) { public boolean updateChatRoom(ChatRoomDto dto) {
long count = update("update t_chat_room set chat_room_name=?, type=?, unread_count=?, user_count=?, favorite_register_date=? where chat_room_id=?", dto.getUpdateValues()); long count = update("update t_chat_room set chat_room_name=?, type=?, unread_count=?, user_count=?, favorite_register_date=? where chat_room_id=?", dto.getUpdateValues());
return count > 0; return count > 0;
......
...@@ -189,6 +189,7 @@ public class CommunicationLogic extends AbstractLogic { ...@@ -189,6 +189,7 @@ public class CommunicationLogic extends AbstractLogic {
groupPathJsonArray.put(jsonObject); groupPathJsonArray.put(jsonObject);
} }
resultJson.put(ABookCommConstants.KEY.SHOP_MEMBER_ID, shopMemberDto.shopMemberId); resultJson.put(ABookCommConstants.KEY.SHOP_MEMBER_ID, shopMemberDto.shopMemberId);
resultJson.put(ABookCommConstants.KEY.LOGIN_ID, shopMemberDto.loginId);
resultJson.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMemberDto.shopMemberName); resultJson.put(ABookCommConstants.KEY.SHOP_MEMBER_NAME, shopMemberDto.shopMemberName);
resultJson.put(ABookCommConstants.KEY.PROFILE_URL, getProfileUrlPath(shopMemberDto.profileUrl)); resultJson.put(ABookCommConstants.KEY.PROFILE_URL, getProfileUrlPath(shopMemberDto.profileUrl));
resultJson.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathJsonArray); resultJson.put(ABookCommConstants.KEY.GROUP_PATH_LIST, groupPathJsonArray);
......
Subproject commit d2a3c40e46287e1d3869fdc7aaeff3195cb4ae59 Subproject commit de7a33d34ccf3a0307abe0c4bfbb0be2f233b54f
...@@ -1479,6 +1479,7 @@ ...@@ -1479,6 +1479,7 @@
<string name="msg_error_chat_name_has_invalid_character">特殊文字 ;/?:@&amp;=+$,-_.!~*\'()#\\\"` はルーム名に含めることができません。</string> <string name="msg_error_chat_name_has_invalid_character">特殊文字 ;/?:@&amp;=+$,-_.!~*\'()#\\\"` はルーム名に含めることができません。</string>
<string name="msg_error_chat_room_sc_forbidden">認証に失敗しました。再度ログインが必要です。</string> <string name="msg_error_chat_room_sc_forbidden">認証に失敗しました。再度ログインが必要です。</string>
<string name="msg_error_already_exist_same_room">同じルームが既に存在します。</string> <string name="msg_error_already_exist_same_room">同じルームが既に存在します。</string>
<string name="msg_confirm_send_host_change">ホスト権限を渡しますか?</string>
<!-- 連続作業 --> <!-- 連続作業 -->
<string name="msg_error_all_process_delete">全削除の送信に失敗しました。</string> <string name="msg_error_all_process_delete">全削除の送信に失敗しました。</string>
......
...@@ -1486,4 +1486,5 @@ ...@@ -1486,4 +1486,5 @@
<string name="msg_error_chat_room_sc_forbidden">사용자 정보를 확인할 수 없습니다. 다시 로그인하시기 바랍니다.</string> <string name="msg_error_chat_room_sc_forbidden">사용자 정보를 확인할 수 없습니다. 다시 로그인하시기 바랍니다.</string>
<string name="msg_error_all_process_delete">모두 삭제 송신에 실패하였습니다.</string> <string name="msg_error_all_process_delete">모두 삭제 송신에 실패하였습니다.</string>
<string name="msg_error_already_exist_same_room">동일한 채팅방이 이미 존재합니다.</string> <string name="msg_error_already_exist_same_room">동일한 채팅방이 이미 존재합니다.</string>
<string name="msg_confirm_send_host_change">방장 권한을 전달 받으시겠습니까?</string>
</resources> </resources>
\ No newline at end of file
...@@ -1483,4 +1483,5 @@ ...@@ -1483,4 +1483,5 @@
<string name="msg_error_chat_room_sc_forbidden">Failed to authenticate. Please login again.</string> <string name="msg_error_chat_room_sc_forbidden">Failed to authenticate. Please login again.</string>
<string name="msg_error_all_process_delete">Failed to send all deletes.</string> <string name="msg_error_all_process_delete">Failed to send all deletes.</string>
<string name="msg_error_already_exist_same_room">Already exist same room.</string> <string name="msg_error_already_exist_same_room">Already exist same room.</string>
<string name="msg_confirm_send_host_change">Do you want to receive host permissions?</string>
</resources> </resources>
...@@ -401,10 +401,9 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -401,10 +401,9 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
message = getString(R.string.msg_chat_confirm_delete); message = getString(R.string.msg_chat_confirm_delete);
} else if (message.equals("error_already_exist_same_user")) { } else if (message.equals("error_already_exist_same_user")) {
message = getString(R.string.msg_error_already_exist_same_room); message = getString(R.string.msg_error_already_exist_same_room);
} else { } else if (message.equals("방장 권한을 전달 받으시겠습니까?")){
message = message; message = getString(R.string.msg_confirm_send_host_change);
} }
ABookAlertDialog confirmAlert = AlertDialogUtil.createAlertDialog(ChatWebviewActivity.this, R.string.app_name); ABookAlertDialog confirmAlert = AlertDialogUtil.createAlertDialog(ChatWebviewActivity.this, R.string.app_name);
confirmAlert.setMessage(message); confirmAlert.setMessage(message);
...@@ -431,7 +430,6 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -431,7 +430,6 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}); });
confirmAlert.setCancelable(false); confirmAlert.setCancelable(false);
showAlertDialog(confirmAlert); showAlertDialog(confirmAlert);
return true; return true;
} }
}); });
...@@ -915,7 +913,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -915,7 +913,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
} }
@JavascriptInterface @JavascriptInterface
public void createChatRoom(String roomType, String userIdList, String encodedRoomName, String screenFlg) throws NetworkDisconnectedException, AcmsException { public void createChatRoom(String roomType, String userIdList, String encodedRoomName, String screenFlg, boolean isVoice) throws NetworkDisconnectedException, AcmsException {
CreatedRoomJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).createRoom(sid, roomType, userIdList, encodedRoomName, loginId); CreatedRoomJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).createRoom(sid, roomType, userIdList, encodedRoomName, loginId);
if (ABookCommConstants.FLAG.SCREEN_FLG.MAKE_ROOM.equals(Integer.parseInt(screenFlg))) { if (ABookCommConstants.FLAG.SCREEN_FLG.MAKE_ROOM.equals(Integer.parseInt(screenFlg))) {
final ChatRoomDto chatRoomDto = communicationLogic.getChatRoom(resultJson.chatRoomDto.chatRoomId); final ChatRoomDto chatRoomDto = communicationLogic.getChatRoom(resultJson.chatRoomDto.chatRoomId);
...@@ -933,12 +931,23 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -933,12 +931,23 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
communicationLogic.addUserInRoom(StringUtil.join(",", userIdList, shopMemberId.toString()), resultJson.chatRoomDto.chatRoomId); communicationLogic.addUserInRoom(StringUtil.join(",", userIdList, shopMemberId.toString()), resultJson.chatRoomDto.chatRoomId);
final Integer chatRoomId = resultJson.chatRoomDto.chatRoomId; final Integer chatRoomId = resultJson.chatRoomDto.chatRoomId;
final String chatRoomName = resultJson.chatRoomDto.chatRoomName; final String chatRoomName = resultJson.chatRoomDto.chatRoomName;
mChatWebView.post(new Runnable() { if (isVoice) {
@Override roomId = chatRoomId.longValue();
public void run() { roomName = chatRoomName;
mChatWebView.loadUrl(String.format("javascript:CHAT_UI.joinRoom('%s', '%s');", chatRoomId, chatRoomName)); mChatWebView.post(new Runnable() {
} @Override
}); public void run() {
mChatWebView.loadUrl(String.format("javascript:CHAT_UI.startCollaboration('%s');", ABookCommConstants.FLAG.COLLABORATION_TYPE.AUDIO));
}
});
} else {
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(String.format("javascript:CHAT_UI.joinRoom('%s', '%s');", chatRoomId, chatRoomName));
}
});
}
} }
@JavascriptInterface @JavascriptInterface
...@@ -980,16 +989,18 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -980,16 +989,18 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
} }
@JavascriptInterface @JavascriptInterface
public void inviteUsers(String userIds) throws NetworkDisconnectedException, AcmsException { public void inviteUsers(String userIds, boolean isCollaboration) throws NetworkDisconnectedException, AcmsException {
final UserInviteResultJSON result = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).inviteUsers(sid, roomId.intValue(), roomName, userIds); final UserInviteResultJSON result = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).inviteUsers(sid, roomId.intValue(), roomName, userIds);
if (result.roomId == null) { if (result.roomId == null) {
communicationLogic.addUserInRoom(userIds, roomId.intValue()); communicationLogic.addUserInRoom(userIds, roomId.intValue());
mChatWebView.post(new Runnable() { if (!isCollaboration) {
@Override mChatWebView.post(new Runnable() {
public void run() { @Override
mChatWebView.loadUrl(CHAT_ROOM_PAGE_URL); public void run() {
} mChatWebView.loadUrl(CHAT_ROOM_PAGE_URL);
}); }
});
}
} else { } else {
mChatWebView.post(new Runnable() { mChatWebView.post(new Runnable() {
@Override @Override
......
...@@ -17,8 +17,8 @@ public class PreSplashActivity extends Activity { ...@@ -17,8 +17,8 @@ public class PreSplashActivity extends Activity {
try { try {
// アーキテクチャがx86以外の場合のみ、以下のライブラリをロードする。 // アーキテクチャがx86以外の場合のみ、以下のライブラリをロードする。
if (!Build.CPU_ABI.contains("x86")) { if (!Build.CPU_ABI.contains("x86")) {
System.loadLibrary("skia_android"); // System.loadLibrary("skia_android");
System.loadLibrary("ozrv"); // System.loadLibrary("ozrv");
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
...@@ -38,17 +38,13 @@ app_versioncode=1 ...@@ -38,17 +38,13 @@ app_versioncode=1
# abvEnvironments.xml # abvEnvironments.xml
#cms server #cms server
#acms_address=http://10.0.2.2:8081/acms acms_address=https://check.abookcloud.com/acms
#download_server_address=http://10.0.2.2:8081/acms download_server_address=https://check.abookcloud.com/acms
acms_address=https://checkdev1.agentec.jp/acms
download_server_address=https://checkdev1.agentec.jp/acms
#acms_address=https://check.abookcloud.com/acms
#download_server_address=https://check.abookcloud.com/acms
#syncview server #syncview server
websocket_server_http_url=https://checkdev1.agentec.jp/v1 websocket_server_http_url=https://checkdev1.agentec.jp/v1
websocket_server_ws_url=wss://checkdev1.agentec.jp/v1 websocket_server_ws_url=wss://checkdev1.agentec.jp/v1
#WebSocket debug�o�� #WebSocket debug出力
websocket_debug=false websocket_debug=false
#Payment Settings #Payment Settings
...@@ -58,51 +54,51 @@ google_public_key3=LShEIudH7Q7jLZERczfa0PknZCC5I3G0bTNa/EndTMLIR6/W3DLHToDk5L5Nk ...@@ -58,51 +54,51 @@ google_public_key3=LShEIudH7Q7jLZERczfa0PknZCC5I3G0bTNa/EndTMLIR6/W3DLHToDk5L5Nk
#Application Settings #Application Settings
app_name=ABook Check app_name=ABook Check
#true:�X���[�v�֎~, false:�X���[�v���� #true:スリープ禁止, false:スリープ許可
keep_screen=false keep_screen=false
scheme_url=jp.agentec.abook.check scheme_url=jp.agentec.abook.check
#true:�����o�[�W�����m�F���s��Ȃ� false�FCMS�֎����o�[�W�����m�F���s�� #true:自動バージョン確認を行わない false:CMSへ自動バージョン確認を行う
store_version=false store_version=false
product_code=1 product_code=1
#�R���e���c���\�[�X��cache�t�H���_�ɓW�J���邩���Ȃ��� #コンテンツリソースをcacheフォルダに展開するかしないか
use_cache=true use_cache=true
#�R���e���c���\�[�X��cache�t�H���_�ɓW�J���鐔 #コンテンツリソースをcacheフォルダに展開する数
cache_size=0 cache_size=0
#�R���e���c��Head�Í������邩���Ȃ��� #コンテンツのHead暗号化するかしないか
content_protected=true content_protected=true
#use_cache�Ɠ��l��PDF�T���l�C��image���t�@�C�������邩���Ȃ��� #use_cacheと同様にPDFサムネイルimageをファイル化するかしないか
pdf_thumbnail_output=true pdf_thumbnail_output=true
#use_cache�Ɠ��l��PDF�y�[�Wimage���t�@�C�������邩���Ȃ��� #use_cacheと同様にPDFページimageをファイル化するかしないか
pdf_image_output=true pdf_image_output=true
#�����V���X�V�Ԋu(��) -1�̂Ƃ������X�V���Ȃ� #自動新着更新間隔(分) -1のとき自動更新しない
content_refresh_interval=30 content_refresh_interval=30
#�A�v���ُ�I������c���ē����A���[�g�\������(��) #アプリ異常終了時会議室再入室アラート表示期限(分)
meeting_reenter_alert=1440 meeting_reenter_alert=1440
#�����菬�����{������(�b)�̃y�[�W���O�͑��M���Ȃ� #これより小さい閲覧時間(秒)のページログは送信しない
min_page_log_second=3 min_page_log_second=3
#���j���[�\�����T�[�r�X�I�v�V�����ɏ]�� #メニュー表示をサービスオプションに従う
follow_service_option=true follow_service_option=true
#�p�X���[�h���s���̉񐔃`�F�b�N���s�����ۂ� #パスワード失敗時の回数チェックを行うか否か
is_check_invalid_passward_limit=true is_check_invalid_passward_limit=true
#���s�[�g�Đ��̃f�t�H���g�l #リピート再生のデフォルト値
repeat_default=true repeat_default=true
#Setting Info(�ݒ��ʂ�ABook�ɂ‚��Ă̐ݒ���) #Setting Info(設定画面のABookについての設定情報)
version_name=1.2.362 version_name=1.3.000
release_date=2021/01/27 release_date=2021/04/27
copy_right=2016 AGENTEC Co.,Ltd. All rights reserved. copy_right=2016 AGENTEC Co.,Ltd. All rights reserved.
hope_page=http://www.agentec.jp hope_page=http://www.agentec.jp
contact_email=abook-appsupport@agentec.jp contact_email=abook-appsupport@agentec.jp
#Log Settings #Log Settings
log_level=0 log_level=2
default_log_name=abvje default_log_name=abvje
#�G���[���|�[�g/Export���O���M���@ 1:acms 2:�������[���i�J���E�e�X�g���̂݁j 3:�Í����Y�t���[�� #エラーレポート/Exportログ送信方法 1:acms 2:平文メール(開発・テスト時のみ) 3:暗号化添付メール
error_report_flg=1 error_report_flg=1
error_report_email=abook-appsupport@agentec.jp error_report_email=abook-appsupport@agentec.jp
#�A�v����p���O�ۑ����ԁi���j(0�̓��O�o�͂Ȃ�) #アプリ専用ログ保存期間(日)(0はログ出力なし)
app_log_retention=7 app_log_retention=7
hprof=false hprof=false
...@@ -111,26 +107,26 @@ repository_fqdn=s.abook.bz ...@@ -111,26 +107,26 @@ repository_fqdn=s.abook.bz
# abvFunctionOptions.xml # abvFunctionOptions.xml
#Login #Login
#0:�F�؂Ȃ�, 1:���O�C��ID�A�p�X���[�h, 2:�A�J�E���g������A���O�C��ID�A�p�X���[�h, 3:�T�C�gID�A�A�J�E���g������A���O�C��ID�A�p�X���[�h4:�T�C�gID�A�A�J�E���g������ #0:認証なし, 1:ログインID、パスワード, 2:アカウント文字列、ログインID、パスワード, 3:サイトID、アカウント文字列、ログインID、パスワード4:サイトID、アカウント文字列
login_mode=2 login_mode=2
#login_mode��0�A1�̏ꍇ�̃A�J�E���g�p�X #login_modeが0、1の場合のアカウントパス
account_path=agtcatalog account_path=agtcatalog
#GCM #GCM
push_message=1 push_message=1
#�蓮�X�V #手動更新
#0:��\�� 1:�\�� 1.3.1 #0:非表示 1:表示 1.3.1
check_app_update=1 check_app_update=1
#���[�U�؂�ւ����S�ЃO���[�v�̃R���e���c���폜���Ȃ� #ユーザ切り替え時全社グループのコンテンツを削除しない
#0:�S�ẴR���e���c�폜 1:�S�Ђ̃R���e���c�폜���Ȃ� 1.5.3 #0:全てのコンテンツ削除 1:全社のコンテンツ削除しない 1.5.3
not_delete_all_contents=0 not_delete_all_contents=0
BLJAR_NAME=ABVJE_BL.jar BLJAR_NAME=ABVJE_BL.jar
#store�p�̏ꍇ�Aarmv7,x86�����r���h #store用の場合、armv7,x86両方ビルド
#store�ł͂Ȃ��ꍇ�Aarmv7�̂݃r���h #storeではない場合、armv7のみビルド
isStoreProduct=false isStoreProduct=false
#1.2.302 Edition #1.2.302 Edition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment