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

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.AllUnreleasedVersionsFunction
All Implemented Interfaces:
ClauseSanitisingJqlFunction, JqlFunction

public class AllUnreleasedVersionsFunction
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 project key first, then name, then id. Only Versions from Projects which the current user can browse will be returned.

Since:
v4.0

Field Summary
static String FUNCTION_UNRELEASED_VERSIONS
           
 
Fields inherited from class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
projectIndexInfoResolver
 
Constructor Summary
AllUnreleasedVersionsFunction(VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)
           
 
Method Summary
protected  Collection<Version> getAllVersions()
           
protected  Collection<Version> getVersionsForProject(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_UNRELEASED_VERSIONS

public static final String FUNCTION_UNRELEASED_VERSIONS
See Also:
Constant Field Values
Constructor Detail

AllUnreleasedVersionsFunction

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

getAllVersions

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

getVersionsForProject

protected Collection<Version> getVersionsForProject(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-2012 Atlassian. All Rights Reserved.