Class NotificationTemplate

java.lang.Object
oracle.iam.notification.vo.NotificationTemplate
All Implemented Interfaces:
Serializable

public class NotificationTemplate extends Object implements Serializable
This object represent a notification template
Author:
saggarwa
See Also:
  • Constructor Details

    • NotificationTemplate

      public NotificationTemplate()
      Default Constructor
  • Method Details

    • addLocaltemplate

      public void addLocaltemplate(String locale, LocalTemplate aLocaltemplate)
      To add a locale template for given base notification template
      Parameters:
      locale - Locale name to be added to the template
      aLocaltemplate - Object LocaleTemplate containing parameter specific to the locale to be added
    • getDescription

      public String getDescription()
      Provides description for the template
      Returns:
      description associated with the template
    • getId

      public Long getId()
      Provides ID of the template
      Returns:
      ID of the template
    • getLocaltemplateCollection

      public Map<String,LocalTemplate> getLocaltemplateCollection()
      Provides a map of all locales associated with the template and their corresponding parameters
      Returns:
      A map of locale name to LocaleTemplate containing parameter specific to it
    • getSnmpsupported

      public Character getSnmpsupported()
      Provides a character to specify whether SNMP supported or not. 'y' means SNMP supported and 'n' means SNMP not supported.
      Returns:
      A character to specify whether SNMP supported or not
    • getTemplatename

      public String getTemplatename()
      Provides name of the template
      Returns:
      name of the template
    • removeLocaltemplate

      public void removeLocaltemplate(LocalTemplate aLocaltemplate)
      To remove a locale template for given base notification template
      Parameters:
      aLocaltemplate - Object LocaleTemplate containing parameter specific to the locale to be removed
    • setDescription

      public void setDescription(String description)
      Set description for the template
      Parameters:
      description - description for the template
    • setId

      public void setId(Long id)
      Sets ID of the template
      Parameters:
      id - The value of id
    • setId

      public void setId(String sid)
      Sets ID of the template
      Parameters:
      sid - The value of id
    • getEventname

      public String getEventname()
      Provides event name associated with the template
      Returns:
      event name
    • setEventname

      public void setEventname(String eventname)
      Adds event name to the template
      Parameters:
      eventname - event name to be associated with the template
    • setLocaltemplateCollection

      public void setLocaltemplateCollection(Map<String,LocalTemplate> localtemplateCollection)
      Adds map of locales and their corresponding parameters to the template
      Parameters:
      localtemplateCollection - map containing locales and their corresponding parameters
    • setSnmpsupported

      public void setSnmpsupported(boolean flag)
      Specify support for SNMP
      Parameters:
      flag - 'true' if support is provided else 'false'
    • setSnmpsupported

      public void setSnmpsupported(String flag)
      Specify support for SNMP
      Parameters:
      flag - custom flag to be set
    • setTemplatename

      public void setTemplatename(String templatename)
      Sets name for the template
      Parameters:
      templatename - name to be given to the template
    • getDatalevel

      public Double getDatalevel()
      Provides Data Level of the template
      Returns:
      data level of the template
    • setDatalevel

      public void setDatalevel(Double datalevel)
      Sets Data Level of the template
      Parameters:
      datalevel - value of the data level to be set
    • setDatalevel

      public void setDatalevel(String datalevel)
      Sets Data Level of the template
      Parameters:
      datalevel - value of the data level to be set
    • getCreationdate

      public Timestamp getCreationdate()
      Provides Creation Date of the template
      Returns:
      timestamp at which the template was created
    • setCreationdate

      public void setCreationdate(Timestamp creationdate)
      Sets Creation Date of the template
      Parameters:
      creationdate - value of timestamp to be set
    • getLastupdated

      public Timestamp getLastupdated()
      Provides timestamp of the last update done in the template
      Returns:
      timestamp when the template was last updated
    • setLastupdated

      public void setLastupdated(Timestamp lastupdated)
      sets timestamp of the last update done in the template
      Parameters:
      lastupdated - value of the timestamp to be set
    • getLastuser

      public String getLastuser()
      Gets the last user who updated the template
      Returns:
      username of the user who last updated the template
    • setLastuser

      public void setLastuser(String lastuser)
      Sets the last user who updated the template
      Parameters:
      lastuser - username of the user
    • getCreateuser

      public String getCreateuser()
      Gets the user who created the template
      Returns:
      username of the user who created the template
    • setCreateuser

      public void setCreateuser(String createuser)
      Sets the user who created the template
      Parameters:
      createuser - username of the user who created the template
    • isOOTBTemplate

      public boolean isOOTBTemplate()
      Return true if OOTB template
      Returns:
      flag value for OOTB template
    • setOOTBTemplate

      public void setOOTBTemplate(boolean ootbtemplate)
      Sets flag for OOTB templates
      Parameters:
      true - /false as per default template
    • getStatus

      public String getStatus()
      Provides status of a template. Supported values are 'Disabled' and 'Enabled'
      Returns:
      status of a template
    • setStatus

      public void setStatus(String status)
      Sets status of a template. Supported values are 'Disabled' and 'Enabled'
      Parameters:
      status - Status of a template