KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > search > RemovedField


1 package org.jahia.services.search;
2
3 import org.jahia.data.fields.*;
4 import org.jahia.services.fields.*;
5
6 /**
7  * This class represents a field wrapper used by the search engine
8  */

9 class RemovedField extends JahiaIndexableDocumentImpl {
10     int id;
11     int jahiaID;
12     int versionID;
13     int workflowState;
14     String JavaDoc languageCode;
15
16     /**
17      * @param siteId
18      * @param keyFieldName
19      * @param key
20      * @param fields
21      */

22     /*
23     public RemovedField (int siteId, String keyFieldName,
24                                        String key, Hashtable fields) {
25          super (siteId, keyFieldName, key, fields);
26     }*/

27
28     /**
29      * @param siteId
30      * @param key
31      * @param fields
32      */

33     /*
34     public RemovedField (int siteId, String key, Hashtable fields) {
35         super (siteId, null, key, fields);
36     }*/

37
38     public RemovedField (JahiaField theField) {
39
40         super (theField.getJahiaID (), null, null);
41
42         this.id = theField.getID ();
43         this.jahiaID = theField.getJahiaID ();
44         this.versionID = theField.getVersionID ();
45         this.workflowState = theField.getWorkflowState ();
46         this.languageCode = theField.getLanguageCode ();
47
48         this.setKey (String.valueOf (this.id));
49         this.setKeyFieldName (JahiaSearchConstant.FIELD_FIELDID);
50     }
51
52     public RemovedField (ContentField contentField) {
53
54         super (contentField.getSiteID (), null, null);
55
56         this.id = contentField.getID ();
57         this.jahiaID = contentField.getSiteID ();
58
59         this.setKey (String.valueOf (this.id));
60         this.setKeyFieldName (JahiaSearchConstant.FIELD_FIELDID);
61     }
62
63     public int getID () {
64         return id;
65     }
66
67     public int getJahiaID () {
68         return jahiaID;
69     }
70
71     public int getVersionID () {
72         return versionID;
73     }
74
75     public int getWorkflowState () {
76         return workflowState;
77     }
78
79     public String JavaDoc getLanguageCode () {
80         return languageCode;
81     }
82
83 }
84
Popular Tags