com.atlassian.jira.rest.v2.issue.worklog
Enum WorklogOperation
java.lang.Object
java.lang.Enum<WorklogOperation>
com.atlassian.jira.rest.v2.issue.worklog.WorklogOperation
- All Implemented Interfaces:
- Serializable, Comparable<WorklogOperation>
public enum WorklogOperation
- extends Enum<WorklogOperation>
Performs/Provides operation specific logic for worklog rest operations.
Method Summary |
abstract WorklogInputParameters |
prepareData(JiraServiceContextImpl serviceContext,
Issue issue,
WorklogJsonBean request,
WorklogResource.WorklogAdjustmentRequest adjustment)
|
abstract javax.ws.rs.core.Response |
prepareSuccessfulResponse(WorklogJsonBean result)
|
abstract Worklog |
validateAndPerformAndAutoAdjustEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
|
abstract Worklog |
validateAndPerformAndLeaveEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
|
abstract Worklog |
validateAndPerformAndManualAdjustEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
|
abstract Worklog |
validateAndPerformAndSetNewEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
|
static WorklogOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WorklogOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ADD
public static final WorklogOperation ADD
DELETE
public static final WorklogOperation DELETE
EDIT
public static final WorklogOperation EDIT
values
public static WorklogOperation[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (WorklogOperation c : WorklogOperation.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WorklogOperation valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
prepareData
public abstract WorklogInputParameters prepareData(JiraServiceContextImpl serviceContext,
Issue issue,
WorklogJsonBean request,
WorklogResource.WorklogAdjustmentRequest adjustment)
validateAndPerformAndSetNewEstimate
public abstract Worklog validateAndPerformAndSetNewEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
validateAndPerformAndLeaveEstimate
public abstract Worklog validateAndPerformAndLeaveEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
validateAndPerformAndAutoAdjustEstimate
public abstract Worklog validateAndPerformAndAutoAdjustEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
validateAndPerformAndManualAdjustEstimate
public abstract Worklog validateAndPerformAndManualAdjustEstimate(JiraServiceContext serviceContext,
Issue issue,
WorklogInputParameters worklogInputParameters)
prepareSuccessfulResponse
public abstract javax.ws.rs.core.Response prepareSuccessfulResponse(WorklogJsonBean result)
Copyright © 2002-2012 Atlassian. All Rights Reserved.