com.ibm.itim.dataservices.model.domain
Class NotificationTemplate

java.lang.Object
  |
  +--com.ibm.itim.dataservices.model.DirectoryEntry
        |
        +--com.ibm.itim.dataservices.model.domain.NotificationTemplate
All Implemented Interfaces:
com.ibm.itim.util.xml.objectstream.Importable, java.io.Serializable

public class NotificationTemplate
extends DirectoryEntry
implements java.io.Serializable

Represents a template for a notification message.

See Also:
Serialized Form

Constructor Summary
NotificationTemplate()
          Default constructor.
NotificationTemplate(java.lang.String name, boolean enable, java.lang.String subject, java.lang.String text, java.lang.String html)
          Constructs with full set of parameters.
NotificationTemplate(java.lang.String name, java.lang.String subject, java.lang.String text, java.lang.String html)
          Constructs with full set of parameters.
 
Method Summary
 java.lang.String getHTMLBody()
          Returns the template for the HTML body of the notification.
 java.lang.String getName()
          Returns the name of the notification template.
 java.lang.String getSubject()
          Returns the template for the subject of the notification.
 java.lang.String getTextBody()
          Returns the template for the text body of the notification.
 boolean isEnabled()
          Determines if the the notification template is enabled.
 void setHTMLBody(java.lang.String html)
          Changes the template for the HTML body of the notification.
 void setIsEnabled(boolean enable)
          Enable or Disable the notification template.
 void setName(java.lang.String name)
          Sets the name of the notification template.
 void setSubject(java.lang.String subject)
          Changes the template for the subject of the notification.
 void setTextBody(java.lang.String text)
          Changes the template for the text body of the notification.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryEntry
addAttribute, clearChange, clearChanges, getAttribute, getAttributes, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, removeAttribute, removeAttribute, removeAttribute, setAttribute, setAttributes, setDistinguishedName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationTemplate

public NotificationTemplate()
Default constructor.


NotificationTemplate

public NotificationTemplate(java.lang.String name,
                            java.lang.String subject,
                            java.lang.String text,
                            java.lang.String html)
Constructs with full set of parameters.

Parameters:
subject - Template for the subject of the notification.
text - Template for the text body of the notification.
html - Template for the HTML body of the notification.

NotificationTemplate

public NotificationTemplate(java.lang.String name,
                            boolean enable,
                            java.lang.String subject,
                            java.lang.String text,
                            java.lang.String html)
Constructs with full set of parameters.

Parameters:
subject - Template for the subject of the notification.
text - Template for the text body of the notification.
html - Template for the HTML body of the notification.
Method Detail

getName

public java.lang.String getName()
Returns the name of the notification template.

Returns:
name of the template.

setName

public void setName(java.lang.String name)
Sets the name of the notification template.

Parameters:
name - of the template.

isEnabled

public boolean isEnabled()
Determines if the the notification template is enabled.

Returns:
Subject template.

setIsEnabled

public void setIsEnabled(boolean enable)
Enable or Disable the notification template.

Parameters:
enable - boolean value to enable or disable the template.

getSubject

public java.lang.String getSubject()
Returns the template for the subject of the notification.

Returns:
Subject template.

setSubject

public void setSubject(java.lang.String subject)
Changes the template for the subject of the notification.

Parameters:
subject - Template for the subject of the notification.

getTextBody

public java.lang.String getTextBody()
Returns the template for the text body of the notification.

Returns:
Text body template.

setTextBody

public void setTextBody(java.lang.String text)
Changes the template for the text body of the notification.

Parameters:
text - Template for the text body of the notification.

getHTMLBody

public java.lang.String getHTMLBody()
Returns the template for the HTML body of the notification.

Returns:
HTML body template.

setHTMLBody

public void setHTMLBody(java.lang.String html)
Changes the template for the HTML body of the notification.

Parameters:
html - Template for the HTML body of the notification.

toString

public java.lang.String toString()
Description copied from class: DirectoryEntry
Returns a string representation of the object.

Overrides:
toString in class DirectoryEntry
Returns:
String representation of the object


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.