KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > policyframework > forms > AbstractResourcePolicySelectionForm


1 /*
2  * SSL-Explorer
3  *
4  * Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */

19             
20 package com.sslexplorer.policyframework.forms;
21
22 import javax.servlet.http.HttpServletRequest JavaDoc;
23
24 import org.apache.struts.action.ActionMapping;
25
26 import com.sslexplorer.input.MultiSelectDataSource;
27 import com.sslexplorer.policyframework.ResourcePermissionDelegatedPoliciesDatasource;
28
29 /**
30  * Abstract implementation of a {@link AbstractWizardPolicySelectionForm}.
31  * abstact implementation of the policy selection form.
32  *
33  * @author James D Robinson <a HREF="mailto:james@3sp.com">&lt;james@3sp.com&gt;</a>
34  *
35  */

36 public class AbstractResourcePolicySelectionForm extends AbstractWizardPolicySelectionForm {
37
38     /**
39      * @param nextAvailable
40      * @param previousAvailable
41      * @param page
42      * @param focussedField
43      * @param autoComplete
44      * @param finishAvailable
45      * @param pageName
46      * @param resourceBundle
47      * @param resourcePrefix
48      * @param stepIndex
49      */

50     public AbstractResourcePolicySelectionForm(boolean nextAvailable, boolean previousAvailable, String JavaDoc page, String JavaDoc focussedField,
51                     boolean autoComplete, boolean finishAvailable, String JavaDoc pageName, String JavaDoc resourceBundle, String JavaDoc resourcePrefix,
52                     int stepIndex) {
53         super(nextAvailable, previousAvailable, page, focussedField, autoComplete, finishAvailable, pageName, resourceBundle,
54                         resourcePrefix, stepIndex);
55     }
56
57     public MultiSelectDataSource createDatasource(ActionMapping mapping, HttpServletRequest JavaDoc request) {
58         try {
59             return new ResourcePermissionDelegatedPoliciesDatasource(null);
60         } catch (Exception JavaDoc e) {
61             throw new Error JavaDoc("Failed to create datasource for list of available policies.", e);
62         }
63     }
64
65 }
66
Popular Tags