Class FindActivitiesRequest

Object
PagedRequest
FindActivitiesRequest
All Implemented Interfaces:
Serializable

public class FindActivitiesRequest extends PagedRequest
The search criteria for activities.

Only parameters that are specified in this request and have not null values are used for filtering. All other parameters are ignored.

The returned activities satisfy all constraints that are specified in this search criteria.

By default a result containing 1000 activities is returned.

See Also:
  • Constructor Details Link icon

    • FindActivitiesRequest Link icon

      public FindActivitiesRequest()
  • Method Details Link icon

    • getCountLimit Link icon

      @Deprecated(since="2024.02") @QueryParam("countLimit") public int getCountLimit()
      Deprecated.
      Parameter not used in the context of activities, for performance reasons they are not counted.
      Description copied from class: PagedRequest
      Allows to limit the number of elements that will be counted. -1 will count everything and 0 will cause the count to be skipped
      Overrides:
      getCountLimit in class PagedRequest
    • builder Link icon

      public static FindActivitiesRequest.Builder builder()
    • getTaskId Link icon

      public UUID getTaskId()
      The ID of the task which contains the basic find activities request.
    • getContextId Link icon

      public UUID getContextId()
      The ID of the context which the activities should be searched for.
    • getInvolvedPeopleIds Link icon

      public Set<UUID> getInvolvedPeopleIds()
      The list of IDs of the people that should be involved in searched activities.
    • getInvolvedRoleIds Link icon

      public Set<UUID> getInvolvedRoleIds()
      The list of IDs of the roles that should be involved in searched activities.
    • getPerformedByUserId Link icon

      public UUID getPerformedByUserId()
      The ID of the user who performed searched activities.
    • getPerformedByRoleIds Link icon

      public Set<UUID> getPerformedByRoleIds()
      The list of IDs of the roles assigned to users who performed searched activities.
    • getActivityType Link icon

      public ActivityType getActivityType()
      The type of the activity.
    • getCallId Link icon

      public String getCallId()
      The ID of the call.
    • getCategories Link icon

      public Set<ActivityFilterCategory> getCategories()
      The set of the categories of activities that should be searched. One of [ATTRIBUTE, ATTACHMENT, RELATION, COMMENT, STATUS, WORKFLOW, RESPONSIBILITY, USER, USER_GROUP, ROLE, TAGS, OTHERS].
    • getResourceTypes Link icon

      @Deprecated public Set<ResourceType> getResourceTypes()
      Deprecated.
      Use resourceDiscriminators instead.
      The set of the resource types that searched activities refer to, i.e. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance].
    • getResourceDiscriminators Link icon

      public Set<String> getResourceDiscriminators()
    • getStartDate Link icon

      public Long getStartDate()
      The start date of the searched activities, expressed as a Unix timestamp in milliseconds.
    • getEndDate Link icon

      public Long getEndDate()
      The end date of the searched activities, expressed as a Unix timestamp in milliseconds.
    • isCallCountEnabled Link icon

      public boolean isCallCountEnabled()
      Flag to indicate if the number of calls standing behind the activity should be returned or not. Note that by default that count will be not calculated as it brings an important performance penalty.
    • setTaskId Link icon

      public void setTaskId(UUID taskId)
      The ID of the task which contains the basic find activities request.
    • setContextId Link icon

      public void setContextId(UUID contextId)
      The ID of the context which the activities should be searched for.
    • setInvolvedPeopleIds Link icon

      public void setInvolvedPeopleIds(Set<UUID> involvedPeopleIds)
      The list of IDs of the people that should be involved in searched activities.
    • setInvolvedRoleIds Link icon

      public void setInvolvedRoleIds(Set<UUID> involvedRoleIds)
      The list of IDs of the roles that should be involved in searched activities.
    • setPerformedByUserId Link icon

      public void setPerformedByUserId(UUID performedByUserId)
      The ID of the user who performed searched activities.
    • setPerformedByRoleIds Link icon

      public void setPerformedByRoleIds(Set<UUID> performedByRoleIds)
      The list of IDs of the roles assigned to users who performed searched activities.
    • setActivityType Link icon

      public void setActivityType(ActivityType activityType)
      The type of the activity.
    • setCallId Link icon

      public void setCallId(String callId)
      The ID of the call.
    • setCategories Link icon

      public void setCategories(Set<ActivityFilterCategory> categories)
      The set of the categories of activities that should be searched. One of [ATTRIBUTE, ATTACHMENT, RELATION, COMMENT, STATUS, WORKFLOW, RESPONSIBILITY, USER, USER_GROUP, ROLE, TAGS, OTHERS].
    • setResourceTypes Link icon

      @Deprecated public void setResourceTypes(Set<ResourceType> resourceTypes)
      Deprecated.
      Use resourceDiscriminators instead.
      The set of the resource types that searched activities refer to, i.e. [Community, Asset, Domain, Attribute, Relation, WorkflowInstance].
    • setResourceDiscriminators Link icon

      public void setResourceDiscriminators(Set<String> resourceDiscriminators)
    • setStartDate Link icon

      public void setStartDate(Long startDate)
      The start date of the searched activities, expressed as a Unix timestamp in milliseconds.
    • setEndDate Link icon

      public void setEndDate(Long endDate)
      The end date of the searched activities, expressed as a Unix timestamp in milliseconds.
    • setCallCountEnabled Link icon

      public void setCallCountEnabled(boolean callCountEnabled)
      Flag to indicate if the number of calls standing behind the activity should be returned or not. Note that by default that count will be not calculated as it brings an important performance penalty.
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class PagedRequest
    • canEqual Link icon

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class PagedRequest
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class PagedRequest
    • toString Link icon

      public String toString()
      Overrides:
      toString in class PagedRequest