|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bigbross.bossa.history.Historian
This class keeps the historical records of a Bossa engine.
| Constructor Summary | |
Historian(Bossa engine)
Creates a new empty historian. |
|
| Method Summary | |
void |
exportHistory(Date end,
String file)
Exports to a XML file all events that took place before the provided date. |
List |
getCaseHistory(Date start,
Date end,
String caseTypeId,
int caseId)
Returns the events that took place between the start date and the end date, including the start date and excluding the end date, and are related to a case. |
List |
getCaseHistory(Date start,
String caseTypeId,
int caseId)
Returns the events that took place after the start date, inclusive, until now and are related to a case. |
List |
getCaseHistory(String caseTypeId,
int caseId)
Return all events that took place until now and are related to a case. |
List |
getCaseTypeHistory(Date start,
Date end,
String caseTypeId)
Returns the events that took place between the start date and the end date, including the start date and excluding the end date, and are related to a case type. |
List |
getCaseTypeHistory(Date start,
String caseTypeId)
Returns the events that took place after the start date, inclusive, until now and are related to a case type. |
List |
getCaseTypeHistory(String caseTypeId)
Return all events that took place until now and are related to a case type. |
List |
getHistory()
Return all events that took place until now. |
List |
getHistory(Date start)
Returns the events that took place after the start date, inclusive, until now. |
List |
getHistory(Date start,
Date end)
Returns the events that took place between the start date and the end date, including the start date and excluding the end date. |
List |
getResourceHistory(Date start,
Date end,
String resourceId)
Returns the events that took place between the start date and the end date, including the start date and excluding the end date, and are related to a resource. |
List |
getResourceHistory(Date start,
String resourceId)
Returns the events that took place after the start date, inclusive, until now and are related to a resource. |
List |
getResourceHistory(String resourceId)
Return all events that took place until now and are related to a resource. |
void |
purgeHistory(Date end)
Removes from history all events that took place before the provided date. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Historian(Bossa engine)
engine - the bossa engine this historian is part.| Method Detail |
public List getHistory()
public List getHistory(Date start)
start - the start date.
public List getHistory(Date start,
Date end)
start - the start date.end - the end date.
public List getCaseTypeHistory(String caseTypeId)
caseTypeId - the id of the case type.
public List getCaseTypeHistory(Date start,
String caseTypeId)
start - the start date.caseTypeId - the id of the case type.
public List getCaseTypeHistory(Date start,
Date end,
String caseTypeId)
start - the start date.end - the end date.caseTypeId - the id of the case type.
public List getCaseHistory(String caseTypeId,
int caseId)
caseTypeId - the id of the case type.caseId - the id of the case.
public List getCaseHistory(Date start,
String caseTypeId,
int caseId)
start - the start date.caseTypeId - the id of the case type.caseId - the id of the case.
public List getCaseHistory(Date start,
Date end,
String caseTypeId,
int caseId)
start - the start date.end - the end date.caseTypeId - the id of the case type.caseId - the id of the case.
public List getResourceHistory(String resourceId)
resourceId - the id of the resource.
public List getResourceHistory(Date start,
String resourceId)
start - the start date.resourceId - the id of the resource.
public List getResourceHistory(Date start,
Date end,
String resourceId)
start - the start date.end - the end date.resourceId - the id of the resource.
public void purgeHistory(Date end)
throws BossaException
end - the limit date for event removal.
PersistenceException - if an error occours when making the
execution of this method persistent.
BossaException
public void exportHistory(Date end,
String file)
throws DataTransferException
purgeHistory method,
providing a way to save events before purging them.
The format of the exported file is the same used by the
EventsXMLHelper class. This class may also be used to
export any event list obtained from the other historian methods.
end - the limit date for event removal.file - the name of the file.
DataTransferExceptionpurgeHistory(Date),
EventsXMLHelper
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||