01: /*
02: * Copyright 2005-2006 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: package edu.iu.uis.eden.routetemplate.web;
18:
19: import java.util.ArrayList;
20: import java.util.List;
21:
22: import org.apache.commons.lang.StringUtils;
23: import org.apache.struts.action.ActionForm;
24:
25: import edu.iu.uis.eden.EdenConstants;
26: import edu.iu.uis.eden.util.Utilities;
27:
28: /**
29: * A Struts ActionForm for the {@link RuleQuickLinksAction}.
30: *
31: * @see RuleQuickLinksAction
32: *
33: * @author rkirkend
34: */
35: public class RuleQuickLinksForm extends ActionForm {
36:
37: private static final long serialVersionUID = 3632283509506923869L;
38: private String rootDocTypeName;
39: private List rootDocuments;
40: private List documentTypeQuickLinksStructures = new ArrayList();
41:
42: public String getRootDocTypeName() {
43: return rootDocTypeName;
44: }
45:
46: public void setRootDocTypeName(String rootDocTypeName) {
47: this .rootDocTypeName = rootDocTypeName;
48: }
49:
50: public List getRootDocuments() {
51: return rootDocuments;
52: }
53:
54: public boolean isUseOneStartPortalUrl() {
55: String useOneStartPortalUrl = Utilities
56: .getApplicationConstant(EdenConstants.APP_CONST_USE_ONESTART_URL);
57: return (StringUtils.isEmpty(useOneStartPortalUrl) ? false
58: : new Boolean(useOneStartPortalUrl).booleanValue());
59: }
60:
61: public List getDocumentTypeQuickLinksStructures() {
62: return this .documentTypeQuickLinksStructures;
63: }
64:
65: public void setDocumentTypeQuickLinksStructures(
66: List documentTypeQuickLinksStructures) {
67: this.documentTypeQuickLinksStructures = documentTypeQuickLinksStructures;
68: }
69:
70: }
|