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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String DEFAULT_ROW_FORMAT  
      java.lang.String host  
      protected static java.lang.String LINE  
      boolean noAuthentication  
      java.lang.String password  
      java.lang.String username  
      • Fields inherited from class org.apache.karaf.shell.console.OsgiCommandSupport

        bundleContext, usedReferences
      • Fields inherited from class org.apache.karaf.shell.console.AbstractAction

        log, session
    • 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 java.lang.Object doExecute()
      Deprecated.
      protected abstract void doExecute​(com.atlassian.jira.rest.client.api.JiraRestClient jiraRestClient)  
      java.lang.Object execute()  
      protected Config getConfig()  
      protected static java.lang.String removeNewLines​(java.lang.String input)  
      • Methods inherited from class org.apache.karaf.shell.console.OsgiCommandSupport

        execute, getAllServices, getAllServices, getBundleContext, getService, getService, setBundleContext, ungetServices
      • Methods inherited from class org.apache.karaf.shell.console.AbstractAction

        checkInterrupted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_ROW_FORMAT

        protected static final java.lang.String DEFAULT_ROW_FORMAT
        See Also:
        Constant Field Values
      • host

        public java.lang.String host
      • username

        public java.lang.String username
      • password

        public java.lang.String password
      • noAuthentication

        public boolean noAuthentication
    • Constructor Detail

      • AbstractJiraCommand

        public AbstractJiraCommand()
    • Method Detail

      • execute

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

        @Deprecated
        protected final java.lang.Object doExecute()
                                            throws java.lang.Exception
        Deprecated.
        Specified by:
        doExecute in class org.apache.karaf.shell.console.AbstractAction
        Throws:
        java.lang.Exception
      • getConfig

        protected Config getConfig()
      • doExecute

        protected abstract void doExecute​(com.atlassian.jira.rest.client.api.JiraRestClient jiraRestClient)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • removeNewLines

        protected static java.lang.String removeNewLines​(java.lang.String input)