com.atlassian.jira.service
Class OfBizServiceConfigStore

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

public class OfBizServiceConfigStore
extends java.lang.Object
implements ServiceConfigStore

OfBiz implementation of the ServiceConfigStore.


Constructor Summary
OfBizServiceConfigStore(org.ofbiz.core.entity.GenericDelegator genericDelegator, ComponentClassManager componentClassManager)
           
 
Method Summary
 JiraServiceContainer addServiceConfig(java.lang.String serviceName, java.lang.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, java.util.Map<java.lang.String,java.lang.String[]> params)
           
 java.util.Collection<JiraServiceContainer> getAllServiceConfigs()
           
 JiraServiceContainer getServiceConfigForId(java.lang.Long id)
           
 JiraServiceContainer getServiceConfigForName(java.lang.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.GenericDelegator genericDelegator,
                               ComponentClassManager componentClassManager)
Method Detail

addServiceConfig

public JiraServiceContainer addServiceConfig(java.lang.String serviceName,
                                             java.lang.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,
                              java.util.Map<java.lang.String,java.lang.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 java.lang.Exception
Specified by:
removeServiceConfig in interface ServiceConfigStore
Throws:
java.lang.Exception

getServiceConfigForName

public JiraServiceContainer getServiceConfigForName(java.lang.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(java.lang.Long id)
                                           throws java.lang.Exception
Specified by:
getServiceConfigForId in interface ServiceConfigStore
Throws:
java.lang.Exception

getAllServiceConfigs

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


Copyright © 2002-2010 Atlassian. All Rights Reserved.