com.atlassian.jira.issue.fields.rest.json.beans
Class WorklogJsonBean

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.json.beans.WorklogJsonBean

public class WorklogJsonBean
extends Object

Since:
v4.2

Field Summary
static WorklogJsonBean DOC_EXAMPLE
           
 
Constructor Summary
WorklogJsonBean()
           
 
Method Summary
static List<WorklogJsonBean> asBeans(List<Worklog> worklogs, JiraBaseUrls uriInfo, UserManager userManager, TimeTrackingConfiguration timeTrackingConfiguration)
           
static List<WorklogJsonBean> asRenderedBeans(List<Worklog> worklogs, JiraBaseUrls uriInfo, String rendererType, IssueRenderContext renderContext)
           
 UserJsonBean getAuthor()
           
 String getComment()
           
 Date getCreated()
           
 String getId()
           
static WorklogJsonBean getRenderedWorklog(Worklog log, JiraBaseUrls baseUrls, String rendererType, IssueRenderContext renderContext)
           
 URI getSelf()
           
 Date getStarted()
           
 String getTimeSpent()
           
 Long getTimeSpentSeconds()
           
 UserJsonBean getUpdateAuthor()
           
 Date getUpdated()
           
protected static UserJsonBean getUserBean(JiraBaseUrls uriInfo, String username, UserManager userManager)
          Returns a UserBean for the user with the given name.
 VisibilityJsonBean getVisibility()
           
static WorklogJsonBean getWorklog(Worklog log, JiraBaseUrls baseUrls, UserManager userManager, TimeTrackingConfiguration timeTrackingConfiguration)
           
 boolean isVisibilitySet()
           
 void setId(String id)
           
 void setVisibility(VisibilityJsonBean visibility)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOC_EXAMPLE

public static final WorklogJsonBean DOC_EXAMPLE
Constructor Detail

WorklogJsonBean

public WorklogJsonBean()
Method Detail

asBeans

public static List<WorklogJsonBean> asBeans(List<Worklog> worklogs,
                                            JiraBaseUrls uriInfo,
                                            UserManager userManager,
                                            TimeTrackingConfiguration timeTrackingConfiguration)

getWorklog

public static WorklogJsonBean getWorklog(Worklog log,
                                         JiraBaseUrls baseUrls,
                                         UserManager userManager,
                                         TimeTrackingConfiguration timeTrackingConfiguration)

asRenderedBeans

public static List<WorklogJsonBean> asRenderedBeans(List<Worklog> worklogs,
                                                    JiraBaseUrls uriInfo,
                                                    String rendererType,
                                                    IssueRenderContext renderContext)

getRenderedWorklog

public static WorklogJsonBean getRenderedWorklog(Worklog log,
                                                 JiraBaseUrls baseUrls,
                                                 String rendererType,
                                                 IssueRenderContext renderContext)

getUserBean

protected static UserJsonBean getUserBean(JiraBaseUrls uriInfo,
                                          String username,
                                          UserManager userManager)
Returns a UserBean for the user with the given name. If the user does not exist, the returned bean contains only the username and no more info.

Parameters:
uriInfo - a UriInfo
username - a String containing a user name
userManager - Manager for users
Returns:
a UserBean

getAuthor

public UserJsonBean getAuthor()

getUpdateAuthor

public UserJsonBean getUpdateAuthor()

getComment

public String getComment()

getCreated

public Date getCreated()

getUpdated

public Date getUpdated()

getStarted

public Date getStarted()

getTimeSpent

public String getTimeSpent()

getTimeSpentSeconds

public Long getTimeSpentSeconds()

getVisibility

public VisibilityJsonBean getVisibility()

setVisibility

public void setVisibility(VisibilityJsonBean visibility)

isVisibilitySet

public boolean isVisibilitySet()

getId

public String getId()

setId

public void setId(String id)

getSelf

public URI getSelf()


Copyright © 2002-2013 Atlassian. All Rights Reserved.