Interface BulkOperationAction<A extends BulkOperationAction<A>>

All Superinterfaces:
Action<A>, Comparable<A>, Copyable<A>, FormAction<A>, Serializable
All Known Implementing Classes:
DefaultBulkOperationAction

public interface BulkOperationAction<A extends BulkOperationAction<A>> extends FormAction<A>
Represents a bulk operation action.
Author:
Jon Fleschler (jfleschler)
  • Method Details

    • generateFriendlyName

      default A generateFriendlyName(boolean generateFriendlyName)
      Whether to generate a friendly name for the action. If true, the friendly name will be generated based on the operation type and date. If false, the friendly name will be manually set by the user.
      Parameters:
      generateFriendlyName - whether to generate a friendly name
      Returns:
      this
    • generateFriendlyName

      default A generateFriendlyName()
    • notGenerateFriendlyName

      default A notGenerateFriendlyName()
    • bulkOperationType

      default A bulkOperationType(String operationType)
      Adds the bulk operation type for the action. This is used as the action's id.
      Parameters:
      operationType - the bulk operation type
      Returns:
      this
    • entityType

      default A entityType(String entityType)
      Adds the bulk operation entity type for the action.
      Parameters:
      entityType - the bulk operation entity type.
      Returns:
      this
    • addSubmitEndpoint

      default A addSubmitEndpoint(Endpoint<?> endpoint)
      Adds the BulkOperationAction.EndpointTypes.SUBMIT endpoint for the component.
      Parameters:
      endpoint - the endpoint
      Returns:
      this
    • submitEndpoint

      default A submitEndpoint(UnaryOperator<Endpoint<?>> fn)
      Configures the BulkOperationAction.EndpointTypes.SUBMIT endpoint for the component.
      Parameters:
      fn - the function to configure the endpoint
      Returns:
      this
    • getSubmitEndpoint

      default Endpoint<?> getSubmitEndpoint()
      Retrieves the BulkOperationAction.EndpointTypes.SUBMIT endpoint for this component.
      Returns:
      the endpoint if it exists
      See Also:
    • findSubmitEndpoint

      default Optional<Endpoint<?>> findSubmitEndpoint()
      Finds the BulkOperationAction.EndpointTypes.SUBMIT endpoint for this component.
      Returns:
      an optional with the endpoint, or empty