public class ManualWorkOrder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ManualWorkOrder.OperationType
The enum to represent the various types of valid operations.
|
| Constructor and Description |
|---|
ManualWorkOrder(Participant participant,
long escalationPeriod,
Participant escalationParticipant,
boolean defaultNotification,
java.util.HashMap<ManualWorkOrder.OperationType,NotificationTemplate> operationNotification)
Create a ManualWorkOrder object.
|
| Modifier and Type | Method and Description |
|---|---|
static ManualWorkOrder.OperationType[] |
getAllOperations()
Retrieves all the allowed operations as an array of type OperationType.
|
Participant |
getEscalationParticipant()
Retrieves the participant involved when the activity is escalated.
|
long |
getEscalationPeriod()
Retrieves the escalation period.
|
NotificationTemplate |
getNotification(ManualWorkOrder.OperationType operation)
Retrieves the notification template associated with the operation.
|
java.util.Map<ManualWorkOrder.OperationType,NotificationTemplate> |
getOperationNotifications()
Retrieves the map of operation notification template pairs.
|
Participant |
getParticipant()
Retrieves the participant associated with the work order.
|
boolean |
isUseDefaultNotification()
Specifies whether the default notification is being used.
|
void |
setEscalationParticipant(Participant escalationParticipant)
Sets the participant when the activity is escalated.
|
void |
setEscalationPeriod(long escalationPeriod)
Sets the escalation period.
|
void |
setNotification(ManualWorkOrder.OperationType operation,
NotificationTemplate notification)
Sets the notification template for the specified operation.
|
void |
setOperationNotification(java.util.HashMap<ManualWorkOrder.OperationType,NotificationTemplate> operationNotification)
Sets the map of operation notifications.
|
void |
setParticipant(Participant participant)
Sets the participant to the specified value.
|
void |
setUseDefaultNotification(boolean useDefaultNotification)
Sets whether to use the default notification.
|
public ManualWorkOrder(Participant participant, long escalationPeriod, Participant escalationParticipant, boolean defaultNotification, java.util.HashMap<ManualWorkOrder.OperationType,NotificationTemplate> operationNotification) throws com.ibm.itim.apps.ejb.service.InvalidOperationException
participant - - Specifies the participant involved in the activity.escalationPeriod - - Specifies the escalation period for the activity.escalationParticipant - - Specifies ther participant involved when the activity escalates.defaultNotification - - Specifies whether to use default notification.operationNotification - - Specifies the map of notification operations.com.ibm.itim.apps.ejb.service.InvalidOperationExceptionpublic Participant getParticipant()
Participantpublic long getEscalationPeriod()
public Participant getEscalationParticipant()
Participantpublic NotificationTemplate getNotification(ManualWorkOrder.OperationType operation)
operation - OperationType associated with the NotificationTemplateNotificationTemplatepublic java.util.Map<ManualWorkOrder.OperationType,NotificationTemplate> getOperationNotifications()
public boolean isUseDefaultNotification()
public void setUseDefaultNotification(boolean useDefaultNotification)
useDefaultNotification - - boolean Specifies whether to use the default notification.public void setParticipant(Participant participant)
participant - - The participant value to set.public void setEscalationPeriod(long escalationPeriod)
escalationPeriod - - Specifies the escalation period to set.public void setEscalationParticipant(Participant escalationParticipant)
escalationParticipant - - Specifies the participant to be set when the activity is escalated.public void setNotification(ManualWorkOrder.OperationType operation, NotificationTemplate notification) throws com.ibm.itim.apps.ejb.service.InvalidOperationException
operation - - Specifies the OperationType to setnotification - - Specifies the NotificationTemplate to setcom.ibm.itim.apps.ejb.service.InvalidOperationExceptionpublic void setOperationNotification(java.util.HashMap<ManualWorkOrder.OperationType,NotificationTemplate> operationNotification) throws com.ibm.itim.apps.ejb.service.InvalidOperationException
operationNotification - com.ibm.itim.apps.ejb.service.InvalidOperationExceptionpublic static ManualWorkOrder.OperationType[] getAllOperations()