Class PlatformAgentService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.service.agent.PlatformAgentService
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActionRuntimeService
protected final AgentRuntimeService
protected Integer
protected final com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, EXTERNAL_WORKER_PREFIX, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformAgentService
(AgentRuntimeService agentRuntimeService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ActionRuntimeService actionRuntimeService) -
Method Summary
Modifier and TypeMethodDescriptionprotected AgentChatMessageResponse
convert
(AgentInstanceExchange agentInstanceExchange, Map<String, com.fasterxml.jackson.databind.JsonNode> preParsedTechnicalContent, Map<String, ActionInstance> prefetchedActionInstances) protected List
<AgentChatMessageResponse> convert
(List<AgentInstanceExchange> agentInstanceExchanges) getAgentChatInstanceResponse
(String scopeId, String scopeType) org.flowable.common.rest.api.DataResponse
<AgentChatMessageResponse> getAgentChatMessages
(String scopeId, String scopeType, org.flowable.common.rest.api.PaginateRequest request) protected AgentInstance
getAgentInstance
(String scopeId, String scopeType) protected void
processInsertedEntities
(com.fasterxml.jackson.databind.JsonNode technicalContentJsonNode, AgentChatMessageResponse agentInstanceExchangeResponse, String entityKey, String scopeType) sendAgentChatMessage
(String scopeId, String scopeType, SendAgentChatMessageRequest request) Methods inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
addAdditionalPermissions, currentUserHasAdminRights, currentUserIsSuperAdmin, fetchCasePermissionMappings, fetchCasePermissionMappings, fetchCaseSecurityPolicyModel, fetchPermissions, fetchPermissionsForTask, fetchProcessPermissionMappings, fetchProcessPermissionMappings, fetchProcessSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModelForCaseInstance, fetchSecurityPolicyModelForProcessInstance, fetchSecurityPolicyModelForTask, fetchSecurityPolicyModelForTask, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappingsForCase, fetchTaskPermissionMappingsForProcess, fetchTaskSecurityPolicyModelForCase, fetchTaskSecurityPolicyModelForProcess, filterPermissionsForRole, getCmmnExtensionElementValue, getCurrentGroupKeys, getCurrentSecurityScope, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
-
Field Details
-
allowedSortPropertiesExchange
-
defaultListResponseSize
-
agentRuntimeService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper -
actionRuntimeService
-
-
Constructor Details
-
PlatformAgentService
public PlatformAgentService(AgentRuntimeService agentRuntimeService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ActionRuntimeService actionRuntimeService)
-
-
Method Details
-
getAgentChatInstanceResponse
-
getAgentChatMessages
public org.flowable.common.rest.api.DataResponse<AgentChatMessageResponse> getAgentChatMessages(String scopeId, String scopeType, org.flowable.common.rest.api.PaginateRequest request) -
sendAgentChatMessage
public AgentChatMessageDetailResponse sendAgentChatMessage(String scopeId, String scopeType, SendAgentChatMessageRequest request) -
getAgentInstance
-
convert
protected List<AgentChatMessageResponse> convert(List<AgentInstanceExchange> agentInstanceExchanges) -
convert
protected AgentChatMessageResponse convert(AgentInstanceExchange agentInstanceExchange, Map<String, com.fasterxml.jackson.databind.JsonNode> preParsedTechnicalContent, Map<String, ActionInstance> prefetchedActionInstances) -
processInsertedEntities
protected void processInsertedEntities(com.fasterxml.jackson.databind.JsonNode technicalContentJsonNode, AgentChatMessageResponse agentInstanceExchangeResponse, String entityKey, String scopeType)
-