Package oracle.iam.notification.vo
Class NotificationTemplate
java.lang.Object
oracle.iam.notification.vo.NotificationTemplate
- All Implemented Interfaces:
Serializable
This object represent a notification template
- Author:
- saggarwa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocaltemplate
(String locale, LocalTemplate aLocaltemplate) To add a locale template for given base notification templateGets the user who created the templateProvides Creation Date of the templateProvides Data Level of the templateProvides description for the templateProvides event name associated with the templategetId()
Provides ID of the templateProvides timestamp of the last update done in the templateGets the last user who updated the templateProvides a map of all locales associated with the template and their corresponding parametersProvides a character to specify whether SNMP supported or not.Provides status of a template.Provides name of the templateboolean
Return true if OOTB templatevoid
removeLocaltemplate
(LocalTemplate aLocaltemplate) To remove a locale template for given base notification templatevoid
setCreateuser
(String createuser) Sets the user who created the templatevoid
setCreationdate
(Timestamp creationdate) Sets Creation Date of the templatevoid
setDatalevel
(Double datalevel) Sets Data Level of the templatevoid
setDatalevel
(String datalevel) Sets Data Level of the templatevoid
setDescription
(String description) Set description for the templatevoid
setEventname
(String eventname) Adds event name to the templatevoid
Sets ID of the templatevoid
Sets ID of the templatevoid
setLastupdated
(Timestamp lastupdated) sets timestamp of the last update done in the templatevoid
setLastuser
(String lastuser) Sets the last user who updated the templatevoid
setLocaltemplateCollection
(Map<String, LocalTemplate> localtemplateCollection) Adds map of locales and their corresponding parameters to the templatevoid
setOOTBTemplate
(boolean ootbtemplate) Sets flag for OOTB templatesvoid
setSnmpsupported
(boolean flag) Specify support for SNMPvoid
setSnmpsupported
(String flag) Specify support for SNMPvoid
Sets status of a template.void
setTemplatename
(String templatename) Sets name for the template
-
Constructor Details
-
NotificationTemplate
public NotificationTemplate()Default Constructor
-
-
Method Details
-
addLocaltemplate
To add a locale template for given base notification template- Parameters:
locale
- Locale name to be added to the templateaLocaltemplate
- ObjectLocaleTemplate
containing parameter specific to the locale to be added
-
getDescription
Provides description for the template- Returns:
- description associated with the template
-
getId
Provides ID of the template- Returns:
- ID of the template
-
getLocaltemplateCollection
Provides a map of all locales associated with the template and their corresponding parameters- Returns:
- A
map
of locale name toLocaleTemplate
containing parameter specific to it
-
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
Provides name of the template- Returns:
- name of the template
-
removeLocaltemplate
To remove a locale template for given base notification template- Parameters:
aLocaltemplate
- ObjectLocaleTemplate
containing parameter specific to the locale to be removed
-
setDescription
Set description for the template- Parameters:
description
- description for the template
-
setId
Sets ID of the template- Parameters:
id
- The value of id
-
setId
Sets ID of the template- Parameters:
sid
- The value of id
-
getEventname
Provides event name associated with the template- Returns:
- event name
-
setEventname
Adds event name to the template- Parameters:
eventname
- event name to be associated with the template
-
setLocaltemplateCollection
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
Specify support for SNMP- Parameters:
flag
- custom flag to be set
-
setTemplatename
Sets name for the template- Parameters:
templatename
- name to be given to the template
-
getDatalevel
Provides Data Level of the template- Returns:
- data level of the template
-
setDatalevel
Sets Data Level of the template- Parameters:
datalevel
- value of the data level to be set
-
setDatalevel
Sets Data Level of the template- Parameters:
datalevel
- value of the data level to be set
-
getCreationdate
Provides Creation Date of the template- Returns:
- timestamp at which the template was created
-
setCreationdate
Sets Creation Date of the template- Parameters:
creationdate
- value of timestamp to be set
-
getLastupdated
Provides timestamp of the last update done in the template- Returns:
- timestamp when the template was last updated
-
setLastupdated
sets timestamp of the last update done in the template- Parameters:
lastupdated
- value of the timestamp to be set
-
getLastuser
Gets the last user who updated the template- Returns:
- username of the user who last updated the template
-
setLastuser
Sets the last user who updated the template- Parameters:
lastuser
- username of the user
-
getCreateuser
Gets the user who created the template- Returns:
- username of the user who created the template
-
setCreateuser
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
Provides status of a template. Supported values are 'Disabled' and 'Enabled'- Returns:
- status of a template
-
setStatus
Sets status of a template. Supported values are 'Disabled' and 'Enabled'- Parameters:
status
- Status of a template
-