01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: // Created on Jan 18, 2007
18: package edu.iu.uis.eden.mail;
19:
20: import edu.iu.uis.eden.clientapp.vo.ActionRequestVO;
21: import edu.iu.uis.eden.clientapp.vo.RouteHeaderVO;
22: import edu.iu.uis.eden.plugin.attributes.CustomEmailAttribute;
23:
24: /**
25: * Test CustomEmailAttribute for EmailMessageTestCase
26: * @author Aaron Hamid (arh14 at cornell dot edu)
27: */
28: public class EmailMessageTestCaseCustomEmailAttribute implements
29: CustomEmailAttribute {
30:
31: private ActionRequestVO actionRequestVO;
32: private RouteHeaderVO routeHeaderVO;
33:
34: public ActionRequestVO getActionRequestVO() {
35: return this .actionRequestVO;
36: }
37:
38: public String getCustomEmailBody() throws Exception {
39: return "CUSTOM EMAIL BODY";
40: }
41:
42: public String getCustomEmailSubject() throws Exception {
43: return "CUSTOM EMAIL SUBJECT";
44: }
45:
46: public RouteHeaderVO getRouteHeaderVO() {
47: return this .routeHeaderVO;
48: }
49:
50: public void setActionRequestVO(ActionRequestVO actionRequestVO) {
51: this .actionRequestVO = actionRequestVO;
52: this .actionRequestVO.setActionRequestId(new Long(-1));
53: }
54:
55: public void setRouteHeaderVO(RouteHeaderVO routeHeaderVO) {
56: this .routeHeaderVO = routeHeaderVO;
57: this .routeHeaderVO.setAppDocId("setByEmailComp");
58: }
59: }
|