1 13 package org.jahia.services.version; 14 15 import org.jahia.services.usermanager.JahiaUser; 16 17 21 public class EntrySaveRequest implements Cloneable { 22 23 private JahiaUser theUser; private String languageCode; 26 public EntrySaveRequest (JahiaUser theUser, String languageCode) 27 { 28 this.theUser = theUser; 29 this.languageCode = languageCode; 30 } 31 32 public EntrySaveRequest (JahiaUser theUser) 33 { 34 this.theUser = theUser; 35 this.languageCode = null; 36 } 37 38 public EntrySaveRequest (String theLanguage) 39 { 40 this.theUser = null; 41 this.languageCode = theLanguage; 42 } 43 44 public Object clone() 45 { 46 return new EntrySaveRequest (theUser, languageCode); 47 } 48 49 53 public JahiaUser getUser() 54 { return theUser; } 55 56 public void setUser(JahiaUser theUser) 57 { this.theUser = theUser; } 58 59 63 public String getLanguageCode() 64 { return languageCode; } 65 66 public void setLanguageCode(String theLanguage) 67 { this.languageCode = theLanguage; } 68 69 public String toString() 70 { 71 return new String ("[SAVEREQUEST:user="+theUser+", language="+languageCode+"]"); 72 } 73 } 74 | Popular Tags |