com.atlassian.jira.issue.worklog
Interface WorklogManager

All Known Implementing Classes:
DefaultWorklogManager

public interface WorklogManager


Method Summary
 Worklog create(User user, Worklog worklog, Long newEstimate, Issue issue, boolean dispatchEvent)
          Create a worklog based on the passed in Worklog object.
 ProjectRole getProjectRole(Long projectRoleId)
          This is a convenience method to allow us to easily get a ProjectRole.
 List getWorklogsForUser(Issue issue, User user)
          Return a List of Worklogs that the user has the permission to see.
 

Method Detail

getWorklogsForUser

public List getWorklogsForUser(Issue issue,
                               User user)
Return a List of Worklogs that the user has the permission to see.

Parameters:
issue -
user -
Returns:
collection of Worklogs ordered via the IssueActionComparator.COMPARATOR

create

public Worklog create(User user,
                      Worklog worklog,
                      Long newEstimate,
                      Issue issue,
                      boolean dispatchEvent)
               throws JiraException,
                      PermissionException
Create a worklog based on the passed in Worklog object.

Throws:
JiraException
PermissionException

getProjectRole

public ProjectRole getProjectRole(Long projectRoleId)
This is a convenience method to allow us to easily get a ProjectRole. This is being used by the CommentImpl to get a ProjectRole

Parameters:
projectRoleId -
Returns:
will return a ProjectRole based on the passed in projectRoleId


Copyright © 2002-2007 Atlassian. All Rights Reserved.