Class 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
    • Constructor Detail

      • AbstractJiraCommand

        public AbstractJiraCommand()
    • Method Detail

      • execute

        public Object execute()
                       throws Exception
        Specified by:
        execute in interface org.apache.karaf.shell.api.action.Action
        Throws:
        Exception
      • doExecute

        @Deprecated
        protected final Object doExecute()
                                  throws Exception
        Deprecated.
        Specified by:
        doExecute in class org.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
      • removeNewLines

        protected static String removeNewLines​(String input)