com.ibm.itim.dataservices.model.domain

Class 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
    • Field Detail

      • UNDEFINED_TYPE

        public static final int UNDEFINED_TYPE
        Type of template must one of the following values:
        • RECERT_APPROVAL - for the approval node of recertification
        • RECERT_WORKORDER - for the workorder node of recertification
        • MAIL_TEMPLATE - for the mail template
        • USERRECERT_APPROVAL - for the approval node of user recertification
        • USERRECERT_WORKORDER - for the workorder node of user recertification
        • SODRECERT_WORKORDER - for the workorder node of sod recertification
        • PROVISIONINGRECERT_WORKORDER - for the workorder node of provisioning recertification
        • MANUAL_SERVICE_MODE - for the manual and manual connected service default template
        See Also:
        Constant Field Values
      • PROVISIONINGRECERT_WORKORDER

        public static final int PROVISIONINGRECERT_WORKORDER
        See Also:
        Constant Field Values
    • 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.
      • getType

        public int getType()
        Returns type of the of the notification template.
        Returns:
        If the type is defined for the template, return it. The following type of tempaltes are returned:
        • NotificationTemplate.RECERT_APPROVAL - recertification approval template
        • NotificationTemplate.RECERT_WORKORDER - recertification work order template
        • NotificationTemplate.MAIL_TEMPLATE - mail template
        • NotificationTemplate.UNDEFINED_TYPE - type is not defined for this template
      • setType

        public void setType(int templateType)
        Changes the type of notification template.
        Parameters:
        templateType - type of the notification template. It must be one of the following values:
        • NotificationTemplate.RECERT_APPROVAL - recertification approval template
        • NotificationTemplate.RECERT_WORKORDER - recertification work order template
        • NotificationTemplate.MAIL_TEMPLATE - mail template
      • enableReadOnly

        public void enableReadOnly()
        Enable the readonly property for the notification template. If it's readonly, the user shouldn't be allowed to modify the template. Else, the template is modifiable.
      • disableReadOnly

        public void disableReadOnly()
        Disable the readonly property for the notification template. If it's readonly, the user shouldn't be allowed to modify the template. Else, the template is modifiable.
      • isReadOnly

        public boolean isReadOnly()
        Determine if the content of the template can be modified or altered. Default: the template is modifiable.
      • 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