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 java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsApplication
addNewApplication(java.lang.String name)
addNewApplicationjava.util.List<OnmsApplication>
findAllApplications()
findAllApplicationsjava.util.List<OnmsMonitoredService>
findAllMonitoredServices()
findAllMonitoredServicesjava.util.List<OnmsMonitoringLocation>
findAllMonitoringLocations()
OnmsApplication
findApplication(java.lang.String name)
findApplicationDefaultAdminApplicationService.EditModel
findApplicationAndAllMonitoredServices(java.lang.String applicationIdString)
findApplicationAndAllMonitoredServicesjava.util.List<OnmsApplication>
findByMonitoredService(int id)
findByMonitoredServiceDefaultAdminApplicationService.ServiceEditModel
findServiceApplications(java.lang.String ifServiceIdString)
findServiceApplicationsDefaultAdminApplicationService.ApplicationAndMemberServices
getApplication(java.lang.String applicationIdString)
getApplicationApplicationDao
getApplicationDao()
getApplicationDaoEventProxy
getEventProxy()
MonitoredServiceDao
getMonitoredServiceDao()
getMonitoredServiceDaovoid
performEditLocations(java.lang.String applicationIdString, java.lang.String editAction, java.lang.String[] locationAdds, java.lang.String[] locationDeletes)
void
performEditServices(java.lang.String applicationIdString, java.lang.String editAction, java.lang.String[] toAdd, java.lang.String[] toDelete)
performEditvoid
performServiceEdit(java.lang.String ifServiceIdString, java.lang.String editAction, java.lang.String[] toAdd, java.lang.String[] toDelete)
performServiceEditvoid
removeApplication(java.lang.String applicationIdString)
removeApplicationvoid
setApplicationDao(ApplicationDao dao)
setApplicationDaovoid
setEventProxy(EventProxy eventProxy)
void
setMonitoredServiceDao(MonitoredServiceDao monitoredServiceDao)
setMonitoredServiceDaovoid
setMonitoringLocationDao(MonitoringLocationDao monitoringLocationDao)
-
-
-
Method Detail
-
getApplication
public DefaultAdminApplicationService.ApplicationAndMemberServices getApplication(java.lang.String applicationIdString)
getApplication
- Specified by:
getApplication
in interfaceAdminApplicationService
- Parameters:
applicationIdString
- aString
object.- Returns:
- a
DefaultAdminApplicationService.ApplicationAndMemberServices
object.
-
findAllMonitoredServices
public java.util.List<OnmsMonitoredService> findAllMonitoredServices()
findAllMonitoredServices
- Specified by:
findAllMonitoredServices
in interfaceAdminApplicationService
- Returns:
- a
List
object.
-
findAllMonitoringLocations
public java.util.List<OnmsMonitoringLocation> findAllMonitoringLocations()
- Specified by:
findAllMonitoringLocations
in interfaceAdminApplicationService
-
findApplicationAndAllMonitoredServices
public DefaultAdminApplicationService.EditModel findApplicationAndAllMonitoredServices(java.lang.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(java.lang.String applicationIdString, java.lang.String editAction, java.lang.String[] toAdd, java.lang.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(java.lang.String applicationIdString, java.lang.String editAction, java.lang.String[] locationAdds, java.lang.String[] locationDeletes)
- Specified by:
performEditLocations
in interfaceAdminApplicationService
-
addNewApplication
public OnmsApplication addNewApplication(java.lang.String name)
addNewApplication
- Specified by:
addNewApplication
in interfaceAdminApplicationService
- Parameters:
name
- aString
object.- Returns:
- a
OnmsApplication
object.
-
findAllApplications
public java.util.List<OnmsApplication> findAllApplications()
findAllApplications
- Specified by:
findAllApplications
in interfaceAdminApplicationService
- Returns:
- a
List
object.
-
removeApplication
public void removeApplication(java.lang.String applicationIdString)
removeApplication
- Specified by:
removeApplication
in interfaceAdminApplicationService
- Parameters:
applicationIdString
- aString
object.
-
findByMonitoredService
public java.util.List<OnmsApplication> findByMonitoredService(int id)
findByMonitoredService
- Specified by:
findByMonitoredService
in interfaceAdminApplicationService
- Parameters:
id
- a int.- Returns:
- a
List
object.
-
performServiceEdit
public void performServiceEdit(java.lang.String ifServiceIdString, java.lang.String editAction, java.lang.String[] toAdd, java.lang.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(java.lang.String ifServiceIdString)
findServiceApplications
- Specified by:
findServiceApplications
in interfaceAdminApplicationService
- Parameters:
ifServiceIdString
- aString
object.- Returns:
- a
DefaultAdminApplicationService.ServiceEditModel
object.
-
findApplication
public OnmsApplication findApplication(java.lang.String name)
findApplication
- Parameters:
name
- aString
object.- Returns:
- a
OnmsApplication
object.
-
-