com.atlassian.jira.web.bean
Class ConvertIssueBean

java.lang.Object
  extended by com.atlassian.jira.web.bean.ConvertIssueBean
All Implemented Interfaces:
OperationContext, Serializable
Direct Known Subclasses:
ConvertIssueToSubTaskBean

public class ConvertIssueBean
extends Object
implements OperationContext, Serializable

See Also:
Serialized Form

Field Summary
protected  int currentStep
           
protected  Map<String,Object> fieldValuesHolder
           
protected  String issueId
           
protected  String issueType
           
protected  String sessionKey
           
protected  String targetStatusId
           
protected  String version
           
 
Constructor Summary
ConvertIssueBean()
           
 
Method Summary
 void clearBean()
          Clears everything in the bean except id.
 void clearSession(javax.servlet.http.HttpSession session)
          Removes itself from the session
 String extraFieldsToString()
           
 void generateNextVersion()
           
static ConvertIssueBean getBean(javax.servlet.http.HttpSession session, String issueId)
          Retrieves itself from the session.
static ConvertIssueBean getBeanFromSession(Class beanClass, String sessionKey, javax.servlet.http.HttpSession session, String issueId)
           
 int getCurrentStep()
           
 Map<String,Object> getFieldValuesHolder()
          Returns a custom values holder
 String getIssueId()
          Returns issue ID
 IssueOperation getIssueOperation()
          Returns the issue operation of this bean
 String getIssueType()
          Returns issue type
 String getSessionKey()
           
 String getTargetStatusId()
          Returns target status id
 String getVersion()
           
 void setCurrentStep(int step)
           
 void setIssueId(String issueId)
          Sets the issue ID
 void setIssueType(String issueType)
          Sets issue type
 void setSessionKey(String sessionKey)
           
 void setTargetStatusId(String targetStatusId)
          Sets target status id
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

issueId

protected String issueId

fieldValuesHolder

protected Map<String,Object> fieldValuesHolder

issueType

protected String issueType

targetStatusId

protected String targetStatusId

version

protected String version

sessionKey

protected String sessionKey

currentStep

protected int currentStep
Constructor Detail

ConvertIssueBean

public ConvertIssueBean()
Method Detail

getBean

public static ConvertIssueBean getBean(javax.servlet.http.HttpSession session,
                                       String issueId)
Retrieves itself from the session. If not found in the session, a new instance is created and stored in the session.

Parameters:
session - session
issueId - issue id
Returns:
bean

getBeanFromSession

public static ConvertIssueBean getBeanFromSession(Class beanClass,
                                                  String sessionKey,
                                                  javax.servlet.http.HttpSession session,
                                                  String issueId)

clearBean

public void clearBean()
Clears everything in the bean except id.


clearSession

public void clearSession(javax.servlet.http.HttpSession session)
Removes itself from the session

Parameters:
session - session

toString

public String toString()
Overrides:
toString in class Object

extraFieldsToString

public String extraFieldsToString()

getFieldValuesHolder

public Map<String,Object> getFieldValuesHolder()
Returns a custom values holder

Specified by:
getFieldValuesHolder in interface OperationContext
Returns:
a custom values holder

getIssueOperation

public IssueOperation getIssueOperation()
Returns the issue operation of this bean

Specified by:
getIssueOperation in interface OperationContext
Returns:
the issue operation of this bean

getIssueId

public String getIssueId()
Returns issue ID

Returns:
issue ID

setIssueId

public void setIssueId(String issueId)
Sets the issue ID

Parameters:
issueId - issue ID

getIssueType

public String getIssueType()
Returns issue type

Returns:
issue type

setIssueType

public void setIssueType(String issueType)
Sets issue type

Parameters:
issueType - issue type

getTargetStatusId

public String getTargetStatusId()
Returns target status id

Returns:
target status id

setTargetStatusId

public void setTargetStatusId(String targetStatusId)
Sets target status id

Parameters:
targetStatusId - target status id

getVersion

public String getVersion()

generateNextVersion

public void generateNextVersion()

setCurrentStep

public void setCurrentStep(int step)

getCurrentStep

public int getCurrentStep()

getSessionKey

public String getSessionKey()

setSessionKey

public void setSessionKey(String sessionKey)


Copyright © 2002-2014 Atlassian. All Rights Reserved.