Java Doc for Historian.java in  » Workflow-Engines » Bossa » com » bigbross » bossa » history » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » Bossa » com.bigbross.bossa.history 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bigbross.bossa.history.Historian

Historian
public class Historian implements Serializable(Code)
This class keeps the historical records of a Bossa engine.


author:
   BigBross Team




Constructor Summary
public  Historian(Bossa engine)
     Creates a new empty historian.

Method Summary
public  voidexportHistory(Date end, String file)
     Exports to a XML file all events that took place before the provided date.
 BossagetBossa()
     Returns the bossa engine this historian is part.
public  ListgetCaseHistory(String caseTypeId, int caseId)
     Return all events that took place until now and are related to a case.
public  ListgetCaseHistory(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.
public  ListgetCaseHistory(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.
public  ListgetCaseTypeHistory(String caseTypeId)
     Return all events that took place until now and are related to a case type.
public  ListgetCaseTypeHistory(Date start, String caseTypeId)
     Returns the events that took place after the start date, inclusive, until now and are related to a case type.
public  ListgetCaseTypeHistory(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.
public  ListgetHistory()
     Return all events that took place until now.
public  ListgetHistory(Date start)
     Returns the events that took place after the start date, inclusive, until now.
public  ListgetHistory(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.
public  ListgetResourceHistory(String resourceId)
     Return all events that took place until now and are related to a resource.
public  ListgetResourceHistory(Date start, String resourceId)
     Returns the events that took place after the start date, inclusive, until now and are related to a resource.
public  ListgetResourceHistory(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.
 voidnewEvent(Event event)
     Adds a new event to the history.
public  voidpurgeHistory(Date end)
     Removes from history all events that took place before the provided date.
 voidpurgeHistoryImpl(Date end)
     Removes from history all events that took place before the provided date.


Constructor Detail
Historian
public Historian(Bossa engine)(Code)
Creates a new empty historian.


Parameters:
  engine - the bossa engine this historian is part.





Method Detail
exportHistory
public void exportHistory(Date end, String file) throws DataTransferException(Code)
Exports to a XML file all events that took place before the provided date. Events that happened exactly at the provided date are not exported. This method complements the 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.


Parameters:
  end - the limit date for event removal.
Parameters:
  file - the name of the file.
See Also:   Historian.purgeHistory(Date)
See Also:   com.bigbross.bossa.io.EventsXMLHelper




getBossa
Bossa getBossa()(Code)
Returns the bossa engine this historian is part.

the bossa engine this historian is part.




getCaseHistory
public List getCaseHistory(String caseTypeId, int caseId)(Code)
Return all events that took place until now and are related to a case.


Parameters:
  caseTypeId - the id of the case type.
Parameters:
  caseId - the id of the case. all events that took place util now related to the case.




getCaseHistory
public List getCaseHistory(Date start, String caseTypeId, int caseId)(Code)
Returns the events that took place after the start date, inclusive, until now and are related to a case.


Parameters:
  start - the start date.
Parameters:
  caseTypeId - the id of the case type.
Parameters:
  caseId - the id of the case. the events that took place after the start date until nowrelated to the case.




getCaseHistory
public List getCaseHistory(Date start, Date end, String caseTypeId, int caseId)(Code)
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.


Parameters:
  start - the start date.
Parameters:
  end - the end date.
Parameters:
  caseTypeId - the id of the case type.
Parameters:
  caseId - the id of the case. the events that took place between the two dates, relatedto the case.




getCaseTypeHistory
public List getCaseTypeHistory(String caseTypeId)(Code)
Return all events that took place until now and are related to a case type.


Parameters:
  caseTypeId - the id of the case type. all events that took place until now related to the case type.




getCaseTypeHistory
public List getCaseTypeHistory(Date start, String caseTypeId)(Code)
Returns the events that took place after the start date, inclusive, until now and are related to a case type.


Parameters:
  start - the start date.
Parameters:
  caseTypeId - the id of the case type. the events that took place after the start date until nowrelated to the case type.




getCaseTypeHistory
public List getCaseTypeHistory(Date start, Date end, String caseTypeId)(Code)
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.


Parameters:
  start - the start date.
Parameters:
  end - the end date.
Parameters:
  caseTypeId - the id of the case type. the events that took place between the two dates, related tothe case type.




getHistory
public List getHistory()(Code)
Return all events that took place until now.

all events that took place until now.




getHistory
public List getHistory(Date start)(Code)
Returns the events that took place after the start date, inclusive, until now.


Parameters:
  start - the start date. the events that took place after the start date until now.




getHistory
public List getHistory(Date start, Date end)(Code)
Returns the events that took place between the start date and the end date, including the start date and excluding the end date.


Parameters:
  start - the start date.
Parameters:
  end - the end date. the events that took place between the two dates.




getResourceHistory
public List getResourceHistory(String resourceId)(Code)
Return all events that took place until now and are related to a resource.


Parameters:
  resourceId - the id of the resource. all events that took place until now related to the resource.




getResourceHistory
public List getResourceHistory(Date start, String resourceId)(Code)
Returns the events that took place after the start date, inclusive, until now and are related to a resource.


Parameters:
  start - the start date.
Parameters:
  resourceId - the id of the resource. the events that took place after the start date until nowrelated to the resource.




getResourceHistory
public List getResourceHistory(Date start, Date end, String resourceId)(Code)
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.


Parameters:
  start - the start date.
Parameters:
  end - the end date.
Parameters:
  resourceId - the id of the resource. the events that took place between the two dates, related tothe resource.




newEvent
void newEvent(Event event)(Code)
Adds a new event to the history.


Parameters:
  event - the new event.




purgeHistory
public void purgeHistory(Date end) throws BossaException(Code)
Removes from history all events that took place before the provided date. Events that happened exactly at the provided date are not removed.


Parameters:
  end - the limit date for event removal.
exception:
  PersistenceException - if an error occours when making theexecution of this method persistent.




purgeHistoryImpl
void purgeHistoryImpl(Date end)(Code)
Removes from history all events that took place before the provided date. Events that happened exactly at the provided date are not removed.

This method does not create a transaction in the prevalent system. The execution of this method will not be persistent unless it is called inside an appropriate transaction.


Parameters:
  end - the limit date for event removal.




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.