public class PopulateNotificationTemplates
extends java.lang.Object
implements java.io.Serializable
This class does not attempt to undo the results of any previous population. Multiple executions of this class will result in multiple template versions existing in the Notification Framework, with the most recent version being the active version.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
PopulateNotificationTemplates()
Constructs a new class instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doTemplate(java.io.File file)
Adds the template for the given file to the Notification Framework.
|
static void |
main(java.lang.String[] args)
The main entry point for when the class is started from a command line.
|
protected boolean |
populate()
Performs population processing.
|
protected void |
recurseFolder(java.io.File folder)
Recurses the files and folders in the given folder.
|
private static final long serialVersionUID
public PopulateNotificationTemplates()
protected boolean populate()
true
if successful, otherwise false
.protected void recurseFolder(java.io.File folder) throws java.lang.Exception
folder
- (File) The folder to recurse.java.lang.Exception
- - if an error occurs during processing.protected void doTemplate(java.io.File file) throws java.lang.Exception
file
- (File) The file to recurse.java.lang.Exception
- - if an error occurs during processing.public static void main(java.lang.String[] args)
args
- (String[]) A string array of startup parameters.