org.rhq.enterprise.server.alert
Class AlertDefinitionManagerBean
java.lang.Object
org.rhq.enterprise.server.alert.AlertDefinitionManagerBean
- All Implemented Interfaces:
- AlertDefinitionManagerLocal, AlertDefinitionManagerRemote
public class AlertDefinitionManagerBean
- extends Object
- implements AlertDefinitionManagerLocal, AlertDefinitionManagerRemote
- Author:
- Joseph Marques
|
Method Summary |
void |
copyAlertDefinitions(Subject subject,
Integer[] alertDefinitionIds)
|
int |
createAlertDefinition(Subject subject,
AlertDefinition alertDefinition,
Integer resourceId)
|
int |
disableAlertDefinitions(Subject subject,
int[] alertDefinitionIds)
|
int |
enableAlertDefinitions(Subject subject,
int[] alertDefinitionIds)
|
List<IntegerOptionItem> |
findAlertDefinitionOptionItemsForGroup(Subject subject,
int groupId)
|
List<IntegerOptionItem> |
findAlertDefinitionOptionItemsForResource(Subject subject,
int resourceId)
|
PageList<AlertDefinition> |
findAlertDefinitions(Subject subject,
int resourceId,
PageControl pageControl)
|
PageList<AlertDefinition> |
findAlertDefinitionsByCriteria(Subject subject,
AlertDefinitionCriteria criteria)
|
List<AlertDefinition> |
findAllRecoveryDefinitionsById(Subject subject,
Integer alertDefinitionId)
|
AlertDefinition |
getAlertDefinition(Subject subject,
int alertDefinitionId)
|
AlertDefinition |
getAlertDefinitionById(Subject subject,
int alertDefinitionId)
|
String[] |
getAlertNotificationConfigurationPreview(Subject sessionSubject,
AlertNotification[] notifications)
|
boolean |
isEnabled(Integer definitionId)
|
boolean |
isGroupAlertDefinition(Integer definitionId)
|
boolean |
isResourceAlertDefinition(Integer definitionId)
|
boolean |
isTemplate(Integer definitionId)
|
void |
purgeInternals(int alertDefinitionId)
|
int |
purgeUnusedAlertDefinitions()
|
int |
removeAlertDefinitions(Subject subject,
int[] alertDefinitionIds)
|
AlertDefinition |
updateAlertDefinition(Subject subject,
int alertDefinitionId,
AlertDefinition alertDefinition,
boolean purgeInternals)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlertDefinitionManagerBean
public AlertDefinitionManagerBean()
findAlertDefinitions
public PageList<AlertDefinition> findAlertDefinitions(Subject subject,
int resourceId,
PageControl pageControl)
- Specified by:
findAlertDefinitions in interface AlertDefinitionManagerLocal
getAlertDefinitionById
public AlertDefinition getAlertDefinitionById(Subject subject,
int alertDefinitionId)
- Specified by:
getAlertDefinitionById in interface AlertDefinitionManagerLocal
findAlertDefinitionOptionItemsForResource
public List<IntegerOptionItem> findAlertDefinitionOptionItemsForResource(Subject subject,
int resourceId)
- Specified by:
findAlertDefinitionOptionItemsForResource in interface AlertDefinitionManagerLocal
findAlertDefinitionOptionItemsForGroup
public List<IntegerOptionItem> findAlertDefinitionOptionItemsForGroup(Subject subject,
int groupId)
- Specified by:
findAlertDefinitionOptionItemsForGroup in interface AlertDefinitionManagerLocal
createAlertDefinition
public int createAlertDefinition(Subject subject,
AlertDefinition alertDefinition,
Integer resourceId)
throws InvalidAlertDefinitionException
- Specified by:
createAlertDefinition in interface AlertDefinitionManagerLocal
- Throws:
InvalidAlertDefinitionException
removeAlertDefinitions
public int removeAlertDefinitions(Subject subject,
int[] alertDefinitionIds)
- Specified by:
removeAlertDefinitions in interface AlertDefinitionManagerLocal- Specified by:
removeAlertDefinitions in interface AlertDefinitionManagerRemote
enableAlertDefinitions
public int enableAlertDefinitions(Subject subject,
int[] alertDefinitionIds)
- Specified by:
enableAlertDefinitions in interface AlertDefinitionManagerLocal- Specified by:
enableAlertDefinitions in interface AlertDefinitionManagerRemote
isEnabled
public boolean isEnabled(Integer definitionId)
- Specified by:
isEnabled in interface AlertDefinitionManagerLocal
isTemplate
public boolean isTemplate(Integer definitionId)
- Specified by:
isTemplate in interface AlertDefinitionManagerLocal
isGroupAlertDefinition
public boolean isGroupAlertDefinition(Integer definitionId)
- Specified by:
isGroupAlertDefinition in interface AlertDefinitionManagerLocal
isResourceAlertDefinition
public boolean isResourceAlertDefinition(Integer definitionId)
- Specified by:
isResourceAlertDefinition in interface AlertDefinitionManagerLocal
disableAlertDefinitions
public int disableAlertDefinitions(Subject subject,
int[] alertDefinitionIds)
- Specified by:
disableAlertDefinitions in interface AlertDefinitionManagerLocal- Specified by:
disableAlertDefinitions in interface AlertDefinitionManagerRemote
copyAlertDefinitions
public void copyAlertDefinitions(Subject subject,
Integer[] alertDefinitionIds)
- Specified by:
copyAlertDefinitions in interface AlertDefinitionManagerLocal
findAllRecoveryDefinitionsById
public List<AlertDefinition> findAllRecoveryDefinitionsById(Subject subject,
Integer alertDefinitionId)
- Specified by:
findAllRecoveryDefinitionsById in interface AlertDefinitionManagerLocal
updateAlertDefinition
public AlertDefinition updateAlertDefinition(Subject subject,
int alertDefinitionId,
AlertDefinition alertDefinition,
boolean purgeInternals)
throws InvalidAlertDefinitionException,
AlertDefinitionUpdateException
- Specified by:
updateAlertDefinition in interface AlertDefinitionManagerLocal
- Throws:
InvalidAlertDefinitionException
AlertDefinitionUpdateException
purgeInternals
public void purgeInternals(int alertDefinitionId)
- Specified by:
purgeInternals in interface AlertDefinitionManagerLocal
purgeUnusedAlertDefinitions
public int purgeUnusedAlertDefinitions()
- Specified by:
purgeUnusedAlertDefinitions in interface AlertDefinitionManagerLocal
getAlertDefinition
public AlertDefinition getAlertDefinition(Subject subject,
int alertDefinitionId)
- Specified by:
getAlertDefinition in interface AlertDefinitionManagerLocal- Specified by:
getAlertDefinition in interface AlertDefinitionManagerRemote
findAlertDefinitionsByCriteria
public PageList<AlertDefinition> findAlertDefinitionsByCriteria(Subject subject,
AlertDefinitionCriteria criteria)
- Specified by:
findAlertDefinitionsByCriteria in interface AlertDefinitionManagerLocal- Specified by:
findAlertDefinitionsByCriteria in interface AlertDefinitionManagerRemote
getAlertNotificationConfigurationPreview
public String[] getAlertNotificationConfigurationPreview(Subject sessionSubject,
AlertNotification[] notifications)
- Specified by:
getAlertNotificationConfigurationPreview in interface AlertDefinitionManagerLocal- Specified by:
getAlertNotificationConfigurationPreview in interface AlertDefinitionManagerRemote
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.