org.gcube.contentmanagement.timeseriesservice.impl.history
Class TSHistory

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.history.TSHistory
All Implemented Interfaces:
Serializable

public class TSHistory
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class TSHistory.ParentType
           
 
Field Summary
 int itemLimit
           
 
Constructor Summary
TSHistory(String id, String curParentId, Date historyCreationDate, int itemLimit, String parentTitle, String author)
           
TSHistory(String id, String tsParentId, Date historyCreationDate, String parentTitle, String author)
           
 
Method Summary
 void addHistoryItems(TSHistoryItem item)
           
 String getAuthor()
           
 Date getHistoryCreationDate()
           
 LinkedList<TSHistoryItem> getHistoryList()
           
 String getId()
           
 int getItemLimit()
           
 String getParentId()
           
 String getParentName()
           
 TSHistory.ParentType getParentType()
           
 void removeAllHistoryItems(List<TSHistoryItem> items)
           
static TSHistory retrieveHistory(String id)
           
 void setAuthor(String author)
           
 void setHistoryCreationDate(Date historyCreationDate)
           
protected  void setHistoryList(LinkedList<TSHistoryItem> historyList)
           
 void setItemLimit(int itemLimit)
           
 void setParentId(String parentId)
           
 void setParentName(String parentName)
           
 void setParentType(TSHistory.ParentType parentType)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemLimit

public int itemLimit
Constructor Detail

TSHistory

public TSHistory(String id,
                 String curParentId,
                 Date historyCreationDate,
                 int itemLimit,
                 String parentTitle,
                 String author)
Parameters:
id -
curParentId -
historyCreationDate -
itemLimit -
parentName -
author -

TSHistory

public TSHistory(String id,
                 String tsParentId,
                 Date historyCreationDate,
                 String parentTitle,
                 String author)
Parameters:
id -
tsParentId -
historyCreationDate -
parentName -
author -
Method Detail

getHistoryList

public LinkedList<TSHistoryItem> getHistoryList()

setHistoryList

protected void setHistoryList(LinkedList<TSHistoryItem> historyList)

getParentType

public TSHistory.ParentType getParentType()

setParentType

public void setParentType(TSHistory.ParentType parentType)

getParentId

public String getParentId()

setParentId

public void setParentId(String parentId)

addHistoryItems

public void addHistoryItems(TSHistoryItem item)

removeAllHistoryItems

public void removeAllHistoryItems(List<TSHistoryItem> items)

getHistoryCreationDate

public Date getHistoryCreationDate()

setHistoryCreationDate

public void setHistoryCreationDate(Date historyCreationDate)

getId

public String getId()

getParentName

public String getParentName()

setParentName

public void setParentName(String parentName)

getItemLimit

public int getItemLimit()

setItemLimit

public void setItemLimit(int itemLimit)

getAuthor

public String getAuthor()

setAuthor

public void setAuthor(String author)

store

public void store()
           throws Exception
Throws:
Exception

retrieveHistory

public static TSHistory retrieveHistory(String id)
                                 throws Exception
Parameters:
id -
Returns:
Throws:
Exception


Copyright © 2012. All Rights Reserved.