/** * Used for creating {@link WorklogResult} objects that also capture a <code>adjustmentAmount</code> to be set. * * @param worklog the worklog * @param adjustmentAmount the adjustment amount in seconds * @param isEditableCheckRequired flag to set on the result * @return Creates a {@link WorklogResult} that contains the {@link Worklog}, the adjustment amount and the flag for the editable check. */ public static WorklogAdjustmentAmountResult createAdjustmentAmount(final Worklog worklog, final Long adjustmentAmount, final boolean isEditableCheckRequired) { return new WorklogResultImpl(worklog, isEditableCheckRequired, null, adjustmentAmount); }
/** * Used for creating {@link WorklogResult} objects that also capture a <code>newEstimate</code> to be set. * * @param worklog the worklog * @param newEstimate the new estimate in seconds * @param isEditableCheckRequired flag to set on the result * @return Creates a {@link WorklogResult} that contains the {@link Worklog}, the new estimate and the flag for the editable check. */ public static WorklogNewEstimateResult createNewEstimate(final Worklog worklog, final Long newEstimate, final boolean isEditableCheckRequired) { return new WorklogResultImpl(worklog, isEditableCheckRequired, newEstimate, null); }
/** * @param worklog the worklog * @param isEditableCheckRequired flag to set on the result * @return Creates a simple {@link WorklogResult} that just contains the {@link Worklog} to use and the flag for the editable check. */ public static WorklogResult create(final Worklog worklog, final boolean isEditableCheckRequired) { return new WorklogResultImpl(worklog, isEditableCheckRequired, null, null); }