Esempio n. 1
0
 def _get_conversation_user_list(self):
     _key = AppInfo.__tablename__ + ".uuid." + self._app_uuid
     _policy_name = self._redis.hget(_key, "app_route_policy")
     _cls = AbstractPolicy.get_policy_cls_by_name(_policy_name)
     _list = _cls.create_conversation_users(self._app_uuid,
                                            self._group_uuid, self._redis)
     return _list
Esempio n. 2
0
 def _get_portal_care_users(self, _app_uuid, _user_uuid):
     _key = AppInfo.__tablename__ + ".uuid." + _app_uuid
     _name = self.redis.hget(_key, "app_policy_name")
     _cls = AbstractPolicy.get_policy_cls_by_name(_name)
     return _cls.get_portal_care_users(_app_uuid, _user_uuid, self.redis)
Esempio n. 3
0
 def _get_portal_care_users(self, _app_uuid, _user_uuid):
     _key = AppInfo.__tablename__ + ".uuid." + _app_uuid
     _name = self.redis.hget(_key, "app_policy_name")
     _cls = AbstractPolicy.get_policy_cls_by_name(_name)
     return _cls.get_portal_care_users(_app_uuid, _user_uuid, self.redis)
 def _get_conversation_user_list(self):
     _key = AppInfo.__tablename__ + ".uuid." + self._app_uuid
     _policy_name = self._redis.hget(_key, "app_route_policy")
     _cls = AbstractPolicy.get_policy_cls_by_name(_policy_name)
     _list = _cls.create_conversation_users(self._app_uuid, self._group_uuid, self._redis)
     return _list