01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. The ASF licenses this file to You
04: * under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
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. For additional information regarding
15: * copyright in this work, please see the NOTICE file in the top level
16: * directory of this distribution.
17: */
18:
19: package org.apache.roller.ui.authoring.struts.formbeans;
20:
21: import org.apache.roller.RollerException;
22: import org.apache.roller.pojos.WeblogCategoryData;
23: import org.apache.roller.ui.authoring.struts.forms.WeblogCategoryForm;
24:
25: /**
26: * @struts.form name="categoriesForm"
27: */
28: public class CategoriesForm extends WeblogCategoryForm {
29: private String mParentId = null;
30: private boolean mMoveContents = false;
31: private String mMoveToCategoryId = null;
32: private String[] mSelectedCategories = null;
33:
34: public CategoriesForm() {
35: super ();
36: }
37:
38: public CategoriesForm(WeblogCategoryData catData,
39: java.util.Locale locale) throws RollerException {
40: super (catData, locale);
41: }
42:
43: public String getParentId() {
44: return mParentId;
45: }
46:
47: public void setParentId(String parentId) {
48: mParentId = parentId;
49: }
50:
51: //-------------------------------------------------- Property moveContents
52:
53: /** If true then contents should be moved when this Category is removed */
54: public boolean getMoveContents() {
55: return mMoveContents;
56: }
57:
58: /** If true then contents should be moved when this Category is removed */
59: public void setMoveContents(boolean flag) {
60: mMoveContents = flag;
61: }
62:
63: //----------------------------------------------- Property moveToCategoryId
64:
65: /** Category where contents should be moved if this Category is removed */
66: public String getMoveToCategoryId() {
67: return mMoveToCategoryId;
68: }
69:
70: /** Category where contents should be moved if this Category is removed */
71: public void setMoveToCategoryId(String id) {
72: mMoveToCategoryId = id;
73: }
74:
75: //--------------------------------------------- Property selectedCategories
76:
77: /** Get selected Categories */
78: public String[] getSelectedCategories() {
79: return mSelectedCategories;
80: }
81:
82: /** Set selected Categories */
83: public void setSelectedCategories(String[] f) {
84: mSelectedCategories = f;
85: }
86: }
|