public interface SMTPAccountStatusNotificationHandlerCfgClient extends AccountStatusNotificationHandlerCfgClient
The SMTP Account Status Notification Handler is a notification handler that sends email messages to end users and/or administrators whenever an account status notification is generated.
Modifier and Type | Method and Description |
---|---|
ManagedObjectDefinition<? extends SMTPAccountStatusNotificationHandlerCfgClient,? extends SMTPAccountStatusNotificationHandlerCfg> |
definition()
Get the configuration definition associated with this SMTP Account Status Notification Handler.
|
SortedSet<AttributeType> |
getEmailAddressAttributeType()
Gets the "email-address-attribute-type" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
SortedSet<String> |
getMessageSubject()
Gets the "message-subject" property.
|
SortedSet<String> |
getMessageTemplateFile()
Gets the "message-template-file" property.
|
SortedSet<String> |
getRecipientAddress()
Gets the "recipient-address" property.
|
String |
getSenderAddress()
Gets the "sender-address" property.
|
boolean |
isSendEmailAsHtml()
Gets the "send-email-as-html" property.
|
boolean |
isSendMessageWithoutEndUserAddress()
Gets the "send-message-without-end-user-address" property.
|
void |
setEmailAddressAttributeType(Collection<AttributeType> values)
Sets the "email-address-attribute-type" property.
|
void |
setJavaClass(String value)
Sets the "java-class" property.
|
void |
setMessageSubject(Collection<String> values)
Sets the "message-subject" property.
|
void |
setMessageTemplateFile(Collection<String> values)
Sets the "message-template-file" property.
|
void |
setRecipientAddress(Collection<String> values)
Sets the "recipient-address" property.
|
void |
setSendEmailAsHtml(Boolean value)
Sets the "send-email-as-html" property.
|
void |
setSenderAddress(String value)
Sets the "sender-address" property.
|
void |
setSendMessageWithoutEndUserAddress(boolean value)
Sets the "send-message-without-end-user-address" property.
|
isEnabled, setEnabled
commit, properties
ManagedObjectDefinition<? extends SMTPAccountStatusNotificationHandlerCfgClient,? extends SMTPAccountStatusNotificationHandlerCfg> definition()
definition
in interface AccountStatusNotificationHandlerCfgClient
definition
in interface ConfigurationClient
SortedSet<AttributeType> getEmailAddressAttributeType()
Specifies which attribute in the user's entries may be used to obtain the email address when notifying the end user.
You can specify more than one email address as separate values. In this case, the OpenDJ server sends a notification to all email addresses identified.
void setEmailAddressAttributeType(Collection<AttributeType> values) throws PropertyException
Specifies which attribute in the user's entries may be used to obtain the email address when notifying the end user.
You can specify more than one email address as separate values. In this case, the OpenDJ server sends a notification to all email addresses identified.
values
- The values of the "email-address-attribute-type" property.PropertyException
- If one or more of the new values are invalid.String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the SMTP Account Status Notification Handler implementation.
getJavaClass
in interface AccountStatusNotificationHandlerCfgClient
void setJavaClass(String value) throws PropertyException
Specifies the fully-qualified name of the Java class that provides the SMTP Account Status Notification Handler implementation.
setJavaClass
in interface AccountStatusNotificationHandlerCfgClient
value
- The value of the "java-class" property.PropertyException
- If the new value is invalid.SortedSet<String> getMessageSubject()
Specifies the subject that should be used for email messages generated by this account status notification handler.
The values for this property should begin with the name of an account status notification type followed by a colon and the subject that should be used for the associated notification message. If an email message is generated for an account status notification type for which no subject is defined, then that message is given a generic subject.
void setMessageSubject(Collection<String> values) throws PropertyException
Specifies the subject that should be used for email messages generated by this account status notification handler.
The values for this property should begin with the name of an account status notification type followed by a colon and the subject that should be used for the associated notification message. If an email message is generated for an account status notification type for which no subject is defined, then that message is given a generic subject.
values
- The values of the "message-subject" property.PropertyException
- If one or more of the new values are invalid.SortedSet<String> getMessageTemplateFile()
Specifies the path to the file containing the message template to generate the email notification messages.
The values for this property should begin with the name of an account status notification type followed by a colon and the path to the template file that should be used for that notification type. If an account status notification has a notification type that is not associated with a message template file, then no email message is generated for that notification.
void setMessageTemplateFile(Collection<String> values) throws PropertyException
Specifies the path to the file containing the message template to generate the email notification messages.
The values for this property should begin with the name of an account status notification type followed by a colon and the path to the template file that should be used for that notification type. If an account status notification has a notification type that is not associated with a message template file, then no email message is generated for that notification.
values
- The values of the "message-template-file" property.PropertyException
- If one or more of the new values are invalid.SortedSet<String> getRecipientAddress()
Specifies an email address to which notification messages are sent, either instead of or in addition to the end user for whom the notification has been generated.
This may be used to ensure that server administrators also receive a copy of any notification messages that are generated.
void setRecipientAddress(Collection<String> values) throws PropertyException
Specifies an email address to which notification messages are sent, either instead of or in addition to the end user for whom the notification has been generated.
This may be used to ensure that server administrators also receive a copy of any notification messages that are generated.
values
- The values of the "recipient-address" property.PropertyException
- If one or more of the new values are invalid.boolean isSendEmailAsHtml()
Indicates whether an email notification message should be sent as HTML.
If this value is true, email notification messages are marked as text/html. Otherwise outgoing email messages are assumed to be plaintext and marked as text/plain.
void setSendEmailAsHtml(Boolean value) throws PropertyException
Indicates whether an email notification message should be sent as HTML.
If this value is true, email notification messages are marked as text/html. Otherwise outgoing email messages are assumed to be plaintext and marked as text/plain.
value
- The value of the "send-email-as-html" property.PropertyException
- If the new value is invalid.String getSenderAddress()
Specifies the email address from which the message is sent. Note that this does not necessarily have to be a legitimate email address.
void setSenderAddress(String value) throws PropertyException
Specifies the email address from which the message is sent. Note that this does not necessarily have to be a legitimate email address.
value
- The value of the "sender-address" property.PropertyException
- If the new value is invalid.boolean isSendMessageWithoutEndUserAddress()
Indicates whether an email notification message should be generated and sent to the set of notification recipients even if the user entry does not contain any values for any of the email address attributes (that is, in cases when it is not be possible to notify the end user).
This is only applicable if both one or more email address attribute types and one or more additional recipient addresses are specified.
void setSendMessageWithoutEndUserAddress(boolean value) throws PropertyException
Indicates whether an email notification message should be generated and sent to the set of notification recipients even if the user entry does not contain any values for any of the email address attributes (that is, in cases when it is not be possible to notify the end user).
This is only applicable if both one or more email address attribute types and one or more additional recipient addresses are specified.
value
- The value of the "send-message-without-end-user-address" property.PropertyException
- If the new value is invalid.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.