KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javabb > action > LuceneIndexAction


1 /*
2  * Copyright 09/05/2005 - <a HREF="http://www.liber.ufpe.br">Liber - UFPE</a>
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, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.javabb.action;
17
18 import org.javabb.action.infra.BaseAction;
19 import org.javabb.lucene.index.Indexer;
20 import org.javabb.transaction.PostTransaction;
21
22 import com.opensymphony.xwork.Action;
23
24 /**
25  *
26  * @author <a HREF="mailto:jackganzha@dev.java.net">Marcos Pereira</a>
27  *
28  * @since 09/05/2005
29  * @version $Id$
30  *
31  */

32 public class LuceneIndexAction extends BaseAction {
33
34     private PostTransaction postTransaction;
35     private Indexer indexer;
36     
37     public String JavaDoc createIndex() {
38     
39         String JavaDoc result = Action.ERROR;
40         
41         //List posts = postTransaction.
42

43         return result;
44         
45     }
46     
47 }
48
Popular Tags