Uses of Class
com.bytedesk.service.agent.AgentEntity
Packages that use AgentEntity
Package
Description
工作组服务包
管理客服工作组相关功能
-
Uses of AgentEntity in com.bytedesk.service.agent
Methods in com.bytedesk.service.agent that return AgentEntityModifier and TypeMethodDescriptionprotected AgentEntity
AgentRestService.doSave
(AgentEntity entity) AgentRestService.handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, AgentEntity agent) Methods in com.bytedesk.service.agent that return types with arguments of type AgentEntityModifier and TypeMethodDescriptionprotected org.springframework.data.jpa.domain.Specification<AgentEntity>
AgentRestService.createSpecification
(AgentRequest request) protected org.springframework.data.domain.Page<AgentEntity>
AgentRestService.executePageQuery
(org.springframework.data.jpa.domain.Specification<AgentEntity> spec, org.springframework.data.domain.Pageable pageable) AgentRestService.findAllConnected()
AgentRestService.findByConnected
(boolean connected) AgentRepository.findByConnectedAndDeletedFalse
(boolean connected) AgentRepository.findByDeletedFalse()
AgentRestService.findByEmailAndOrgUid
(String email, String orgUid) AgentRepository.findByEmailAndOrgUidAndDeletedFalse
(String email, String orgUid) AgentRestService.findByMobileAndOrgUid
(String mobile, String orgUid) AgentRepository.findByMobileAndOrgUidAndDeletedFalse
(String mobile, String orgUid) AgentRepository.findByOrgUid
(String orgUid) AgentRepository.findByOrgUidAndDeletedFalse
(String orgUid) AgentRepository.findByUserUid
(String userUid) AgentRestService.findByUserUid
(String userUid) AgentRestService.findByUserUidAndOrgUid
(String userUid, String orgUid) AgentRepository.findByUserUidAndOrgUidAndDeletedFalse
(String userUid, String orgUid) AgentService.getAvailableAgents()
static org.springframework.data.jpa.domain.Specification<AgentEntity>
AgentSpecification.search
(AgentRequest request, AuthService authService) Methods in com.bytedesk.service.agent with parameters of type AgentEntityModifier and TypeMethodDescriptionAgentRestService.convertToResponse
(AgentEntity entity) protected AgentEntity
AgentRestService.doSave
(AgentEntity entity) AgentRestService.handleOptimisticLockingFailureException
(org.springframework.orm.ObjectOptimisticLockingFailureException e, AgentEntity agent) void
AgentEntityListener.postPersist
(AgentEntity agent) void
AgentEntityListener.postUpdate
(AgentEntity agent) Method parameters in com.bytedesk.service.agent with type arguments of type AgentEntityModifier and TypeMethodDescriptionprotected org.springframework.data.domain.Page<AgentEntity>
AgentRestService.executePageQuery
(org.springframework.data.jpa.domain.Specification<AgentEntity> spec, org.springframework.data.domain.Pageable pageable) -
Uses of AgentEntity in com.bytedesk.service.agent.event
Fields in com.bytedesk.service.agent.event declared as AgentEntityModifier and TypeFieldDescriptionprivate AgentEntity
AgentCreateEvent.agent
private AgentEntity
AgentUpdateEvent.agent
private AgentEntity
AgentUpdateStatusEvent.agent
Constructors in com.bytedesk.service.agent.event with parameters of type AgentEntityModifierConstructorDescriptionAgentCreateEvent
(Object source, AgentEntity agent) AgentUpdateEvent
(Object source, AgentEntity agent, String updateType) AgentUpdateStatusEvent
(Object source, AgentEntity agent) -
Uses of AgentEntity in com.bytedesk.service.routing_strategy
Methods in com.bytedesk.service.routing_strategy that return AgentEntityModifier and TypeMethodDescriptionprivate AgentEntity
AgentThreadRoutingStrategy.getAgentEntity
(String agentUid) 获取客服实体private AgentEntity
WorkgroupThreadRoutingStrategy.selectAgent
(WorkgroupEntity workgroup, ThreadEntity thread) 选择客服Methods in com.bytedesk.service.routing_strategy with parameters of type AgentEntityModifier and TypeMethodDescriptionprivate String
AgentThreadRoutingStrategy.getAgentOfflineMessage
(AgentEntity agent) 获取客服离线消息private String
AgentThreadRoutingStrategy.getAgentWelcomeMessage
(AgentEntity agent) 获取客服欢迎消息private String
WorkgroupThreadRoutingStrategy.getAgentWelcomeMessage
(AgentEntity agentEntity) 获取客服欢迎消息WorkgroupThreadRoutingStrategy.getOfflineMessage
(VisitorRequest visitorRequest, ThreadEntity threadFromRequest, AgentEntity agentEntity, WorkgroupEntity workgroup, QueueMemberEntity queueMemberEntity) 获取离线消息private ThreadEntity
AgentThreadRoutingStrategy.getOrCreateThread
(VisitorRequest visitorRequest, AgentEntity agentEntity, String topic) 获取或创建线程private MessageProtobuf
AgentThreadRoutingStrategy.handleAvailableAgent
(ThreadEntity threadFromRequest, AgentEntity agent, QueueMemberEntity queueMemberEntity) 处理可用客服(客服在线且未达到最大接待人数)private MessageProtobuf
WorkgroupThreadRoutingStrategy.handleAvailableWorkgroup
(ThreadEntity threadFromRequest, AgentEntity agentEntity, QueueMemberEntity queueMemberEntity) 处理可用工作组客服private MessageProtobuf
AgentThreadRoutingStrategy.handleExistingThread
(ThreadEntity thread, AgentEntity agentEntity) 处理已存在的线程private MessageProtobuf
AgentThreadRoutingStrategy.handleOfflineAgent
(ThreadEntity threadFromRequest, AgentEntity agent, QueueMemberEntity queueMemberEntity) 处理离线客服private MessageProtobuf
AgentThreadRoutingStrategy.handleQueuedAgent
(ThreadEntity threadFromRequest, AgentEntity agent, QueueMemberEntity queueMemberEntity) 处理排队客服(客服在线但已达到最大接待人数)private MessageProtobuf
WorkgroupThreadRoutingStrategy.handleQueuedWorkgroup
(ThreadEntity threadFromRequest, AgentEntity agentEntity, QueueMemberEntity queueMemberEntity) 处理排队工作组客服private MessageProtobuf
WorkgroupThreadRoutingStrategy.routeByAgentStatus
(AgentEntity agentEntity, ThreadEntity thread, QueueMemberEntity queueMemberEntity, WorkgroupEntity workgroup, VisitorRequest visitorRequest) 根据客服状态进行路由private MessageProtobuf
AgentThreadRoutingStrategy.routeNewThread
(ThreadEntity thread, AgentEntity agentEntity, VisitorRequest visitorRequest) 路由新线程private MessageProtobuf
AgentThreadRoutingStrategy.routeOnlineAgent
(ThreadEntity thread, AgentEntity agentEntity, QueueMemberEntity queueMemberEntity) 路由在线客服private void
WorkgroupThreadRoutingStrategy.setThreadOwner
(ThreadEntity thread, AgentEntity agentEntity) 设置线程所有者 -
Uses of AgentEntity in com.bytedesk.service.utils
Methods in com.bytedesk.service.utils with parameters of type AgentEntityModifier and TypeMethodDescriptionstatic AgentResponse
ServiceConvertUtils.convertToAgentResponse
(AgentEntity agent) static UserProtobuf
ServiceConvertUtils.convertToUserProtobuf
(AgentEntity agent) static String
ServiceConvertUtils.convertToUserProtobufJSONString
(AgentEntity agent) -
Uses of AgentEntity in com.bytedesk.service.visitor_thread
Methods in com.bytedesk.service.visitor_thread with parameters of type AgentEntityModifier and TypeMethodDescriptionVisitorThreadService.createAgentThread
(VisitorRequest visitorRequest, AgentEntity agent, String topic) VisitorThreadService.reInitAgentThreadExtra
(ThreadEntity thread, AgentEntity agent) private void
VisitorThreadService.sendRemindMessage
(QueueMemberEntity queueMember, ThreadEntity thread, AgentEntity agent) -
Uses of AgentEntity in com.bytedesk.service.workgroup
Fields in com.bytedesk.service.workgroup declared as AgentEntityModifier and TypeFieldDescriptionprivate AgentEntity
WorkgroupEntity.messageLeaveAgent
Agent responsible for handling offline messagesFields in com.bytedesk.service.workgroup with type parameters of type AgentEntityModifier and TypeFieldDescriptionprivate List<AgentEntity>
WorkgroupEntity.agents
Agents assigned to this workgroupMethods in com.bytedesk.service.workgroup that return AgentEntityModifier and TypeMethodDescriptionWorkgroupEntity.getMessageLeaveAgent()
WorkgroupRoutingService.selectAgent
(WorkgroupEntity workgroup, ThreadEntity thread) 根据工作组路由模式选择客服private AgentEntity
WorkgroupRoutingService.selectByConsistentHash
(String visitorUid, List<AgentEntity> agents) 一致性哈希算法 相同访客尽量分配给同一个客服private AgentEntity
WorkgroupRoutingService.selectByFastestResponse
(List<AgentEntity> agents) 最快响应算法 选择平均响应时间最短的客服private AgentEntity
WorkgroupRoutingService.selectByLeastActive
(List<AgentEntity> agents) 最小活动数算法 选择当前会话数最少的客服private AgentEntity
WorkgroupRoutingService.selectByRandom
(List<AgentEntity> agents) 随机算法 随机选择一个可用客服private AgentEntity
WorkgroupRoutingService.selectByRecent
(WorkgroupEntity workgroup, ThreadEntity thread) 选择最近一次会话ThreadEntity接待的客服。private AgentEntity
WorkgroupRoutingService.selectByRoundRobin
(String workgroupUid, List<AgentEntity> agents) 轮询算法 按顺序将请求分配给每个客服private AgentEntity
WorkgroupRoutingService.selectByWeightedRandom
(List<AgentEntity> agents) 加权随机算法 根据客服评分和性能给予不同权重Methods in com.bytedesk.service.workgroup that return types with arguments of type AgentEntityMethods in com.bytedesk.service.workgroup with parameters of type AgentEntityModifier and TypeMethodDescriptionprivate double
WorkgroupRoutingService.calculateWeight
(AgentEntity agent) 计算客服权重WorkgroupRepository.findByAgentsContaining
(AgentEntity agent) 查找包含指定客服的所有工作组private double
WorkgroupRoutingService.getAverageResponseTime
(AgentEntity agent) TODO: 获取平均响应时间(秒)Method parameters in com.bytedesk.service.workgroup with type arguments of type AgentEntityModifier and TypeMethodDescriptionprivate AgentEntity
WorkgroupRoutingService.selectByConsistentHash
(String visitorUid, List<AgentEntity> agents) 一致性哈希算法 相同访客尽量分配给同一个客服private AgentEntity
WorkgroupRoutingService.selectByFastestResponse
(List<AgentEntity> agents) 最快响应算法 选择平均响应时间最短的客服private AgentEntity
WorkgroupRoutingService.selectByLeastActive
(List<AgentEntity> agents) 最小活动数算法 选择当前会话数最少的客服private AgentEntity
WorkgroupRoutingService.selectByRandom
(List<AgentEntity> agents) 随机算法 随机选择一个可用客服private AgentEntity
WorkgroupRoutingService.selectByRoundRobin
(String workgroupUid, List<AgentEntity> agents) 轮询算法 按顺序将请求分配给每个客服private AgentEntity
WorkgroupRoutingService.selectByWeightedRandom
(List<AgentEntity> agents) 加权随机算法 根据客服评分和性能给予不同权重 -
Uses of AgentEntity in com.bytedesk.ticket.comment
Fields in com.bytedesk.ticket.comment declared as AgentEntity -
Uses of AgentEntity in com.bytedesk.ticket.identity
Methods in com.bytedesk.ticket.identity with parameters of type AgentEntityModifier and TypeMethodDescriptionvoid
TicketIdentityService.syncUser
(AgentEntity agent) 同步用户到Flowable