com.atlassian.jira.plugin.contentlinks.conditions
Class IsKeyDefinedInAnExistingProject
java.lang.Object
com.atlassian.jira.plugin.contentlinks.conditions.IsKeyDefinedInAnExistingProject
- All Implemented Interfaces:
- com.atlassian.plugin.web.baseconditions.BaseCondition, com.atlassian.plugin.web.Condition
public class IsKeyDefinedInAnExistingProject
- extends Object
- implements com.atlassian.plugin.web.Condition
Checks whether the "key" context parameter is the project key of an existing project in JIRA.
- Since:
- v5.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsKeyDefinedInAnExistingProject
public IsKeyDefinedInAnExistingProject(ProjectManager projectManager)
init
public void init(Map<String,String> params)
throws com.atlassian.plugin.PluginParseException
- Specified by:
init
in interface com.atlassian.plugin.web.Condition
- Throws:
com.atlassian.plugin.PluginParseException
shouldDisplay
public boolean shouldDisplay(Map<String,Object> context)
- Determines whether the "key" context parameter is the project key of an existing project in JIRA.
- Specified by:
shouldDisplay
in interface com.atlassian.plugin.web.Condition
- Parameters:
context
- The context where the "key" parameter will be looked up.
- Returns:
true
, if the "key" parameter is the project key of an existing project. Otherwise,
false
.
Copyright © 2002-2014 Atlassian. All Rights Reserved.