1 package org.jahia.services.sites; 2 3 import java.io.Serializable ; 4 5 21 22 public class SiteLanguageMapping implements Serializable { 23 private int id = -1; 24 private String fromLanguageCode; 25 private String toLanguageCode; 26 private int siteID; 27 28 39 protected SiteLanguageMapping (int id, int siteID, String fromLanguageCode, 40 String toLanguageCode) { 41 this.id = id; 42 this.siteID = siteID; 43 this.fromLanguageCode = fromLanguageCode; 44 this.toLanguageCode = toLanguageCode; 45 } 46 47 57 public SiteLanguageMapping (int siteID, String fromLanguageCode, String toLanguageCode) { 58 this.siteID = siteID; 59 this.fromLanguageCode = fromLanguageCode; 60 this.toLanguageCode = toLanguageCode; 61 } 62 63 69 public int getId () { 70 return id; 71 } 72 73 80 protected void setId (int id) { 81 this.id = id; 82 } 83 84 90 public void setSiteID (int siteID) { 91 this.siteID = siteID; 92 } 93 94 100 public int getSiteID () { 101 return siteID; 102 } 103 104 112 public void setFromLanguageCode (String fromLanguageCode) { 113 this.fromLanguageCode = fromLanguageCode; 114 } 115 116 123 public String getFromLanguageCode () { 124 return fromLanguageCode; 125 } 126 127 135 public void setToLanguageCode (String toLanguageCode) { 136 this.toLanguageCode = toLanguageCode; 137 } 138 139 145 public String getToLanguageCode () { 146 return toLanguageCode; 147 } 148 } 149 | Popular Tags |