com.atlassian.jira.issue.managers
Class DefaultActionManager

java.lang.Object
  extended bycom.atlassian.jira.issue.managers.DefaultActionManager
All Implemented Interfaces:
ActionManager

public class DefaultActionManager
extends Object
implements ActionManager


Field Summary
(package private)  org.apache.log4j.Category log
           
 
Constructor Summary
DefaultActionManager()
           
DefaultActionManager(RepositoryManager repositoryManager, PermissionManager permissionManager, ProjectManager projectManager, com.atlassian.plugin.PluginManager pluginManager, AttachmentManager attachmentManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 Email createEmail(org.ofbiz.core.entity.GenericValue issue, javax.mail.Message mimeMessage)
          Creates a GenericValue for the mime message in the database.
 List getActions(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
          Gets a list of action types available for this issue
 List getChangeHistory(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
          Get all change groups as action objects.
 List getComments(org.ofbiz.core.entity.GenericValue issue, User user)
          Get the appropriate comments for a particular user.
 List getCommits(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
          Retrieves all of the commits for this issue from ALL of the repositories associated with the issue's project
 List getEmails(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
          Retrieves all of the emails for this particular issue
 List getPluginModuleActions(String moduleKey, org.ofbiz.core.entity.GenericValue issue, User remoteUser)
          Retrieves all of the action objects out of the specified plugin module.
 List getWorkflow(org.ofbiz.core.entity.GenericValue issue, User remoteUser)
          Get all the workflow steps as action objects.
 List getWorklog(org.ofbiz.core.entity.GenericValue issue, User user)
          Get the appropriate worklog for a paricular user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

org.apache.log4j.Category log
Constructor Detail

DefaultActionManager

public DefaultActionManager(RepositoryManager repositoryManager,
                            PermissionManager permissionManager,
                            ProjectManager projectManager,
                            com.atlassian.plugin.PluginManager pluginManager,
                            AttachmentManager attachmentManager,
                            JiraAuthenticationContext authenticationContext)

DefaultActionManager

public DefaultActionManager()
Method Detail

getComments

public List getComments(org.ofbiz.core.entity.GenericValue issue,
                        User user)
                 throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: ActionManager
Get the appropriate comments for a particular user.

Specified by:
getComments in interface ActionManager
Returns:
List of Comments.
Throws:
org.ofbiz.core.entity.GenericEntityException

getCommits

public List getCommits(org.ofbiz.core.entity.GenericValue issue,
                       User remoteUser)
                throws org.ofbiz.core.entity.GenericEntityException,
                       RepositoryException
Retrieves all of the commits for this issue from ALL of the repositories associated with the issue's project

Specified by:
getCommits in interface ActionManager
Parameters:
issue -
remoteUser -
Throws:
org.ofbiz.core.entity.GenericEntityException
RepositoryException

createEmail

public Email createEmail(org.ofbiz.core.entity.GenericValue issue,
                         javax.mail.Message mimeMessage)
                  throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: ActionManager
Creates a GenericValue for the mime message in the database.

Specified by:
createEmail in interface ActionManager
Parameters:
issue - Issue the Email is associated with
mimeMessage - contents of the email
Returns:
object representation of the email
Throws:
org.ofbiz.core.entity.GenericEntityException

getEmails

public List getEmails(org.ofbiz.core.entity.GenericValue issue,
                      User remoteUser)
               throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: ActionManager
Retrieves all of the emails for this particular issue

Specified by:
getEmails in interface ActionManager
Parameters:
issue - Emails for this Issue will be returned
remoteUser - Emails this user can see will be returned
Returns:
List of Email objects.
Throws:
org.ofbiz.core.entity.GenericEntityException

getPluginModuleActions

public List getPluginModuleActions(String moduleKey,
                                   org.ofbiz.core.entity.GenericValue issue,
                                   User remoteUser)
Description copied from interface: ActionManager
Retrieves all of the action objects out of the specified plugin module.

Specified by:
getPluginModuleActions in interface ActionManager
Parameters:
moduleKey - The complete plugin module key
issue - Relevant actions for this Issue will be returned
remoteUser - Actions this user can see will be returned
Returns:
A List of IssueActions

getWorklog

public List getWorklog(org.ofbiz.core.entity.GenericValue issue,
                       User user)
                throws org.ofbiz.core.entity.GenericEntityException
Get the appropriate worklog for a paricular user

Specified by:
getWorklog in interface ActionManager
Returns:
List of Worklogs.
Throws:
org.ofbiz.core.entity.GenericEntityException

getChangeHistory

public List getChangeHistory(org.ofbiz.core.entity.GenericValue issue,
                             User remoteUser)
                      throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: ActionManager
Get all change groups as action objects.

Specified by:
getChangeHistory in interface ActionManager
Returns:
List of ChangeHistorys.
Throws:
org.ofbiz.core.entity.GenericEntityException

getWorkflow

public List getWorkflow(org.ofbiz.core.entity.GenericValue issue,
                        User remoteUser)
                 throws org.ofbiz.core.entity.GenericEntityException
Description copied from interface: ActionManager
Get all the workflow steps as action objects.

Specified by:
getWorkflow in interface ActionManager
Returns:
List of WorkflowSteps.
Throws:
org.ofbiz.core.entity.GenericEntityException

getActions

public List getActions(org.ofbiz.core.entity.GenericValue issue,
                       User remoteUser)
                throws org.ofbiz.core.entity.GenericEntityException,
                       RepositoryException
Description copied from interface: ActionManager
Gets a list of action types available for this issue

Specified by:
getActions in interface ActionManager
Throws:
org.ofbiz.core.entity.GenericEntityException
RepositoryException


Copyright © 2002-2006 Atlassian. All Rights Reserved.