| 1 |
/* |
| 2 |
* Copyright 2004-2006 The Portal Application Laboratory Team. |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
| 6 |
* You may obtain a copy of the License at |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 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, |
| 13 |
* either express or implied. See the License for the specific language |
| 14 |
* governing permissions and limitations under the License. |
| 15 |
*/ |
| 16 |
package jp.sf.pal.wiki.web.viewer; |
| 17 |
|
| 18 |
import java.util.List; |
| 19 |
|
| 20 |
import jp.sf.pal.wiki.service.WikiContentService; |
| 21 |
|
| 22 |
import org.apache.commons.logging.Log; |
| 23 |
import org.apache.commons.logging.LogFactory; |
| 24 |
|
| 25 |
/** |
| 26 |
* @author shinsuke |
| 27 |
* |
| 28 |
*/ |
| 29 |
public class DisplayListPage { |
| 30 |
/** |
| 31 |
* Logger for this class |
| 32 |
*/ |
| 33 |
private static final Log log = LogFactory.getLog(DisplayListPage.class); |
| 34 |
|
| 35 |
/** |
| 36 |
* |
| 37 |
*/ |
| 38 |
private List wikiPageItems; |
| 39 |
|
| 40 |
private WikiContentService wikiContentService; |
| 41 |
|
| 42 |
private String pageName; |
| 43 |
|
| 44 |
/** |
| 45 |
* @return Returns the wikiPageItems. |
| 46 |
*/ |
| 47 |
public List getWikiPageItems() { |
| 48 |
return wikiPageItems; |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* @param wikiPageItems |
| 53 |
* The wikiPageItems to set. |
| 54 |
*/ |
| 55 |
public void setWikiPageItems(List wikiPageItems) { |
| 56 |
this.wikiPageItems = wikiPageItems; |
| 57 |
} |
| 58 |
|
| 59 |
/** |
| 60 |
* @return |
| 61 |
*/ |
| 62 |
public String initialize() { |
| 63 |
return null; |
| 64 |
} |
| 65 |
|
| 66 |
/** |
| 67 |
* @return |
| 68 |
*/ |
| 69 |
public String prerender() { |
| 70 |
wikiPageItems = wikiContentService.getPages(); |
| 71 |
return null; |
| 72 |
} |
| 73 |
|
| 74 |
/** |
| 75 |
* @return Returns the wikiContentService. |
| 76 |
*/ |
| 77 |
public WikiContentService getWikiContentService() { |
| 78 |
return wikiContentService; |
| 79 |
} |
| 80 |
|
| 81 |
/** |
| 82 |
* @param wikiContentService |
| 83 |
* The wikiContentService to set. |
| 84 |
*/ |
| 85 |
public void setWikiContentService(WikiContentService wikiContentService) { |
| 86 |
this.wikiContentService = wikiContentService; |
| 87 |
} |
| 88 |
|
| 89 |
/** |
| 90 |
* @return Returns the title. |
| 91 |
*/ |
| 92 |
public String getPageName() { |
| 93 |
return pageName; |
| 94 |
} |
| 95 |
|
| 96 |
/** |
| 97 |
* @param title |
| 98 |
* The title to set. |
| 99 |
*/ |
| 100 |
public void setPageName(String title) { |
| 101 |
this.pageName = title; |
| 102 |
} |
| 103 |
} |