mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
cc66147bc0
* refactor: getting workspace id * refactor: check workspace id is match for http response * refactor: check http repsonse in valid by checing the workspace id * chore: update log * chore: fix test * chore: fix test * chore: add test * chore: update test
33 lines
900 B
Rust
33 lines
900 B
Rust
use crate::manager::{FolderManager, FolderUser, MutexFolder};
|
|
use crate::view_operation::FolderOperationHandlers;
|
|
use collab_integrate::collab_builder::AppFlowyCollabBuilder;
|
|
use flowy_folder_pub::cloud::FolderCloudService;
|
|
use flowy_search_pub::entities::FolderIndexManager;
|
|
use std::sync::Arc;
|
|
|
|
impl FolderManager {
|
|
pub fn get_mutex_folder(&self) -> Arc<MutexFolder> {
|
|
self.mutex_folder.clone()
|
|
}
|
|
|
|
pub fn get_cloud_service(&self) -> Arc<dyn FolderCloudService> {
|
|
self.cloud_service.clone()
|
|
}
|
|
|
|
pub fn get_user(&self) -> Arc<dyn FolderUser> {
|
|
self.user.clone()
|
|
}
|
|
|
|
pub fn get_indexer(&self) -> Arc<dyn FolderIndexManager> {
|
|
self.folder_indexer.clone()
|
|
}
|
|
|
|
pub fn get_collab_builder(&self) -> Arc<AppFlowyCollabBuilder> {
|
|
self.collab_builder.clone()
|
|
}
|
|
|
|
pub fn get_operation_handlers(&self) -> FolderOperationHandlers {
|
|
self.operation_handlers.clone()
|
|
}
|
|
}
|