Class FileService
java.lang.Object
com.atlassian.jira.service.AbstractService
com.atlassian.jira.service.services.file.AbstractMessageHandlingService
com.atlassian.jira.service.services.file.FileService
- All Implemented Interfaces:
 ObjectConfigurable,JiraService,Runnable
- 
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.jira.service.services.file.AbstractMessageHandlingService
AbstractMessageHandlingService.HandlerDisablementListener - 
Field Summary
FieldsFields inherited from class com.atlassian.jira.service.services.file.AbstractMessageHandlingService
KEY_HANDLER, KEY_HANDLER_PARAMS, MAX_READ_MESSAGES_DRY_RUNFields inherited from class com.atlassian.jira.service.AbstractService
name, SERVICE_EVENTFields inherited from interface com.atlassian.jira.service.JiraService
NAME_COMPARATOR - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddHandlerInfo(String msg) getFilesOnly(File directory) protected org.apache.log4j.LoggerRetrieves an object configuration object with properties that can be setvoidinit(com.opensymphony.module.propertyset.PropertySet props) Initialise the service.protected voidrunImpl(MessageHandlerContext context) Methods inherited from class com.atlassian.jira.service.services.file.AbstractMessageHandlingService
asString, destroy, getHandler, run, setContextMethods inherited from class com.atlassian.jira.service.AbstractService
getDefaultProperty, getDescription, getKey, getLongProperty, getName, getObjectConfiguration, getProperties, getProperty, getTextProperty, hasProperty, isInternal, isUnique, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.service.JiraService
init 
- 
Field Details
- 
MAIL_DIR
 - 
KEY_SUBDIRECTORY
- See Also:
 
 
 - 
 - 
Constructor Details
- 
FileService
public FileService() 
 - 
 - 
Method Details
- 
init
public void init(com.opensymphony.module.propertyset.PropertySet props) throws ObjectConfigurationException Description copied from interface:JiraServiceInitialise 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.
- Specified by:
 initin interfaceJiraService- Overrides:
 initin classAbstractMessageHandlingService- Parameters:
 props- initialisation parameters- Throws:
 ObjectConfigurationException- in case of an error with initialisation parameters- See Also:
 
 - 
getFilesOnly
 - 
runImpl
- Specified by:
 runImplin classAbstractMessageHandlingService
 - 
getObjectConfiguration
Description copied from interface:ObjectConfigurableRetrieves an object configuration object with properties that can be set- Returns:
 - ObjectConfiguration object
 - Throws:
 ObjectConfigurationException
 - 
getLogger
protected org.apache.log4j.Logger getLogger()- Specified by:
 getLoggerin classAbstractMessageHandlingService
 - 
addHandlerInfo
- Specified by:
 addHandlerInfoin classAbstractMessageHandlingService
 
 -