org.rhq.enterprise.server.alert
Class AlertDefinitionManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.alert.AlertDefinitionManagerBean
All Implemented Interfaces:
AlertDefinitionManagerLocal, AlertDefinitionManagerRemote

public class AlertDefinitionManagerBean
extends java.lang.Object
implements AlertDefinitionManagerLocal, AlertDefinitionManagerRemote

Author:
Joseph Marques

Constructor Summary
AlertDefinitionManagerBean()
           
 
Method Summary
 void copyAlertDefinitions(Subject subject, java.lang.Integer[] alertDefinitionIds)
           
 int createAlertDefinition(Subject subject, AlertDefinition alertDefinition, java.lang.Integer resourceId)
           
 int disableAlertDefinitions(Subject subject, java.lang.Integer[] alertDefinitionIds)
           
 int enableAlertDefinitions(Subject subject, java.lang.Integer[] alertDefinitionIds)
           
 java.util.List<IntegerOptionItem> findAlertDefinitionOptionItemsForGroup(Subject subject, int groupId)
           
 java.util.List<IntegerOptionItem> findAlertDefinitionOptionItemsForResource(Subject subject, int resourceId)
           
 PageList<AlertDefinition> findAlertDefinitions(Subject subject, int resourceId, PageControl pageControl)
           
 PageList<AlertDefinition> findAlertDefinitionsByCriteria(Subject subject, AlertDefinitionCriteria criteria)
           
 java.util.List<AlertDefinition> findAllRecoveryDefinitionsById(Subject subject, java.lang.Integer alertDefinitionId)
           
 AlertDefinition getAlertDefinition(Subject subject, int alertDefinitionId)
           
 AlertDefinition getAlertDefinitionById(Subject subject, int alertDefinitionId)
           
 boolean isEnabled(java.lang.Integer definitionId)
           
 boolean isGroupAlertDefinition(java.lang.Integer definitionId)
           
 boolean isTemplate(java.lang.Integer definitionId)
           
 int purgeUnusedAlertDefinition()
           
 int removeAlertDefinitions(Subject subject, java.lang.Integer[] 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
 

Constructor Detail

AlertDefinitionManagerBean

public AlertDefinitionManagerBean()
Method Detail

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 java.util.List<IntegerOptionItem> findAlertDefinitionOptionItemsForResource(Subject subject,
                                                                                   int resourceId)
Specified by:
findAlertDefinitionOptionItemsForResource in interface AlertDefinitionManagerLocal

findAlertDefinitionOptionItemsForGroup

public java.util.List<IntegerOptionItem> findAlertDefinitionOptionItemsForGroup(Subject subject,
                                                                                int groupId)
Specified by:
findAlertDefinitionOptionItemsForGroup in interface AlertDefinitionManagerLocal

createAlertDefinition

public int createAlertDefinition(Subject subject,
                                 AlertDefinition alertDefinition,
                                 java.lang.Integer resourceId)
                          throws InvalidAlertDefinitionException
Specified by:
createAlertDefinition in interface AlertDefinitionManagerLocal
Throws:
InvalidAlertDefinitionException

removeAlertDefinitions

public int removeAlertDefinitions(Subject subject,
                                  java.lang.Integer[] alertDefinitionIds)
Specified by:
removeAlertDefinitions in interface AlertDefinitionManagerLocal

enableAlertDefinitions

public int enableAlertDefinitions(Subject subject,
                                  java.lang.Integer[] alertDefinitionIds)
Specified by:
enableAlertDefinitions in interface AlertDefinitionManagerLocal

isEnabled

public boolean isEnabled(java.lang.Integer definitionId)
Specified by:
isEnabled in interface AlertDefinitionManagerLocal

isTemplate

public boolean isTemplate(java.lang.Integer definitionId)
Specified by:
isTemplate in interface AlertDefinitionManagerLocal

isGroupAlertDefinition

public boolean isGroupAlertDefinition(java.lang.Integer definitionId)
Specified by:
isGroupAlertDefinition in interface AlertDefinitionManagerLocal

disableAlertDefinitions

public int disableAlertDefinitions(Subject subject,
                                   java.lang.Integer[] alertDefinitionIds)
Specified by:
disableAlertDefinitions in interface AlertDefinitionManagerLocal

copyAlertDefinitions

public void copyAlertDefinitions(Subject subject,
                                 java.lang.Integer[] alertDefinitionIds)
Specified by:
copyAlertDefinitions in interface AlertDefinitionManagerLocal

findAllRecoveryDefinitionsById

public java.util.List<AlertDefinition> findAllRecoveryDefinitionsById(Subject subject,
                                                                      java.lang.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

purgeUnusedAlertDefinition

public int purgeUnusedAlertDefinition()
Specified by:
purgeUnusedAlertDefinition 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


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.