KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > log > impl > SessionLogDataImpl


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portal.log.impl;
6
7 import java.util.List JavaDoc ;
8 import org.exoplatform.services.portal.log.SessionLogData;
9 import com.thoughtworks.xstream.XStream;
10 /**
11  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
12  * @since Dec 2, 2004
13  * @version $Id$
14  * @hibernate.class table="EXO_SESSION_LOG"
15  * polymorphism="explicit"
16  * @hibernate.cache usage="read-write"
17  */

18 public class SessionLogDataImpl extends SessionLogDataDescriptionImpl implements SessionLogData {
19   transient private List JavaDoc history ;
20  
21   /**
22    * @hibernate.property length="65535" type="org.exoplatform.services.database.impl.TextClobType"
23    **/

24   public String JavaDoc getData() throws Exception JavaDoc {
25     XStream xstream = PortalLogServiceImpl.getXStreamInstance() ;
26     String JavaDoc xml = xstream.toXML(history) ;
27     return xml ;
28     
29   }
30   
31   public void setData(String JavaDoc s) {
32     XStream xstream = PortalLogServiceImpl.getXStreamInstance() ;
33     history = (List JavaDoc) xstream.fromXML(s) ;
34   }
35   
36   public List JavaDoc getActionHistory() { return history ; }
37   public void setActionHistory(List JavaDoc list) { history = list ; }
38 }
Popular Tags