com.atlassian.jira.issue.worklog
Class DefaultWorklogManager

java.lang.Object
  extended bycom.atlassian.jira.issue.worklog.DefaultWorklogManager
All Implemented Interfaces:
WorklogManager

public class DefaultWorklogManager
extends Object
implements WorklogManager


Constructor Summary
DefaultWorklogManager(IssueManager issueManager, TextAnalyzer textAnalyzer, ProjectRoleManager projectRoleManager, IssueUpdater issueUpdater)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWorklogManager

public DefaultWorklogManager(IssueManager issueManager,
                             TextAnalyzer textAnalyzer,
                             ProjectRoleManager projectRoleManager,
                             IssueUpdater issueUpdater)
Method Detail

getWorklogsForUser

public List getWorklogsForUser(Issue issue,
                               User user)
Description copied from interface: WorklogManager
Return a List of Worklogs that the user has the permission to see.

Specified by:
getWorklogsForUser in interface WorklogManager
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
Description copied from interface: WorklogManager
Create a worklog based on the passed in Worklog object.

Specified by:
create in interface WorklogManager
Throws:
JiraException
PermissionException

getProjectRole

public ProjectRole getProjectRole(Long projectRoleId)
Description copied from interface: WorklogManager
This is a convenience method to allow us to easily get a ProjectRole. This is being used by the CommentImpl to get a ProjectRole

Specified by:
getProjectRole in interface WorklogManager
Parameters:
projectRoleId -
Returns:
will return a ProjectRole based on the passed in projectRoleId


Copyright © 2002-2007 Atlassian. All Rights Reserved.