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 java.lang.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)
           
 
Method Summary
 Email createEmail(org.ofbiz.core.entity.GenericValue issue, javax.mail.Message mimeMessage)
          Creates a GenericValue for the mime message in the database.
 java.util.List getActions(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
          Get all actions for a particular issue
 java.util.List getChangeHistory(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
          Get all change groups as action objects
 java.util.List getComments(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User user)
          Get the appropriate comments for a particular user
 java.util.List getCommits(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
          Retrieves all of the commits for this issue from ALL of the repositories associated with the issue's project
 java.util.List getEmails(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
          Retrieves all of the emails for this particular issue
 java.util.List getPluginModuleActions(java.lang.String moduleKey, org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
          Retrieves all of the action objects out of the specified plugin module.
 java.util.List getWorkflow(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User remoteUser)
          Get all the workflow steps as action objects
 java.util.List getWorklog(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.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)

DefaultActionManager

public DefaultActionManager()
Method Detail

getComments

public java.util.List getComments(org.ofbiz.core.entity.GenericValue issue,
                                  com.opensymphony.user.User user)
                           throws org.ofbiz.core.entity.GenericEntityException
Get the appropriate comments for a particular user

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

getCommits

public java.util.List getCommits(org.ofbiz.core.entity.GenericValue issue,
                                 com.opensymphony.user.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 -
Returns:
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 java.util.List getEmails(org.ofbiz.core.entity.GenericValue issue,
                                com.opensymphony.user.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 java.util.List getPluginModuleActions(java.lang.String moduleKey,
                                             org.ofbiz.core.entity.GenericValue issue,
                                             com.opensymphony.user.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:

getWorklog

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

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

getChangeHistory

public java.util.List getChangeHistory(org.ofbiz.core.entity.GenericValue issue,
                                       com.opensymphony.user.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
Throws:
org.ofbiz.core.entity.GenericEntityException

getWorkflow

public java.util.List getWorkflow(org.ofbiz.core.entity.GenericValue issue,
                                  com.opensymphony.user.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
Throws:
org.ofbiz.core.entity.GenericEntityException

getActions

public java.util.List getActions(org.ofbiz.core.entity.GenericValue issue,
                                 com.opensymphony.user.User remoteUser)
                          throws org.ofbiz.core.entity.GenericEntityException,
                                 RepositoryException
Description copied from interface: ActionManager
Get all actions for a particular issue

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


Copyright © 2002-2005 Atlassian. All Rights Reserved.