public class

ExportService

extends AbstractService
java.lang.Object
   ↳ com.atlassian.jira.service.AbstractService
     ↳ com.atlassian.jira.service.services.export.ExportService

Summary

Constants
String DIR_NAME
String EXPORT_SUBDIRECTORY The subdirectory of jira-home that exports go to when we use the default directory
String OPT_DATE_FORMAT
String USE_DEFAULT_DIRECTORY
[Expand]
Inherited Constants
From class com.atlassian.jira.service.AbstractService
[Expand]
Inherited Fields
From class com.atlassian.jira.service.AbstractService
From interface com.atlassian.jira.service.JiraService
Public Constructors
ExportService(JiraHome jiraHome)
Public Methods
void destroy()
This method is called when the service is unloaded (usually when the web application or server is being shut down).
ObjectConfiguration getObjectConfiguration()
void init(PropertySet props)
Initialise the service.
boolean isUnique()
Can have multiple export services, all running at different times
void run()
This method must be implemented in a subclass, and performs the functionality that the service performs.
[Expand]
Inherited Methods
From class com.atlassian.jira.service.AbstractService
From class java.lang.Object
From interface com.atlassian.configurable.ObjectConfigurable
From interface com.atlassian.jira.service.JiraService
From interface java.lang.Runnable

Constants

public static final String DIR_NAME

Constant Value: "DIR_NAME"

public static final String EXPORT_SUBDIRECTORY

The subdirectory of jira-home that exports go to when we use the default directory

Constant Value: "export"

public static final String OPT_DATE_FORMAT

Constant Value: "OPT_DATE_FORMAT"

public static final String USE_DEFAULT_DIRECTORY

Constant Value: "USE_DEFAULT_DIRECTORY"

Public Constructors

public ExportService (JiraHome jiraHome)

Public Methods

public void destroy ()

This method is called when the service is unloaded (usually when the web application or server is being shut down).

You may wish to remove any connections that you have established, eg. database connections.

public ObjectConfiguration getObjectConfiguration ()

public void init (PropertySet props)

Initialise the service. This method is guaranteed to be called before the first call to run().

As the parameters are gained from the user's interaction with the website, it is not guaranteed to be called with the correct, or indeed with any parameters.

init() may be called multiple times during the services lifetime.

Parameters
props initialisation parameters

public boolean isUnique ()

Can have multiple export services, all running at different times

Returns
  • false

public void run ()

This method must be implemented in a subclass, and performs the functionality that the service performs. This method is called after the duration specified through the administration web interface.