Class BTForecastActivityDetailInsertManagement<I>

Type Parameters:
I - the generic type
All Implemented Interfaces:
Serializable, Tool, ValidExecution
Direct Known Subclasses:
BTForecastActivityDetailInsert, BTForecastActivityDetailInsertFromWo, BTForecastActivityMultipleTimeframesBuild

public abstract class BTForecastActivityDetailInsertManagement<I> extends ValidPermissionBusinessTask<I>
Generic business task for entering Forecast Activity Details
Before executing its purpose, the task checks whether the Forecast Management module is active and if the current user has the required permissions
Since:
15.0
See Also:
GCApi:
task
  • Constructor Details

    • BTForecastActivityDetailInsertManagement

      public BTForecastActivityDetailInsertManagement()
  • Method Details

    • isValidExecution

      public boolean isValidExecution()
      Description copied from interface: ValidExecution
      Determines whether the current state is valid for execution.
      Returns:
      true if execution is valid, false otherwise
    • validateAndCompleteInput

      protected void validateAndCompleteInput(Long activityId, Date startDate, Date endDate, Long expectedDuration, PoolKit poolKit) throws DAException, DAValidateException
      Validates the data before the insertion.
      Parameters:
      activityId - the activity id to insert
      startDate - the start date of the timeframe
      endDate - the end date of the timeframe
      expectedDuration - the expected duration of the activity in the timeframe
      poolKit - the PoolKit
      Throws:
      DAValidateException - the DA validate exception
      DAException