com.atlassian.jira.rest.v2.issue.worklog
Enum WorklogOperation

java.lang.Object
  extended by java.lang.Enum<WorklogOperation>
      extended by 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.


Enum Constant Summary
ADD
           
DELETE
           
EDIT
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADD

public static final WorklogOperation ADD

DELETE

public static final WorklogOperation DELETE

EDIT

public static final WorklogOperation EDIT
Method Detail

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.