1 5 package org.exoplatform.services.portal.log.impl; 6 7 import java.util.List ; 8 import org.exoplatform.services.portal.log.SessionLogData; 9 import com.thoughtworks.xstream.XStream; 10 18 public class SessionLogDataImpl extends SessionLogDataDescriptionImpl implements SessionLogData { 19 transient private List history ; 20 21 24 public String getData() throws Exception { 25 XStream xstream = PortalLogServiceImpl.getXStreamInstance() ; 26 String xml = xstream.toXML(history) ; 27 return xml ; 28 29 } 30 31 public void setData(String s) { 32 XStream xstream = PortalLogServiceImpl.getXStreamInstance() ; 33 history = (List ) xstream.fromXML(s) ; 34 } 35 36 public List getActionHistory() { return history ; } 37 public void setActionHistory(List list) { history = list ; } 38 } | Popular Tags |