View Javadoc

1   /**
2    * Copyright 2005-2012 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kew.actions;
17  
18  import org.kuali.rice.kew.engine.BlanketApproveEngine;
19  import org.kuali.rice.kim.api.identity.principal.PrincipalContract;
20  
21  
22  /**
23   * Used to determine store notifications to be sent in the {@link BlanketApproveEngine}.
24   *
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   */
27  public class NotificationContext {
28  
29      private String notificationRequestCode;
30      private PrincipalContract principalTakingAction;
31      private String actionTakenCode;
32      
33      public NotificationContext(String notificationRequestCode, PrincipalContract principalTakingAction, String actionTakenCode) {
34          this.notificationRequestCode = notificationRequestCode;
35          this.principalTakingAction = principalTakingAction;
36          this.actionTakenCode = actionTakenCode;
37      }
38  
39      public String getActionTakenCode() {
40          return actionTakenCode;
41      }
42  
43      public String getNotificationRequestCode() {
44          return notificationRequestCode;
45      }
46  
47      public PrincipalContract getPrincipalTakingAction() {
48          return principalTakingAction;
49      }
50      
51      
52  
53  }