public class IsKeyDefinedInAnExistingProject extends Object implements com.atlassian.plugin.web.Condition
Constructor and Description |
---|
IsKeyDefinedInAnExistingProject(ProjectManager projectManager) |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,String> params) |
boolean |
shouldDisplay(Map<String,Object> context)
Determines whether the "key" context parameter is the project key of an existing project in JIRA.
|
public IsKeyDefinedInAnExistingProject(ProjectManager projectManager)
public void init(Map<String,String> params) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.web.Condition
com.atlassian.plugin.PluginParseException
public boolean shouldDisplay(Map<String,Object> context)
shouldDisplay
in interface com.atlassian.plugin.web.Condition
context
- The context where the "key" parameter will be looked up.true
, if the "key" parameter is the project key of an existing project. Otherwise,
false
.Copyright © 2002-2018 Atlassian. All Rights Reserved.