com.atlassian.jira.service
Class OfBizServiceConfigStore

java.lang.Object
  extended by com.atlassian.jira.service.OfBizServiceConfigStore
All Implemented Interfaces:
ServiceConfigStore

public class OfBizServiceConfigStore
extends Object
implements ServiceConfigStore

OfBiz implementation of the ServiceConfigStore.


Constructor Summary
OfBizServiceConfigStore(org.ofbiz.core.entity.DelegatorInterface genericDelegator, ComponentClassManager componentClassManager)
           
 
Method Summary
 JiraServiceContainer addServiceConfig(String serviceName, Class<? extends JiraService> serviceClass, long serviceDelay)
          Adds a new Service of the given class with the the given configuration.
 void editServiceConfig(JiraServiceContainer config, long delay, Map<String,String[]> params)
           
 Collection<JiraServiceContainer> getAllServiceConfigs()
           
 JiraServiceContainer getServiceConfigForId(Long id)
           
 JiraServiceContainer getServiceConfigForName(String name)
           
 void removeServiceConfig(JiraServiceContainer config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfBizServiceConfigStore

public OfBizServiceConfigStore(org.ofbiz.core.entity.DelegatorInterface genericDelegator,
                               ComponentClassManager componentClassManager)
Method Detail

addServiceConfig

public JiraServiceContainer addServiceConfig(String serviceName,
                                             Class<? extends JiraService> serviceClass,
                                             long serviceDelay)
                                      throws ServiceException,
                                             org.ofbiz.core.entity.GenericEntityException
Description copied from interface: ServiceConfigStore
Adds a new Service of the given class with the the given configuration.

Specified by:
addServiceConfig in interface ServiceConfigStore
Parameters:
serviceName - The service name.
serviceClass - The JiraService class that we wish to add as a service.
serviceDelay - the service delay.
Returns:
JiraServiceContainer for this service.
Throws:
ServiceException - If there is any errors trying to add this Service.
org.ofbiz.core.entity.GenericEntityException - A DB error.

editServiceConfig

public void editServiceConfig(JiraServiceContainer config,
                              long delay,
                              Map<String,String[]> params)
                       throws org.ofbiz.core.entity.GenericEntityException,
                              ServiceException
Specified by:
editServiceConfig in interface ServiceConfigStore
Throws:
org.ofbiz.core.entity.GenericEntityException
ServiceException

removeServiceConfig

public void removeServiceConfig(JiraServiceContainer config)
                         throws Exception
Specified by:
removeServiceConfig in interface ServiceConfigStore
Throws:
Exception

getServiceConfigForName

public JiraServiceContainer getServiceConfigForName(String name)
                                             throws org.ofbiz.core.entity.GenericEntityException,
                                                    ServiceException
Specified by:
getServiceConfigForName in interface ServiceConfigStore
Throws:
org.ofbiz.core.entity.GenericEntityException
ServiceException

getServiceConfigForId

public JiraServiceContainer getServiceConfigForId(Long id)
                                           throws Exception
Specified by:
getServiceConfigForId in interface ServiceConfigStore
Throws:
Exception

getAllServiceConfigs

public Collection<JiraServiceContainer> getAllServiceConfigs()
                                                      throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getAllServiceConfigs in interface ServiceConfigStore
Throws:
org.ofbiz.core.entity.GenericEntityException


Copyright © 2002-2013 Atlassian. All Rights Reserved.