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: * Created on Apr 8, 2003
20: */
21: package org.apache.roller.ui.authoring.struts.formbeans;
22:
23: import org.apache.roller.RollerException;
24: import org.apache.roller.pojos.BookmarkData;
25: import org.apache.roller.ui.authoring.struts.forms.BookmarkForm;
26:
27: /**
28: * Extends the BookmarkForm so that additional properties may be added.
29: * These properties are not persistent and are only needed for the UI.
30: *
31: * @struts.form name="bookmarkFormEx"
32: */
33: public class BookmarkFormEx extends BookmarkForm {
34: private String mFolderId = null;
35:
36: /**
37: *
38: */
39: public BookmarkFormEx() {
40: super ();
41: }
42:
43: /**
44: * @param dataHolder
45: */
46: public BookmarkFormEx(BookmarkData dataHolder,
47: java.util.Locale locale) throws RollerException {
48: copyFrom(dataHolder, locale);
49: }
50:
51: /**
52: * @return
53: */
54: public String getFolderId() {
55: return mFolderId;
56: }
57:
58: /**
59: * @param string
60: */
61: public void setFolderId(String string) {
62: mFolderId = string;
63: }
64:
65: /**
66: * @see org.apache.roller.ui.authoring.struts.forms.BookmarkForm#setData(org.apache.roller.pojos.BookmarkData)
67: */
68: public void copyFrom(BookmarkData dataHolder,
69: java.util.Locale locale) throws RollerException {
70: super.copyFrom(dataHolder, locale);
71: mFolderId = dataHolder.getFolder().getId();
72: }
73: }
|