org.opends.server.admin.std.meta
Class SMTPAlertHandlerCfgDefn

java.lang.Object
  extended by org.opends.server.admin.AbstractManagedObjectDefinition<C,S>
      extended by org.opends.server.admin.ManagedObjectDefinition<SMTPAlertHandlerCfgClient,SMTPAlertHandlerCfg>
          extended by org.opends.server.admin.std.meta.SMTPAlertHandlerCfgDefn

public final class SMTPAlertHandlerCfgDefn
extends ManagedObjectDefinition<SMTPAlertHandlerCfgClient,SMTPAlertHandlerCfg>

An interface for querying the SMTP Alert Handler managed object definition meta information.

The SMTP Alert Handler may be used to send e-mail messages to notify administrators of significant events that occur within the server.


Method Summary
 SMTPAlertHandlerCfgClient createClientConfiguration(ManagedObject<? extends SMTPAlertHandlerCfgClient> impl)
          Creates a client configuration view of the provided managed object.
 SMTPAlertHandlerCfg createServerConfiguration(ServerManagedObject<? extends SMTPAlertHandlerCfg> impl)
          Creates a server configuration view of the provided server managed object.
 StringPropertyDefinition getDisabledAlertTypePropertyDefinition()
          Get the "disabled-alert-type" property definition.
 StringPropertyDefinition getEnabledAlertTypePropertyDefinition()
          Get the "enabled-alert-type" property definition.
 BooleanPropertyDefinition getEnabledPropertyDefinition()
          Get the "enabled" property definition.
static SMTPAlertHandlerCfgDefn getInstance()
          Get the SMTP Alert Handler configuration definition singleton.
 ClassPropertyDefinition getJavaClassPropertyDefinition()
          Get the "java-class" property definition.
 StringPropertyDefinition getMessageBodyPropertyDefinition()
          Get the "message-body" property definition.
 StringPropertyDefinition getMessageSubjectPropertyDefinition()
          Get the "message-subject" property definition.
 StringPropertyDefinition getRecipientAddressPropertyDefinition()
          Get the "recipient-address" property definition.
 StringPropertyDefinition getSenderAddressPropertyDefinition()
          Get the "sender-address" property definition.
 java.lang.Class<SMTPAlertHandlerCfg> getServerConfigurationClass()
          Gets the server configuration class instance associated with this managed object definition.
 
Methods inherited from class org.opends.server.admin.AbstractManagedObjectDefinition
getAggregationPropertyDefinition, getAggregationPropertyDefinitions, getAllAggregationPropertyDefinitions, getAllChildren, getAllConstraints, getAllPropertyDefinitions, getAllRelationDefinitions, getAllReverseAggregationPropertyDefinitions, getAllReverseRelationDefinitions, getAllTags, getChild, getChildren, getConstraints, getDescription, getDescription, getName, getParent, getPropertyDefinition, getPropertyDefinitions, getRelationDefinition, getRelationDefinitions, getReverseAggregationPropertyDefinitions, getReverseRelationDefinitions, getSynopsis, getSynopsis, getUserFriendlyName, getUserFriendlyName, getUserFriendlyPluralName, getUserFriendlyPluralName, hasChildren, hasOption, hasTag, initialize, isChildOf, isParentOf, isTop, registerConstraint, registerOption, registerPropertyDefinition, registerRelationDefinition, registerTag, resolveManagedObjectDefinition, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static SMTPAlertHandlerCfgDefn getInstance()
Get the SMTP Alert Handler configuration definition singleton.

Returns:
Returns the SMTP Alert Handler configuration definition singleton.

createClientConfiguration

public SMTPAlertHandlerCfgClient createClientConfiguration(ManagedObject<? extends SMTPAlertHandlerCfgClient> impl)
Creates a client configuration view of the provided managed object. Modifications made to the underlying managed object will be reflected in the client configuration view and vice versa.

Specified by:
createClientConfiguration in class ManagedObjectDefinition<SMTPAlertHandlerCfgClient,SMTPAlertHandlerCfg>
Parameters:
impl - The managed object.
Returns:
Returns a client configuration view of the provided managed object.

createServerConfiguration

public SMTPAlertHandlerCfg createServerConfiguration(ServerManagedObject<? extends SMTPAlertHandlerCfg> impl)
Creates a server configuration view of the provided server managed object.

Specified by:
createServerConfiguration in class ManagedObjectDefinition<SMTPAlertHandlerCfgClient,SMTPAlertHandlerCfg>
Parameters:
impl - The server managed object.
Returns:
Returns a server configuration view of the provided server managed object.

getServerConfigurationClass

public java.lang.Class<SMTPAlertHandlerCfg> getServerConfigurationClass()
Gets the server configuration class instance associated with this managed object definition.

Specified by:
getServerConfigurationClass in class ManagedObjectDefinition<SMTPAlertHandlerCfgClient,SMTPAlertHandlerCfg>
Returns:
Returns the server configuration class instance associated with this managed object definition.

getDisabledAlertTypePropertyDefinition

public StringPropertyDefinition getDisabledAlertTypePropertyDefinition()
Get the "disabled-alert-type" property definition.

Specifies the names of the alert types that are disabled for this alert handler.

If there are any values for this attribute, then no alerts with any of the specified types are allowed. If there are no values for this attribute, then only alerts with a type included in the set of enabled alert types are allowed, or if there are no values for the enabled alert types option, then all alert types are allowed.

Returns:
Returns the "disabled-alert-type" property definition.

getEnabledPropertyDefinition

public BooleanPropertyDefinition getEnabledPropertyDefinition()
Get the "enabled" property definition.

Indicates whether the SMTP Alert Handler is enabled.

Returns:
Returns the "enabled" property definition.

getEnabledAlertTypePropertyDefinition

public StringPropertyDefinition getEnabledAlertTypePropertyDefinition()
Get the "enabled-alert-type" property definition.

Specifies the names of the alert types that are enabled for this alert handler.

If there are any values for this attribute, then only alerts with one of the specified types are allowed (unless they are also included in the disabled alert types). If there are no values for this attribute, then any alert with a type not included in the list of disabled alert types is allowed.

Returns:
Returns the "enabled-alert-type" property definition.

getJavaClassPropertyDefinition

public ClassPropertyDefinition getJavaClassPropertyDefinition()
Get the "java-class" property definition.

Specifies the fully-qualified name of the Java class that provides the SMTP Alert Handler implementation.

Returns:
Returns the "java-class" property definition.

getMessageBodyPropertyDefinition

public StringPropertyDefinition getMessageBodyPropertyDefinition()
Get the "message-body" property definition.

Specifies the body that should be used for email messages generated by this alert handler.

The token "%%%%alert-type%%%%" is dynamically replaced with the alert type string. The token "%%%%alert-id%%%%" is dynamically replaced with the alert ID value. The token "%%%%alert-message%%%%" is dynamically replaced with the alert message. The token "\\n" is replaced with an end-of-line marker.

Returns:
Returns the "message-body" property definition.

getMessageSubjectPropertyDefinition

public StringPropertyDefinition getMessageSubjectPropertyDefinition()
Get the "message-subject" property definition.

Specifies the subject that should be used for email messages generated by this alert handler.

The token "%%%%alert-type%%%%" is dynamically replaced with the alert type string. The token "%%%%alert-id%%%%" is dynamically replaced with the alert ID value. The token "%%%%alert-message%%%%" is dynamically replaced with the alert message. The token "\\n" is replaced with an end-of-line marker.

Returns:
Returns the "message-subject" property definition.

getRecipientAddressPropertyDefinition

public StringPropertyDefinition getRecipientAddressPropertyDefinition()
Get the "recipient-address" property definition.

Specifies an email address to which the messages should be sent.

Multiple values may be provided if there should be more than one recipient.

Returns:
Returns the "recipient-address" property definition.

getSenderAddressPropertyDefinition

public StringPropertyDefinition getSenderAddressPropertyDefinition()
Get the "sender-address" property definition.

Specifies the email address to use as the sender for messages generated by this alert handler.

Returns:
Returns the "sender-address" property definition.