com.atlassian.jira.plugin.jql.function
Class AllReleasedVersionsFunction

java.lang.Object
  extended by com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
      extended by com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
          extended by com.atlassian.jira.plugin.jql.function.AllReleasedVersionsFunction
All Implemented Interfaces:
ClauseSanitisingJqlFunction, JqlFunction

public class AllReleasedVersionsFunction
extends AbstractVersionsFunction

Function that produces released versions for any specified projects (or all released versions if no project is specified). The versions returned will include both archived and unarchived versions.

Projects are resolved by name first, then project key, then id. Only Versions from Projects which the current user can browse will be returned.

Since:
v4.0

Field Summary
static java.lang.String FUNCTION_RELEASED_VERSIONS
           
 
Fields inherited from class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
projectIndexInfoResolver
 
Constructor Summary
AllReleasedVersionsFunction(VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)
           
 
Method Summary
protected  java.util.Collection<Version> getAllVersions()
           
protected  java.util.Collection<Version> getVersionsForProject(java.lang.Long projectId)
           
 
Methods inherited from class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
createIndexInfoResolver, getDataType, getMinimumNumberOfExpectedArguments, getValues, sanitiseOperand, validate
 
Methods inherited from class com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
getFunctionName, getI18n, getModuleDescriptor, init, isList, validateNumberOfArgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FUNCTION_RELEASED_VERSIONS

public static final java.lang.String FUNCTION_RELEASED_VERSIONS
See Also:
Constant Field Values
Constructor Detail

AllReleasedVersionsFunction

public AllReleasedVersionsFunction(VersionManager versionManager,
                                   ProjectResolver projectResolver,
                                   PermissionManager permissionManager)
Method Detail

getAllVersions

protected java.util.Collection<Version> getAllVersions()
Specified by:
getAllVersions in class AbstractVersionsFunction
Returns:
all the versions relevant to this function.

getVersionsForProject

protected java.util.Collection<Version> getVersionsForProject(java.lang.Long projectId)
Specified by:
getVersionsForProject in class AbstractVersionsFunction
Parameters:
projectId - the id of the Project which the versions belong to
Returns:
all the versions relevant to this function and the specified project


Copyright © 2002-2010 Atlassian. All Rights Reserved.