01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.purap.web.struts.action;
17:
18: import org.kuali.core.web.struts.action.KualiTransactionalDocumentActionBase;
19: import org.kuali.core.web.struts.form.KualiDocumentFormBase;
20: import org.kuali.module.purap.PurapConstants;
21: import org.kuali.module.purap.document.AssignContractManagerDocument;
22:
23: import edu.iu.uis.eden.exception.WorkflowException;
24:
25: /**
26: * Struts Action for Contract Manager Assignment document.
27: */
28: public class AssignContractManagerAction extends
29: KualiTransactionalDocumentActionBase {
30: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
31: .getLogger(AssignContractManagerAction.class);
32:
33: /**
34: * Do initialization for a new <code>AssignContractManagerDocument</code>.
35: *
36: * @see org.kuali.core.web.struts.action.KualiDocumentActionBase#createDocument(org.kuali.core.web.struts.form.KualiDocumentFormBase)
37: */
38: @Override
39: protected void createDocument(
40: KualiDocumentFormBase kualiDocumentFormBase)
41: throws WorkflowException {
42: super .createDocument(kualiDocumentFormBase);
43: AssignContractManagerDocument acmDocument = (AssignContractManagerDocument) kualiDocumentFormBase
44: .getDocument();
45: acmDocument
46: .getDocumentHeader()
47: .setFinancialDocumentDescription(
48: PurapConstants.ASSIGN_CONTRACT_MANAGER_DEFAULT_DESC);
49: acmDocument.populateDocumentWithRequisitions();
50: }
51: }
|