Package org.opennms.web.svclayer.support
Class DefaultAdminApplicationService
- java.lang.Object
-
- org.opennms.web.svclayer.support.DefaultAdminApplicationService
-
- All Implemented Interfaces:
AdminApplicationService
public class DefaultAdminApplicationService extends Object implements AdminApplicationService
DefaultAdminApplicationService class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultAdminApplicationService.ApplicationAndMemberServices
static class
DefaultAdminApplicationService.EditModel
static class
DefaultAdminApplicationService.ServiceEditModel
-
Constructor Summary
Constructors Constructor Description DefaultAdminApplicationService()
-
Method Summary
-
-
-
Method Detail
-
getApplication
public DefaultAdminApplicationService.ApplicationAndMemberServices getApplication(String applicationIdString)
getApplication
- Specified by:
getApplication
in interfaceAdminApplicationService
- Parameters:
applicationIdString
- aString
object.- Returns:
- a
DefaultAdminApplicationService.ApplicationAndMemberServices
object.
-
findAllMonitoredServices
public List<OnmsMonitoredService> findAllMonitoredServices()
findAllMonitoredServices
- Specified by:
findAllMonitoredServices
in interfaceAdminApplicationService
- Returns:
- a
List
object.
-
findAllMonitoringLocations
public List<OnmsMonitoringLocation> findAllMonitoringLocations()
- Specified by:
findAllMonitoringLocations
in interfaceAdminApplicationService
-
findApplicationAndAllMonitoredServices
public DefaultAdminApplicationService.EditModel findApplicationAndAllMonitoredServices(String applicationIdString)
findApplicationAndAllMonitoredServices
- Specified by:
findApplicationAndAllMonitoredServices
in interfaceAdminApplicationService
- Parameters:
applicationIdString
- aString
object.- Returns:
- a
DefaultAdminApplicationService.EditModel
object.
-
getApplicationDao
public ApplicationDao getApplicationDao()
getApplicationDao
- Returns:
- a
ApplicationDao
object.
-
setApplicationDao
public void setApplicationDao(ApplicationDao dao)
setApplicationDao
- Parameters:
dao
- aApplicationDao
object.
-
getMonitoredServiceDao
public MonitoredServiceDao getMonitoredServiceDao()
getMonitoredServiceDao
- Returns:
- a
MonitoredServiceDao
object.
-
setMonitoredServiceDao
public void setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
setMonitoredServiceDao
- Parameters:
monitoredServiceDao
- aMonitoredServiceDao
object.
-
setMonitoringLocationDao
public void setMonitoringLocationDao(MonitoringLocationDao monitoringLocationDao)
-
getEventProxy
public EventProxy getEventProxy()
-
setEventProxy
public void setEventProxy(EventProxy eventProxy)
-
performEditServices
public void performEditServices(String applicationIdString, String editAction, String[] toAdd, String[] toDelete)
performEdit
- Specified by:
performEditServices
in interfaceAdminApplicationService
- Parameters:
applicationIdString
- aString
object.editAction
- aString
object.toAdd
- an array ofString
objects.toDelete
- an array ofString
objects.
-
performEditLocations
public void performEditLocations(String applicationIdString, String editAction, String[] locationAdds, String[] locationDeletes)
- Specified by:
performEditLocations
in interfaceAdminApplicationService
-
addNewApplication
public OnmsApplication addNewApplication(String name)
addNewApplication
- Specified by:
addNewApplication
in interfaceAdminApplicationService
- Parameters:
name
- aString
object.- Returns:
- a
OnmsApplication
object.
-
findAllApplications
public List<OnmsApplication> findAllApplications()
findAllApplications
- Specified by:
findAllApplications
in interfaceAdminApplicationService
- Returns:
- a
List
object.
-
removeApplication
public void removeApplication(String applicationIdString)
removeApplication
- Specified by:
removeApplication
in interfaceAdminApplicationService
- Parameters:
applicationIdString
- aString
object.
-
findByMonitoredService
public List<OnmsApplication> findByMonitoredService(int id)
findByMonitoredService
- Specified by:
findByMonitoredService
in interfaceAdminApplicationService
- Parameters:
id
- a int.- Returns:
- a
List
object.
-
performServiceEdit
public void performServiceEdit(String ifServiceIdString, String editAction, String[] toAdd, String[] toDelete)
performServiceEdit
- Specified by:
performServiceEdit
in interfaceAdminApplicationService
- Parameters:
ifServiceIdString
- aString
object.editAction
- aString
object.toAdd
- an array ofString
objects.toDelete
- an array ofString
objects.
-
findServiceApplications
public DefaultAdminApplicationService.ServiceEditModel findServiceApplications(String ifServiceIdString)
findServiceApplications
- Specified by:
findServiceApplications
in interfaceAdminApplicationService
- Parameters:
ifServiceIdString
- aString
object.- Returns:
- a
DefaultAdminApplicationService.ServiceEditModel
object.
-
findApplication
public OnmsApplication findApplication(String name)
findApplication
- Parameters:
name
- aString
object.- Returns:
- a
OnmsApplication
object.
-
-