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

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

See Also:
Serialized Form

Nested Class Summary
static class TSHistory.ParentType
          
Field Summary
 int itemLimit
          
Constructor Summary
TSHistory(java.lang.String id, java.lang.String curParentId, java.util.Date historyCreationDate, int itemLimit, java.lang.String parentTitle, java.lang.String author)
          
Method Summary
 void addHistoryItems(TSHistoryItem item)
          
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemLimit

Constructor Detail

TSHistory

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

TSHistory

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

getHistoryList

public java.util.LinkedList<TSHistoryItem> getHistoryList()

getParentType

public TSHistory.ParentType getParentType()

setParentType

public void setParentType(TSHistory.ParentType parentType)

getParentId

public java.lang.String getParentId()

setParentId

public void setParentId(java.lang.String parentId)

addHistoryItems

public void addHistoryItems(TSHistoryItem item)

removeAllHistoryItems

public void removeAllHistoryItems(java.util.List<TSHistoryItem> items)

getHistoryCreationDate

public java.util.Date getHistoryCreationDate()

setHistoryCreationDate

public void setHistoryCreationDate(java.util.Date historyCreationDate)

getId

public java.lang.String getId()

getParentName

public java.lang.String getParentName()

setParentName

public void setParentName(java.lang.String parentName)

getItemLimit

public int getItemLimit()

setItemLimit

public void setItemLimit(int itemLimit)

getAuthor

public java.lang.String getAuthor()

setAuthor

public void setAuthor(java.lang.String author)

store

public void store()
           throws java.lang.Exception
Throws:
java.lang.Exception

retrieveHistory

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