Interface ActivitiSearchTaskService
-
- All Known Implementing Classes:
ActivitiSearchTaskServiceImpl
public interface ActivitiSearchTaskServiceInterface to handle variations of search task
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intcount(HistorySearchBean searchBean)intcountCertificationTasks(HistorySearchBean searchBean)intcountTasks(TaskSearchBean searchBean)org.springframework.data.domain.Page<TaskWrapper>findTasks(TaskSearchBean searchBean, int from, int size)CampaignTaskListWrappergetAccessCertificationCampaigns(AccessCertificationCampaignSearchBean searchBean, int from, int size)Provide data for UAR page - stat information by campaignCampaignStatsResponsegetAccessCertificationCampaignStats(AccessCertificationCampaignSearchBean searchBean)Provides data for UAR page - Stat information about all cert tasks (new / in progress / completed) Search happens based on OR pattern of task name (used when call done from webconsole for all or selected campaign), OR based on requester (reviewer ID), also if reviewer ID is provided we check if they are UAR or Global UAR managers.List<AccessCertificationHistoryObject>getAccessCertificationHistoryForUserId(String userId, int from, int size)List<AccessCertificationReminderData>getAccessCertificationReminders(Date forDate)Get a list of Access Certification Process instances to what we have to send reminders.TaskListWrappergetAccessCertificationTasks(HistorySearchBean searchBean, int from, int size)UploadAttachmentgetAttachmentBodyAsBase64String(String id)List<ProcessInstanceComment>getCommentForProcessInstanceIds(TaskSearchBean searchBean)Count comments with different types forTaskSearchBean#getProcessInstanceIds()List<String>getCompletedProcessInstanceIds(Date completedBefore, Date completedAfter)TaskListWrappergetCompletedProcessInstances(HistorySearchBean historySearchBean, int from, int size)Method return finished process instances byHistorySearchBean.org.springframework.data.domain.Page<TaskWrapper>getHistory(HistorySearchBean searchBean, int from, int size)List<TaskHistoryWrapper>getHistoryForInstance(String instanceId)TaskListWrappergetHistoryOfApprovals(String involvedUserId, int from, int size)Method is used to get All tasks in which given user is involdedTaskListWrappergetHistoryOfApprovals(HistorySearchBean historySearchBean, int from, int size)Method is used to get All tasks in which given user is involded byHistorySearchBeanfilteringintgetNumOfAssignedTasksWithFilter(String userId, String description, Date fromDate, Date toDate)intgetNumOfCandidateTasksWithFilter(String userId, String description, Date fromDate, Date toDate)TaskListWrappergetPivotView(HistorySearchBean historySearchBean, int from, int size)Provides data only for Pivot view.List<UploadAttachment>getProcessInstanceAttachments(String id)List<AccessCertificationTaskComment>getProcessInstanceComments(String processInstanceId, String type)List<TaskResRequestedWithProcessInstanceIdWrapper>getRequestedResources(TaskSearchBean searchBean)List<TaskResRequestedWithProcessInstanceIdWrapper>getRequestedResourcesForOpenAndCompletedTasks(TaskSearchBean searchBean)this method returns requested resources for the task but for open and completed. is used for reporting for ex. access cert reportTaskResRequestedWrappergetRequestedResourcesUserRelated(String taskId, Map<String,String> blockedRoles, Map<String,String> blockedGroups)ReviewedAccessWrappergetReviewedAccess(String procInstanceId)TaskWrappergetTask(String taskId)TaskWrappergetTaskFromHistory(String processInstanceId)TaskWrappergetTaskFromHistory(String executionId, String taskId)TaskWrappergetTaskInLastState(String processInstanceId)Method query by taskId from tasks, if no any results, it tries to query from history (task maybe already finished).TaskResRequestedWrappergetTaskRequestedRes(String taskId, Map<String,String> blockedRoleIds, Map<String,String> blockedGroupIds)TaskListWrappergetTasksForAssignedUserWithFilter(String userId, int from, int size, String description, Date fromDate, Date toDate)TaskListWrappergetTasksForCandidateUserWithFilter(String userId, int from, int size, String description, Date fromDate, Date toDate)TaskListWrappergetTasksForUser(String userId, int from, int size)Deprecated.
-
-
-
Method Detail
-
getTasksForCandidateUserWithFilter
TaskListWrapper getTasksForCandidateUserWithFilter(String userId, int from, int size, String description, Date fromDate, Date toDate)
-
getTasksForAssignedUserWithFilter
TaskListWrapper getTasksForAssignedUserWithFilter(String userId, int from, int size, String description, Date fromDate, Date toDate)
-
getNumOfAssignedTasksWithFilter
int getNumOfAssignedTasksWithFilter(String userId, String description, Date fromDate, Date toDate)
-
getNumOfCandidateTasksWithFilter
int getNumOfCandidateTasksWithFilter(String userId, String description, Date fromDate, Date toDate)
-
getTask
TaskWrapper getTask(String taskId) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getHistoryOfApprovals
TaskListWrapper getHistoryOfApprovals(String involvedUserId, int from, int size)
Method is used to get All tasks in which given user is involded- Parameters:
involvedUserId- - given user internal idfrom- - first Element numbersize- - size of the page- Returns:
- -
TaskListWrapper
-
getHistoryOfApprovals
TaskListWrapper getHistoryOfApprovals(HistorySearchBean historySearchBean, int from, int size)
Method is used to get All tasks in which given user is involded byHistorySearchBeanfiltering- Parameters:
historySearchBean- - search beanfrom- - first Element numbersize- - size of the page- Returns:
- -
TaskListWrapper
-
getTaskFromHistory
TaskWrapper getTaskFromHistory(String executionId, String taskId)
-
getTaskInLastState
TaskWrapper getTaskInLastState(String processInstanceId)
Method query by taskId from tasks, if no any results, it tries to query from history (task maybe already finished).- Parameters:
processInstanceId- - id of the processInstance.- Returns:
TaskWrapperof task if found, return NULL if no any results.
-
getTaskRequestedRes
TaskResRequestedWrapper getTaskRequestedRes(String taskId, Map<String,String> blockedRoleIds, Map<String,String> blockedGroupIds) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getReviewedAccess
ReviewedAccessWrapper getReviewedAccess(String procInstanceId) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
findTasks
org.springframework.data.domain.Page<TaskWrapper> findTasks(TaskSearchBean searchBean, int from, int size)
-
getCompletedProcessInstanceIds
List<String> getCompletedProcessInstanceIds(Date completedBefore, Date completedAfter)
-
countTasks
int countTasks(TaskSearchBean searchBean)
-
getHistory
org.springframework.data.domain.Page<TaskWrapper> getHistory(HistorySearchBean searchBean, int from, int size)
-
countCertificationTasks
int countCertificationTasks(HistorySearchBean searchBean)
-
getAccessCertificationTasks
TaskListWrapper getAccessCertificationTasks(HistorySearchBean searchBean, int from, int size)
-
getHistoryForInstance
List<TaskHistoryWrapper> getHistoryForInstance(String instanceId)
-
count
int count(HistorySearchBean searchBean)
-
getCompletedProcessInstances
TaskListWrapper getCompletedProcessInstances(HistorySearchBean historySearchBean, int from, int size)
Method return finished process instances byHistorySearchBean.- Parameters:
historySearchBean- - search bean for filteringfrom- - 1st resultsize- - number of entities to return- Returns:
- list of entities wrapped by
TaskListWrapper
-
getRequestedResourcesForOpenAndCompletedTasks
List<TaskResRequestedWithProcessInstanceIdWrapper> getRequestedResourcesForOpenAndCompletedTasks(TaskSearchBean searchBean)
this method returns requested resources for the task but for open and completed. is used for reporting for ex. access cert report- Parameters:
searchBean- contains process instance ids- Returns:
-
getCommentForProcessInstanceIds
List<ProcessInstanceComment> getCommentForProcessInstanceIds(TaskSearchBean searchBean)
Count comments with different types forTaskSearchBean#getProcessInstanceIds()- Parameters:
searchBean-- Returns:
ArrayListofProcessInstanceComment
-
getTasksForUser
@Deprecated TaskListWrapper getTasksForUser(String userId, int from, int size)
Deprecated.
-
getRequestedResources
List<TaskResRequestedWithProcessInstanceIdWrapper> getRequestedResources(TaskSearchBean searchBean)
-
getProcessInstanceComments
List<AccessCertificationTaskComment> getProcessInstanceComments(String processInstanceId, String type) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getAttachmentBodyAsBase64String
UploadAttachment getAttachmentBodyAsBase64String(String id) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getProcessInstanceAttachments
List<UploadAttachment> getProcessInstanceAttachments(String id) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getAccessCertificationHistoryForUserId
List<AccessCertificationHistoryObject> getAccessCertificationHistoryForUserId(String userId, int from, int size)
-
getAccessCertificationReminders
List<AccessCertificationReminderData> getAccessCertificationReminders(Date forDate)
Get a list of Access Certification Process instances to what we have to send reminders.- Parameters:
forDate- - before what date process Instances are required- Returns:
- - list of
AccessCertificationReminderDatawith data required for the reminders emails.
-
getPivotView
TaskListWrapper getPivotView(HistorySearchBean historySearchBean, int from, int size)
Provides data only for Pivot view. Dont reuse it if any changes are required.- Parameters:
historySearchBean- - search bean for filteringfrom- - 1st resultsize- - number of entities to return- Returns:
- list of entities wrapped by
TaskListWrapper
-
getAccessCertificationCampaigns
CampaignTaskListWrapper getAccessCertificationCampaigns(AccessCertificationCampaignSearchBean searchBean, int from, int size)
Provide data for UAR page - stat information by campaign- Parameters:
searchBean-from-size-- Returns:
- list of access certification camaigns with information about required steps and status
-
getAccessCertificationCampaignStats
CampaignStatsResponse getAccessCertificationCampaignStats(AccessCertificationCampaignSearchBean searchBean)
Provides data for UAR page - Stat information about all cert tasks (new / in progress / completed) Search happens based on OR pattern of task name (used when call done from webconsole for all or selected campaign), OR based on requester (reviewer ID), also if reviewer ID is provided we check if they are UAR or Global UAR managers.- Parameters:
searchBean-- Returns:
-
getTaskFromHistory
TaskWrapper getTaskFromHistory(String processInstanceId)
-
-