com.atlassian.jira.issue
Interface ActionManager

All Known Implementing Classes:
DefaultActionManager

public interface ActionManager

Manager for objects stored against issues (IssueActions, like Comments, work logs, changelogs etc.


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 particular user
 

Method Detail

getComments

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

Returns:
List of Comments.
Throws:
org.ofbiz.core.entity.GenericEntityException

getWorklog

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

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
Get all change groups as action objects.

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
Get all the workflow steps as action objects.

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
Gets a list of action types available for this issue

Throws:
org.ofbiz.core.entity.GenericEntityException
RepositoryException

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

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
Creates a GenericValue for the mime message in the database.

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
Retrieves all of the emails for this particular issue

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)
Retrieves all of the action objects out of the specified plugin module.

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


Copyright © 2002-2006 Atlassian. All Rights Reserved.