01: package org.mdarad.framework.index;
02:
03: import java.util.Locale;
04: import java.util.Map;
05:
06: import org.apache.lucene.document.Document;
07:
08: import org.dataisland.primitives.bean.Entity;
09: import org.dataisland.primitives.bean.LocalizationContext;
10: import org.dataisland.primitives.exception.LocalizationException;
11:
12: abstract public class AbstractEntityIndexFacade {
13: final public static String DOCUMENT_FIELD_KEY_PATH = "path";
14: final public static String DOCUMENT_FIELD_KEY_ID_NAME = "idName";
15: final public static String DOCUMENT_FIELD_KEY_ID_VALUE = "idValue";
16: final public static String DOCUMENT_FIELD_KEY_CONTENTS = "contents";
17: final public static String DOCUMENT_FIELD_KEY_ROLE = "contents";
18: final public static String DOCUMENT_FIELD_KEY_TITLE = "title";
19:
20: abstract public Document getEntityDocument(Entity entity,
21: Locale locale) throws LocalizationException,
22: IndexationException;
23:
24: abstract public Map getEntityDocuments(
25: LocalizationContext localizationContext)
26: throws LocalizationException, IndexationException;
27: }
|