org.itracker.web.scheduler.tasks
Class ReminderNotification

java.lang.Object
  extended by org.itracker.web.scheduler.tasks.BaseJob
      extended by org.itracker.web.scheduler.tasks.ReminderNotification
All Implemented Interfaces:
org.quartz.Job, org.quartz.StatefulJob

public class ReminderNotification
extends BaseJob

This class can be used to send reminder emails to owners/admins that issues need their attention.

See Also:
SchedulableTask

Field Summary
static String DEFAULT_BASE_URL
           
static int DEFAULT_ISSUE_AGE
           
 
Constructor Summary
ReminderNotification()
           
 
Method Summary
 void performTask(String[] args)
          This method is called by the scheduler to send the reminder notifications.
 
Methods inherited from class org.itracker.web.scheduler.tasks.BaseJob
execute, getServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BASE_URL

public static final String DEFAULT_BASE_URL
See Also:
Constant Field Values

DEFAULT_ISSUE_AGE

public static final int DEFAULT_ISSUE_AGE
See Also:
Constant Field Values
Constructor Detail

ReminderNotification

public ReminderNotification()
Method Detail

performTask

public void performTask(String[] args)
This method is called by the scheduler to send the reminder notifications. The arguments can be used to configure which issues and projects are included in the notifications. The args should include as the first parameter the base url of the server including the scheme, hostname, port, and context. For example:
http://localhost:8080/itracker
If no other arguments are supplied it sends reminders to all owners/admins of unresolved issues in all projects that have not been modified in 30 days. The second element of the array can be a number that represents the number of days to use to check the last modified date. The third optional element is a number that represents the project id to limit the notifications to. A fourth optional argument is the severity to send the notification for.

Parameters:
args - optional arguments to configure the notification messages
See Also:
SchedulableTask#performTask


Copyright © 2002-2012 itracker. All Rights Reserved.