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 TypeMethodDescriptionvoidaddLocaltemplate(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 templatebooleanReturn true if OOTB templatevoidremoveLocaltemplate(LocalTemplate aLocaltemplate) To remove a locale template for given base notification templatevoidsetCreateuser(String createuser) Sets the user who created the templatevoidsetCreationdate(Timestamp creationdate) Sets Creation Date of the templatevoidsetDatalevel(Double datalevel) Sets Data Level of the templatevoidsetDatalevel(String datalevel) Sets Data Level of the templatevoidsetDescription(String description) Set description for the templatevoidsetEventname(String eventname) Adds event name to the templatevoidSets ID of the templatevoidSets ID of the templatevoidsetLastupdated(Timestamp lastupdated) sets timestamp of the last update done in the templatevoidsetLastuser(String lastuser) Sets the last user who updated the templatevoidsetLocaltemplateCollection(Map<String, LocalTemplate> localtemplateCollection) Adds map of locales and their corresponding parameters to the templatevoidsetOOTBTemplate(boolean ootbtemplate) Sets flag for OOTB templatesvoidsetSnmpsupported(boolean flag) Specify support for SNMPvoidsetSnmpsupported(String flag) Specify support for SNMPvoidSets status of a template.voidsetTemplatename(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- ObjectLocaleTemplatecontaining 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
mapof locale name toLocaleTemplatecontaining 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- ObjectLocaleTemplatecontaining 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
-