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 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_RELEASED_VERSIONS
           
 
Fields inherited from class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
permissionManager, projectIndexInfoResolver
 
Constructor Summary
AllReleasedVersionsFunction(VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)
           
 
Method Summary
protected  Collection<Version> getAllVersions(com.atlassian.crowd.embedded.api.User user)
           
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_RELEASED_VERSIONS

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

AllReleasedVersionsFunction

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

getAllVersions

protected Collection<Version> getAllVersions(com.atlassian.crowd.embedded.api.User user)
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-2015 Atlassian. All Rights Reserved.