Class EntitySelector.Builder<T extends EntitySelector.Builder<?,​?>,​S extends EntitySelector>

    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withOperation

        public T withOperation​(EntityOperation operation)
        Set an operation type filter on the selector to be built.
        Parameters:
        operation - operation type
        Returns:
        builder
      • withChangesTo

        public T withChangesTo​(Set<String> changesTo)
        Set a filter of added/updated or removed properties on the selector to be built.
        Parameters:
        changesTo - set of property names
        Returns:
        builder
      • withExecutingUser

        public T withExecutingUser​(String executingUser)
        Set a filter of executing user on the selector to be built.
        Parameters:
        executingUser - executing user
        Returns:
        builder
      • withAuthenticatedUser

        public T withAuthenticatedUser​(String authenticatedUser)
        Set a filter of authenticated user on the selector to be built.
        Parameters:
        authenticatedUser - authenticated user
        Returns:
        builder
      • withTxMetadata

        public T withTxMetadata​(Map<String,​Object> txMetadata)
        Set a filter of transaction metadata on the selector to be built.
        Parameters:
        txMetadata - transaction metadata
        Returns:
        builder
      • includingProperties

        public T includingProperties​(Set<String> includeProperties)
        Set which properties to include in the returned change events.
        Parameters:
        includeProperties - set of property names
        Returns:
        builder
      • excludingProperties

        public T excludingProperties​(Set<String> excludeProperties)
        Set which properties to exclude from the returned change events.
        Parameters:
        excludeProperties - set of property names
        Returns:
        builder
      • build

        public S build()
        Build the desired selector.
        Returns:
        selector