public class WorklogResultFactory extends Object
WorklogResult
objects.Constructor and Description |
---|
WorklogResultFactory() |
Modifier and Type | Method and Description |
---|---|
static WorklogResult |
create(Worklog worklog) |
static WorklogResult |
create(Worklog worklog,
boolean isEditableCheckRequired) |
static WorklogAdjustmentAmountResult |
createAdjustmentAmount(Worklog worklog,
Long adjustmentAmount)
Used for creating
WorklogResult objects that also capture a adjustmentAmount to be set. |
static WorklogAdjustmentAmountResult |
createAdjustmentAmount(Worklog worklog,
Long adjustmentAmount,
boolean isEditableCheckRequired)
Used for creating
WorklogResult objects that also capture a adjustmentAmount to be set. |
static WorklogAdjustmentAmountResult |
createAdjustmentAmount(WorklogResult worklogResult,
Long adjustmentAmount)
Used for copying the
WorklogResult received from the base validate method and adding on the
adjustmentAmount . |
static WorklogNewEstimateResult |
createNewEstimate(Worklog worklog,
Long newEstimate)
Used for creating
WorklogResult objects that also capture a newEstimate to be set. |
static WorklogNewEstimateResult |
createNewEstimate(Worklog worklog,
Long newEstimate,
boolean isEditableCheckRequired)
Used for creating
WorklogResult objects that also capture a newEstimate to be set. |
static WorklogNewEstimateResult |
createNewEstimate(WorklogResult worklogResult,
Long newEstimate)
Used for copying the
WorklogResult received from the base validate method and adding on the
newEstimate . |
public static WorklogResult create(Worklog worklog)
worklog
- the worklogWorklogResult
that just contains the Worklog
to use. The editable check will be required.public static WorklogResult create(Worklog worklog, boolean isEditableCheckRequired)
worklog
- the worklogisEditableCheckRequired
- flag to set on the resultWorklogResult
that just contains the Worklog
to use and the flag for the editable check.public static WorklogNewEstimateResult createNewEstimate(WorklogResult worklogResult, Long newEstimate)
WorklogResult
received from the base validate
method and adding on the
newEstimate
.worklogResult
- the worklog result to copy; must not be null.newEstimate
- the new estimate in secondsWorklogResult
that contains the Worklog
and the new estimate. The editable check will be required.public static WorklogNewEstimateResult createNewEstimate(Worklog worklog, Long newEstimate)
WorklogResult
objects that also capture a newEstimate
to be set.worklog
- the worklognewEstimate
- the new estimate in secondsWorklogResult
that contains the Worklog
and the new estimate. The editable check will be required.public static WorklogNewEstimateResult createNewEstimate(Worklog worklog, Long newEstimate, boolean isEditableCheckRequired)
WorklogResult
objects that also capture a newEstimate
to be set.worklog
- the worklognewEstimate
- the new estimate in secondsisEditableCheckRequired
- flag to set on the resultWorklogResult
that contains the Worklog
, the new estimate and the flag for the editable check.public static WorklogAdjustmentAmountResult createAdjustmentAmount(WorklogResult worklogResult, Long adjustmentAmount)
WorklogResult
received from the base validate
method and adding on the
adjustmentAmount
.worklogResult
- the worklog result to copy; must not be null.adjustmentAmount
- the adjustment amount in secondsWorklogResult
that contains the Worklog
and the adjustment amount. The editable check will be required.public static WorklogAdjustmentAmountResult createAdjustmentAmount(Worklog worklog, Long adjustmentAmount)
WorklogResult
objects that also capture a adjustmentAmount
to be set.worklog
- the worklogadjustmentAmount
- the adjustment amount in secondsWorklogResult
that contains the Worklog
and the adjustment amount. The editable check will be required.public static WorklogAdjustmentAmountResult createAdjustmentAmount(Worklog worklog, Long adjustmentAmount, boolean isEditableCheckRequired)
WorklogResult
objects that also capture a adjustmentAmount
to be set.worklog
- the worklogadjustmentAmount
- the adjustment amount in secondsisEditableCheckRequired
- flag to set on the resultWorklogResult
that contains the Worklog
, the adjustment amount and the flag for the editable check.Copyright © 2002-2015 Atlassian. All Rights Reserved.