01: /*
02: * Copyright 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: /*
17: * Created on Jul 9, 2004
18: *
19: */
20: package org.kuali.module.pdp.action.upload;
21:
22: import javax.servlet.http.HttpServletRequest;
23: import javax.servlet.http.HttpServletResponse;
24:
25: import org.apache.struts.action.ActionForm;
26: import org.apache.struts.action.ActionForward;
27: import org.apache.struts.action.ActionMapping;
28: import org.kuali.module.pdp.action.BaseAction;
29: import org.kuali.module.pdp.service.SecurityRecord;
30:
31: /**
32: * @author jsissom
33: */
34: public class ManualUploadAction extends BaseAction {
35:
36: protected boolean isAuthorized(ActionMapping mapping,
37: ActionForm form, HttpServletRequest request,
38: HttpServletResponse response) {
39: SecurityRecord sr = getSecurityRecord(request);
40: return sr.isSubmitRole();
41: }
42:
43: protected ActionForward executeLogic(ActionMapping mapping,
44: ActionForm form, HttpServletRequest request,
45: HttpServletResponse response) throws Exception {
46: return mapping.findForward("upload");
47: }
48: }
|