1 package org.jahia.services.search; 2 3 import org.jahia.data.fields.*; 4 import org.jahia.services.fields.*; 5 6 9 class RemovedField extends JahiaIndexableDocumentImpl { 10 int id; 11 int jahiaID; 12 int versionID; 13 int workflowState; 14 String languageCode; 15 16 22 27 28 33 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 getLanguageCode () { 80 return languageCode; 81 } 82 83 } 84 | Popular Tags |