|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.issue.worklog.WorklogResultFactory
public class WorklogResultFactory
A static factory class for instantiating WorklogResult
objects.
Constructor Summary | |
---|---|
WorklogResultFactory()
|
Method Summary | |
---|---|
static WorklogResult |
create(Worklog worklog)
|
static WorklogResult |
create(Worklog worklog,
boolean isEditableCheckRequired)
|
static WorklogAdjustmentAmountResult |
createAdjustmentAmount(Worklog worklog,
java.lang.Long adjustmentAmount)
Used for creating WorklogResult objects that also capture a adjustmentAmount to be set. |
static WorklogAdjustmentAmountResult |
createAdjustmentAmount(Worklog worklog,
java.lang.Long adjustmentAmount,
boolean isEditableCheckRequired)
Used for creating WorklogResult objects that also capture a adjustmentAmount to be set. |
static WorklogAdjustmentAmountResult |
createAdjustmentAmount(WorklogResult worklogResult,
java.lang.Long adjustmentAmount)
Used for copying the WorklogResult received from the base validate method and adding on the
adjustmentAmount . |
static WorklogNewEstimateResult |
createNewEstimate(Worklog worklog,
java.lang.Long newEstimate)
Used for creating WorklogResult objects that also capture a newEstimate to be set. |
static WorklogNewEstimateResult |
createNewEstimate(Worklog worklog,
java.lang.Long newEstimate,
boolean isEditableCheckRequired)
Used for creating WorklogResult objects that also capture a newEstimate to be set. |
static WorklogNewEstimateResult |
createNewEstimate(WorklogResult worklogResult,
java.lang.Long newEstimate)
Used for copying the WorklogResult received from the base validate method and adding on the
newEstimate . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorklogResultFactory()
Method Detail |
---|
public static WorklogResult create(Worklog worklog)
worklog
- the worklog
WorklogResult
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 result
WorklogResult
that just contains the Worklog
to use and the flag for the editable check.public static WorklogNewEstimateResult createNewEstimate(WorklogResult worklogResult, java.lang.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 seconds
WorklogResult
that contains the Worklog
and the new estimate. The editable check will be required.public static WorklogNewEstimateResult createNewEstimate(Worklog worklog, java.lang.Long newEstimate)
WorklogResult
objects that also capture a newEstimate
to be set.
worklog
- the worklognewEstimate
- the new estimate in seconds
WorklogResult
that contains the Worklog
and the new estimate. The editable check will be required.public static WorklogNewEstimateResult createNewEstimate(Worklog worklog, java.lang.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 result
WorklogResult
that contains the Worklog
, the new estimate and the flag for the editable check.public static WorklogAdjustmentAmountResult createAdjustmentAmount(WorklogResult worklogResult, java.lang.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 seconds
WorklogResult
that contains the Worklog
and the adjustment amount. The editable check will be required.public static WorklogAdjustmentAmountResult createAdjustmentAmount(Worklog worklog, java.lang.Long adjustmentAmount)
WorklogResult
objects that also capture a adjustmentAmount
to be set.
worklog
- the worklogadjustmentAmount
- the adjustment amount in seconds
WorklogResult
that contains the Worklog
and the adjustment amount. The editable check will be required.public static WorklogAdjustmentAmountResult createAdjustmentAmount(Worklog worklog, java.lang.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 result
WorklogResult
that contains the Worklog
, the adjustment amount and the flag for the editable check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |