Class HistoryCriteria


  • public class HistoryCriteria
    extends Object
    Class that permits to set search criteria for history statistics.
    Author:
    silveryocha
    • Constructor Detail

      • HistoryCriteria

        public HistoryCriteria​(int actionType)
    • Method Detail

      • onResource

        public HistoryCriteria onResource​(ResourceReference resourceReference)
        Sets the criterion of resources the history must be attached to.
        Parameters:
        resourceReference - the reference of the resource.
        Returns:
        criteria itself.
      • ofType

        public HistoryCriteria ofType​(String resourceType)
        Sets the criterion of resources type the history must be attached.
        Parameters:
        resourceType - the reference of the resource.
        Returns:
        criteria itself.
      • aboutUsers

        public HistoryCriteria aboutUsers​(String... userIds)
        Sets the criterion of identifier of users the history must be attached to.
        Parameters:
        userIds - identifier of users.
        Returns:
        criteria itself.
      • aboutUsers

        public HistoryCriteria aboutUsers​(Collection<String> userIds)
        Sets the criterion of identifier of users the history must be attached to.
        Parameters:
        userIds - identifier of users.
        Returns:
        criteria itself.
      • aboutUsers

        public HistoryCriteria aboutUsers​(Stream<String> userIds)
        Sets the criterion of identifier of users the history must be attached to.
        Parameters:
        userIds - identifier of users.
        Returns:
        criteria itself.
      • byExcludingUsers

        public HistoryCriteria byExcludingUsers​(String... excludedUserIds)
        Sets the criterion of identifier of users the history must not be attached to.
        Parameters:
        excludedUserIds - identifier of users.
        Returns:
        criteria itself.
      • byExcludingUsers

        public HistoryCriteria byExcludingUsers​(Collection<String> excludedUserIds)
        Sets the criterion of identifier of users the history must not be attached to.
        Parameters:
        excludedUserIds - identifier of users.
        Returns:
        criteria itself.
      • byExcludingUsers

        public HistoryCriteria byExcludingUsers​(Stream<String> excludedUserIds)
        Sets the criterion of identifier of users the history must not be attached to.
        Parameters:
        excludedUserIds - identifier of users.
        Returns:
        criteria itself.
      • paginatedBy

        public HistoryCriteria paginatedBy​(PaginationPage pagination)
        Sets the criteria of pagination.
        Parameters:
        pagination - the pagination.
        Returns:
        criteria itself.
      • getActionType

        public int getActionType()
      • getResourceType

        public String getResourceType()
      • getResourceIds

        public List<String> getResourceIds()
      • getComponentInstanceIds

        public List<String> getComponentInstanceIds()
      • getExcludedUserIds

        public List<String> getExcludedUserIds()