com.atlassian.jira.issue.worklog
Class DefaultWorklogManager
java.lang.Object
com.atlassian.jira.issue.worklog.DefaultWorklogManager
- All Implemented Interfaces:
- WorklogManager
- public class DefaultWorklogManager
- extends Object
- implements WorklogManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWorklogManager
public DefaultWorklogManager(IssueManager issueManager,
TextAnalyzer textAnalyzer,
ProjectRoleManager projectRoleManager,
IssueUpdater issueUpdater)
getWorklogsForUser
public List getWorklogsForUser(Issue issue,
User user)
- Description copied from interface:
WorklogManager
- Return a List of
Worklog
s that the user has the permission to see.
- Specified by:
getWorklogsForUser
in interface WorklogManager
- Parameters:
issue
- user
-
- Returns:
- collection of
Worklog
s 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.