org.rhq.enterprise.server.plugin.pc.alert
Class CustomAlertSenderBackingBean

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.alert.CustomAlertSenderBackingBean

public class CustomAlertSenderBackingBean
extends Object

Abstract super class for custom alert sender backing beans

Author:
Heiko W. Rupp

Field Summary
protected  Integer alertNotificationId
           
protected  org.rhq.core.domain.configuration.Configuration alertParameters
          Configuration from the per alert definition parameters
protected  String context
           
protected  String contextId
           
protected  String contextSubId
           
protected  org.rhq.core.domain.configuration.Configuration extraParameters
           
protected  org.rhq.core.domain.auth.Subject webUser
           
 
Constructor Summary
CustomAlertSenderBackingBean()
           
 
Method Summary
protected  org.rhq.core.domain.configuration.Configuration cleanProperty(org.rhq.core.domain.configuration.Configuration config, String propertyName)
          Remove one property from the passed configuration.
 Integer getAlertNotificationId()
           
 org.rhq.core.domain.configuration.Configuration getAlertParameters()
           
 String getContext()
           
 String getContextId()
           
 String getContextSubId()
           
 org.rhq.core.domain.configuration.Configuration getExtraParameters()
           
 org.rhq.core.domain.auth.Subject getWebUser()
           
 void loadView()
           
protected  org.rhq.core.domain.configuration.Configuration persistConfiguration(org.rhq.core.domain.configuration.Configuration config)
          Persist the passed configuration object.
protected  org.rhq.core.domain.configuration.Configuration persistProperty(org.rhq.core.domain.configuration.Configuration config, String propertyName, Object value)
          Persist a single property of a given configuration.
 void saveView()
           
 void setAlertNotificationId(Integer alertNotificationId)
           
 void setAlertParameters(org.rhq.core.domain.configuration.Configuration alertParameters)
           
 void setContext(String context)
           
 void setContextId(String contextId)
           
 void setContextSubId(String contextSubId)
           
 void setExtraParameters(org.rhq.core.domain.configuration.Configuration extraParameters)
           
 void setWebUser(org.rhq.core.domain.auth.Subject webUser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alertParameters

protected org.rhq.core.domain.configuration.Configuration alertParameters
Configuration from the per alert definition parameters


extraParameters

protected org.rhq.core.domain.configuration.Configuration extraParameters

webUser

protected org.rhq.core.domain.auth.Subject webUser

context

protected String context

contextId

protected String contextId

contextSubId

protected String contextSubId

alertNotificationId

protected Integer alertNotificationId
Constructor Detail

CustomAlertSenderBackingBean

public CustomAlertSenderBackingBean()
Method Detail

getAlertParameters

public org.rhq.core.domain.configuration.Configuration getAlertParameters()

getExtraParameters

public org.rhq.core.domain.configuration.Configuration getExtraParameters()

setAlertParameters

public void setAlertParameters(org.rhq.core.domain.configuration.Configuration alertParameters)

setExtraParameters

public void setExtraParameters(org.rhq.core.domain.configuration.Configuration extraParameters)

getWebUser

public org.rhq.core.domain.auth.Subject getWebUser()

setWebUser

public void setWebUser(org.rhq.core.domain.auth.Subject webUser)

getContext

public String getContext()

setContext

public void setContext(String context)

getContextId

public String getContextId()

setContextId

public void setContextId(String contextId)

getContextSubId

public String getContextSubId()

setContextSubId

public void setContextSubId(String contextSubId)

getAlertNotificationId

public Integer getAlertNotificationId()

setAlertNotificationId

public void setAlertNotificationId(Integer alertNotificationId)

loadView

public void loadView()

saveView

public void saveView()

persistConfiguration

protected org.rhq.core.domain.configuration.Configuration persistConfiguration(org.rhq.core.domain.configuration.Configuration config)
Persist the passed configuration object. This can be a new object or one that already exists in the database. If the input is null, not persistence happens and null is returned.

Parameters:
config - configuration to persist or update
Returns:
a merged copy of the configuration or null

persistProperty

protected org.rhq.core.domain.configuration.Configuration persistProperty(org.rhq.core.domain.configuration.Configuration config,
                                                                          String propertyName,
                                                                          Object value)
Persist a single property of a given configuration. If the property does not yet exist, it is created otherwise overwritten with the new value.

Parameters:
config - configuration the property is on
propertyName - name of the property to persist
value - (new) value of the property to persist
Returns:
the updated configuration

cleanProperty

protected org.rhq.core.domain.configuration.Configuration cleanProperty(org.rhq.core.domain.configuration.Configuration config,
                                                                        String propertyName)
Remove one property from the passed configuration. Returns the updated configuration

Parameters:
config - configuration the property is on
propertyName - name of the property to remove
Returns:
the updated configuration


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