com.atlassian.jira.issue
Class IssueUtils
java.lang.Object
com.atlassian.jira.issue.IssueUtils
- public class IssueUtils
- extends java.lang.Object
Method Summary |
static void |
filterIssues(java.util.Collection issues,
IssueFilter filter)
Filters a list of issues based on the type of IssueFilter passed in |
static java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
|
static java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue,
org.ofbiz.core.entity.GenericValue project,
java.lang.String assignee)
|
static java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue,
java.lang.String assignee)
|
static java.lang.String |
processDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
java.lang.String[] components,
java.lang.String assignee)
Takes a project and component ids for an issue and tries to return the default assignee. |
static org.ofbiz.core.entity.GenericValue |
setPriority(org.ofbiz.core.entity.GenericValue issue,
com.opensymphony.user.User remoteUser,
java.lang.String priority)
|
static void |
validateMandatoryField(I18nHelper i18n,
java.util.Map parameters,
Field field,
OrderableField orderableField,
ErrorCollection errorCol)
|
static ErrorCollection |
validateMandatoryFields(I18nHelper i18n,
java.util.Map parameters,
java.util.List mandatoryLayoutItems,
boolean workStarted,
java.util.Map securityLevels)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AUTOMATIC_ASSIGNEE
public static final java.lang.String AUTOMATIC_ASSIGNEE
- See Also:
- Constant Field Values
SEPERATOR_ASSIGNEE
public static final java.lang.String SEPERATOR_ASSIGNEE
- See Also:
- Constant Field Values
log
protected static final org.apache.log4j.Category log
IssueUtils
public IssueUtils()
filterIssues
public static void filterIssues(java.util.Collection issues,
IssueFilter filter)
- Filters a list of issues based on the type of IssueFilter passed in
- Parameters:
issues
- The list of issues. Any issues to be filtered will be removed from this listfilter
- The implementation of IssueFilter to be used for filtering the issues
setPriority
public static org.ofbiz.core.entity.GenericValue setPriority(org.ofbiz.core.entity.GenericValue issue,
com.opensymphony.user.User remoteUser,
java.lang.String priority)
throws java.lang.Exception
- Throws:
java.lang.Exception
validateMandatoryFields
public static ErrorCollection validateMandatoryFields(I18nHelper i18n,
java.util.Map parameters,
java.util.List mandatoryLayoutItems,
boolean workStarted,
java.util.Map securityLevels)
validateMandatoryField
public static void validateMandatoryField(I18nHelper i18n,
java.util.Map parameters,
Field field,
OrderableField orderableField,
ErrorCollection errorCol)
processDefaultAssignee
public static java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue,
java.lang.String assignee)
throws NoDefaultAssigneeProfessionalException,
SeparatorSelectedException,
NoDefaultAssigneeEnterpriseException
- Throws:
NoDefaultAssigneeProfessionalException
SeparatorSelectedException
NoDefaultAssigneeEnterpriseException
processDefaultAssignee
public static java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
throws NoDefaultAssigneeEnterpriseException,
NoDefaultAssigneeProfessionalException
- Throws:
NoDefaultAssigneeEnterpriseException
NoDefaultAssigneeProfessionalException
processDefaultAssignee
public static java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue issue,
org.ofbiz.core.entity.GenericValue project,
java.lang.String assignee)
throws SeparatorSelectedException,
NoDefaultAssigneeProfessionalException,
NoDefaultAssigneeEnterpriseException
- Throws:
SeparatorSelectedException
NoDefaultAssigneeProfessionalException
NoDefaultAssigneeEnterpriseException
processDefaultAssignee
public static java.lang.String processDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
java.lang.String[] components,
java.lang.String assignee)
throws org.ofbiz.core.entity.GenericEntityException,
SeparatorSelectedException,
NoDefaultAssigneeProfessionalException,
NoDefaultAssigneeEnterpriseException
- Takes a project and component ids for an issue and tries to return the default assignee.
- Parameters:
project
- Project GenericValuecomponents
- List of Long ids of componentsassignee
- Assignee to process, if -1 we have something to do
- Returns:
- Default assignee username
- Throws:
org.ofbiz.core.entity.GenericEntityException
SeparatorSelectedException
NoDefaultAssigneeProfessionalException
NoDefaultAssigneeEnterpriseException
Copyright © 2002-2005 Atlassian. All Rights Reserved.