Class DefaultForeignSourceService
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.DefaultForeignSourceService
-
- All Implemented Interfaces:
ForeignSourceService
,org.springframework.beans.factory.InitializingBean
public class DefaultForeignSourceService extends Object implements ForeignSourceService, org.springframework.beans.factory.InitializingBean
DefaultForeignSourceService class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Constructor Summary
Constructors Constructor Description DefaultForeignSourceService()
-
Method Summary
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setDeployedForeignSourceRepository
public void setDeployedForeignSourceRepository(ForeignSourceRepository repo)
setDeployedForeignSourceRepository
- Specified by:
setDeployedForeignSourceRepository
in interfaceForeignSourceService
- Parameters:
repo
- aForeignSourceRepository
object.
-
setPendingForeignSourceRepository
public void setPendingForeignSourceRepository(ForeignSourceRepository repo)
setPendingForeignSourceRepository
- Specified by:
setPendingForeignSourceRepository
in interfaceForeignSourceService
- Parameters:
repo
- aForeignSourceRepository
object.
-
getAllForeignSources
public Set<ForeignSource> getAllForeignSources()
getAllForeignSources
- Specified by:
getAllForeignSources
in interfaceForeignSourceService
- Returns:
- a
Set
object.
-
getForeignSource
public ForeignSource getForeignSource(String name)
getForeignSource
- Specified by:
getForeignSource
in interfaceForeignSourceService
- Parameters:
name
- aString
object.- Returns:
- a
ForeignSource
object.
-
saveForeignSource
public ForeignSource saveForeignSource(String name, ForeignSource fs)
saveForeignSource
- Specified by:
saveForeignSource
in interfaceForeignSourceService
- Parameters:
name
- aString
object.fs
- aForeignSource
object.- Returns:
- a
ForeignSource
object.
-
deleteForeignSource
public void deleteForeignSource(String name)
deleteForeignSource
- Specified by:
deleteForeignSource
in interfaceForeignSourceService
- Parameters:
name
- aString
object.
-
cloneForeignSource
public ForeignSource cloneForeignSource(String name, String target)
cloneForeignSource
- Specified by:
cloneForeignSource
in interfaceForeignSourceService
- Parameters:
name
- aString
object.target
- aString
object.- Returns:
- a
ForeignSource
object.
-
addParameter
public ForeignSource addParameter(String foreignSourceName, String pathToAdd)
addParameter
- Specified by:
addParameter
in interfaceForeignSourceService
- Parameters:
foreignSourceName
- aString
object.pathToAdd
- aString
object.- Returns:
- a
ForeignSource
object.
-
deletePath
public ForeignSource deletePath(String foreignSourceName, String pathToDelete)
deletePath
- Specified by:
deletePath
in interfaceForeignSourceService
- Parameters:
foreignSourceName
- aString
object.pathToDelete
- aString
object.- Returns:
- a
ForeignSource
object.
-
addDetectorToForeignSource
public ForeignSource addDetectorToForeignSource(String foreignSource, String name)
addDetectorToForeignSource
- Specified by:
addDetectorToForeignSource
in interfaceForeignSourceService
- Parameters:
foreignSource
- aString
object.name
- aString
object.- Returns:
- a
ForeignSource
object.
-
deleteDetector
public ForeignSource deleteDetector(String foreignSource, String name)
deleteDetector
- Specified by:
deleteDetector
in interfaceForeignSourceService
- Parameters:
foreignSource
- aString
object.name
- aString
object.- Returns:
- a
ForeignSource
object.
-
addPolicyToForeignSource
public ForeignSource addPolicyToForeignSource(String foreignSource, String name)
addPolicyToForeignSource
- Specified by:
addPolicyToForeignSource
in interfaceForeignSourceService
- Parameters:
foreignSource
- aString
object.name
- aString
object.- Returns:
- a
ForeignSource
object.
-
deletePolicy
public ForeignSource deletePolicy(String foreignSource, String name)
deletePolicy
- Specified by:
deletePolicy
in interfaceForeignSourceService
- Parameters:
foreignSource
- aString
object.name
- aString
object.- Returns:
- a
ForeignSource
object.
-
getDetectorTypes
public Map<String,String> getDetectorTypes()
getDetectorTypes
- Specified by:
getDetectorTypes
in interfaceForeignSourceService
- Returns:
- a
Map
object.
-
getPolicyTypes
public Map<String,String> getPolicyTypes()
getPolicyTypes
- Specified by:
getPolicyTypes
in interfaceForeignSourceService
- Returns:
- a
Map
object.
-
getWrappers
public Map<String,PluginWrapper> getWrappers()
getWrappers
- Specified by:
getWrappers
in interfaceForeignSourceService
- Returns:
- a
Map
object.
-
-