public class ExportService extends AbstractService
Modifier and Type | Field and Description |
---|---|
static String |
DIR_NAME |
static String |
EXPORT_SUBDIRECTORY
The subdirectory of jira-home that exports go to when we use the default directory
|
static String |
OPT_DATE_FORMAT |
static String |
USE_DEFAULT_DIRECTORY |
name, SERVICE_EVENT
NAME_COMPARATOR
Constructor and Description |
---|
ExportService(JiraHome jiraHome) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method is called when the service is unloaded (usually when the web application or server
is being shut down).
|
ObjectConfiguration |
getObjectConfiguration()
Retrieves an object configuration object with properties that can be set
|
void |
init(com.opensymphony.module.propertyset.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.
|
getDefaultProperty, getDescription, getKey, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, isInternal, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static final String USE_DEFAULT_DIRECTORY
public static final String DIR_NAME
public static final String OPT_DATE_FORMAT
public static final String EXPORT_SUBDIRECTORY
public ExportService(JiraHome jiraHome)
public void init(com.opensymphony.module.propertyset.PropertySet props) throws ObjectConfigurationException
JiraService
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.
init
in interface JiraService
init
in class AbstractService
props
- initialisation parametersObjectConfigurationException
- in case of an error with initialisation parametersJiraService.init(PropertySet, long)
public void run()
AbstractService
run
in interface JiraService
run
in interface Runnable
run
in class AbstractService
JiraService.init(com.opensymphony.module.propertyset.PropertySet)
public void destroy()
AbstractService
You may wish to remove any connections that you have established, eg. database connections.
destroy
in interface JiraService
destroy
in class AbstractService
public boolean isUnique()
isUnique
in interface JiraService
isUnique
in class AbstractService
public ObjectConfiguration getObjectConfiguration() throws ObjectConfigurationException
ObjectConfigurable
ObjectConfigurationException
Copyright © 2002-2018 Atlassian. All Rights Reserved.