Class AbstractJiraCommand
- java.lang.Object
-
- org.apache.karaf.shell.console.AbstractAction
-
- org.apache.karaf.shell.console.OsgiCommandSupport
-
- org.opennms.netmgt.ticketer.jira.commands.AbstractJiraCommand
-
- All Implemented Interfaces:
org.apache.felix.gogo.commands.Action
,org.apache.karaf.shell.api.action.Action
,org.apache.karaf.shell.commands.Action
,org.apache.karaf.shell.console.BundleContextAware
- Direct Known Subclasses:
ListComponentsCommand
,ListFieldsCommand
,ListIssueTypesCommand
,ListPrioritiesCommand
,ListProjectsCommand
,ListVersionsCommand
public abstract class AbstractJiraCommand extends org.apache.karaf.shell.console.OsgiCommandSupport implements org.apache.karaf.shell.api.action.Action
This command implements the Apache Karaf 3 and Apache Karaf 4 shell APIs. Once the Karaf 4 commands work, the deprecated Karaf 3 annotations should be removed:
Command
OsgiCommandSupport
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_ROW_FORMAT
String
host
protected static String
LINE
boolean
noAuthentication
String
password
String
username
-
Constructor Summary
Constructors Constructor Description AbstractJiraCommand()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.atlassian.jira.rest.client.api.JiraRestClient
createJiraClient()
protected Object
doExecute()
Deprecated.protected abstract void
doExecute(com.atlassian.jira.rest.client.api.JiraRestClient jiraRestClient)
Object
execute()
protected Config
getConfig()
protected static String
removeNewLines(String input)
-
-
-
Field Detail
-
LINE
protected static final String LINE
- See Also:
- Constant Field Values
-
DEFAULT_ROW_FORMAT
protected static final String DEFAULT_ROW_FORMAT
- See Also:
- Constant Field Values
-
host
public String host
-
username
public String username
-
password
public String password
-
noAuthentication
public boolean noAuthentication
-
-
Method Detail
-
createJiraClient
protected com.atlassian.jira.rest.client.api.JiraRestClient createJiraClient() throws PluginException
- Throws:
PluginException
-
execute
public Object execute() throws Exception
- Specified by:
execute
in interfaceorg.apache.karaf.shell.api.action.Action
- Throws:
Exception
-
doExecute
@Deprecated protected final Object doExecute() throws Exception
Deprecated.- Specified by:
doExecute
in classorg.apache.karaf.shell.console.AbstractAction
- Throws:
Exception
-
getConfig
protected Config getConfig()
-
doExecute
protected abstract void doExecute(com.atlassian.jira.rest.client.api.JiraRestClient jiraRestClient) throws Exception
- Throws:
Exception
-
-