org.alfresco.repo.workflow
Class WorkflowNotificationUtils

java.lang.Object
  extended by org.alfresco.repo.workflow.WorkflowNotificationUtils

public abstract class WorkflowNotificationUtils
extends java.lang.Object

Utility class containing methods to help when sending workflow notifications.

Since:
4.0

Field Summary
static java.lang.String ARG_WF_DESCRIPTION
           
static java.lang.String ARG_WF_DOCUMENTS
           
static java.lang.String ARG_WF_DUEDATE
           
static java.lang.String ARG_WF_ID
          Args value names
static java.lang.String ARG_WF_POOLED
           
static java.lang.String ARG_WF_PRIORITY
           
static java.lang.String ARG_WF_TITLE
           
static java.lang.String MSG_ASSIGNED_TASK
          I18N
static java.lang.String MSG_NEW_POOLED_TASK
           
static java.lang.String PROP_PACKAGE
           
static java.lang.String PROP_SEND_EMAIL_NOTIFICATIONS
          Send EMail notifications property
 
Constructor Summary
WorkflowNotificationUtils()
           
 
Method Summary
static void sendWorkflowAssignedNotificationEMail(ServiceRegistry services, java.lang.String taskId, java.lang.String[] assignedAuthorites, boolean pooled)
          Send workflow assigned email notification.
static void sendWorkflowAssignedNotificationEMail(ServiceRegistry services, java.lang.String taskId, java.lang.String assignedAuthority, boolean pooled)
          Send workflow assigned email notification.
static void sendWorkflowAssignedNotificationEMail(ServiceRegistry services, java.lang.String taskId, java.lang.String title, java.lang.String description, java.util.Date dueDate, java.lang.Integer priority, org.alfresco.service.cmr.repository.NodeRef workflowPackage, java.lang.String[] assignedAuthorites, boolean pooled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_SEND_EMAIL_NOTIFICATIONS

public static final java.lang.String PROP_SEND_EMAIL_NOTIFICATIONS
Send EMail notifications property

See Also:
Constant Field Values

PROP_PACKAGE

public static final java.lang.String PROP_PACKAGE
See Also:
Constant Field Values

MSG_ASSIGNED_TASK

public static final java.lang.String MSG_ASSIGNED_TASK
I18N

See Also:
Constant Field Values

MSG_NEW_POOLED_TASK

public static final java.lang.String MSG_NEW_POOLED_TASK
See Also:
Constant Field Values

ARG_WF_ID

public static final java.lang.String ARG_WF_ID
Args value names

See Also:
Constant Field Values

ARG_WF_TITLE

public static final java.lang.String ARG_WF_TITLE
See Also:
Constant Field Values

ARG_WF_DESCRIPTION

public static final java.lang.String ARG_WF_DESCRIPTION
See Also:
Constant Field Values

ARG_WF_DUEDATE

public static final java.lang.String ARG_WF_DUEDATE
See Also:
Constant Field Values

ARG_WF_PRIORITY

public static final java.lang.String ARG_WF_PRIORITY
See Also:
Constant Field Values

ARG_WF_POOLED

public static final java.lang.String ARG_WF_POOLED
See Also:
Constant Field Values

ARG_WF_DOCUMENTS

public static final java.lang.String ARG_WF_DOCUMENTS
See Also:
Constant Field Values
Constructor Detail

WorkflowNotificationUtils

public WorkflowNotificationUtils()
Method Detail

sendWorkflowAssignedNotificationEMail

public static void sendWorkflowAssignedNotificationEMail(ServiceRegistry services,
                                                         java.lang.String taskId,
                                                         java.lang.String title,
                                                         java.lang.String description,
                                                         java.util.Date dueDate,
                                                         java.lang.Integer priority,
                                                         org.alfresco.service.cmr.repository.NodeRef workflowPackage,
                                                         java.lang.String[] assignedAuthorites,
                                                         boolean pooled)
Parameters:
services -
taskId -
title -
description -
dueDate -
priority -
workflowPackage -
assignedAuthorites -
pooled -

sendWorkflowAssignedNotificationEMail

public static void sendWorkflowAssignedNotificationEMail(ServiceRegistry services,
                                                         java.lang.String taskId,
                                                         java.lang.String[] assignedAuthorites,
                                                         boolean pooled)
Send workflow assigned email notification.

Parameters:
services - service registry
taskId - workflow global task id
assignedAuthorites - assigned authorities
pooled - true if pooled task, false otherwise

sendWorkflowAssignedNotificationEMail

public static void sendWorkflowAssignedNotificationEMail(ServiceRegistry services,
                                                         java.lang.String taskId,
                                                         java.lang.String assignedAuthority,
                                                         boolean pooled)
Send workflow assigned email notification.

Parameters:
services - service registry
taskId - workflow global task id
assignedAuthority - assigned authority
pooled - true if pooled task, false otherwise


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.