Java Doc for CmsPublishJobInfoBean.java in  » Content-Management-System » opencms » org » opencms » publish » 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 » Content Management System » opencms » org.opencms.publish 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.publish.CmsPublishJobInfoBean

CmsPublishJobInfoBean
final public class CmsPublishJobInfoBean (Code)
Publish job information bean.


author:
   Michael Moossen
version:
   $Revision: 1.5 $
since:
   6.5.5



Field Summary
final public static  intC_PUBLISH_FLAG
     The flag used to indicate a direct publish job.

Constructor Summary
public  CmsPublishJobInfoBean(CmsUUID historyId, CmsUUID projectId, String projectName, CmsUUID userId, String localeName, int flags, int resourceCount, long enqueueTime, long startTime, long finishTime)
    
protected  CmsPublishJobInfoBean(CmsObject cms, CmsPublishList publishList, I_CmsReport report)
    

Method Summary
protected  voidenqueue()
    
protected  voidfinish()
    
protected  CmsObjectgetCmsObject()
    
public  longgetEnqueueTime()
    
public  longgetFinishTime()
    
public  intgetFlags()
    
public  LocalegetLocale()
    
public  CmsUUIDgetProjectId()
    
public  StringgetProjectName()
    
public  CmsUUIDgetPublishHistoryId()
    
public  CmsPublishListgetPublishList()
    
public  I_CmsReportgetPublishReport()
    
public  I_CmsReportgetReport()
    
public  intgetSize()
    
public  longgetStartTime()
    
public  CmsUUIDgetThreadUUID()
    
public  CmsUUIDgetUserId()
    
protected  booleanisDirectPublish()
    
protected  booleanisFinished()
    
protected  booleanisStarted()
    
public  I_CmsReportremovePublishReport()
    
public  voidrevive(CmsObject adminCms, CmsPublishList publishList)
    
protected  voidstart(CmsUUID threadUUID)
    
public  StringtoString()
    

Field Detail
C_PUBLISH_FLAG
final public static int C_PUBLISH_FLAG(Code)
The flag used to indicate a direct publish job.




Constructor Detail
CmsPublishJobInfoBean
public CmsPublishJobInfoBean(CmsUUID historyId, CmsUUID projectId, String projectName, CmsUUID userId, String localeName, int flags, int resourceCount, long enqueueTime, long startTime, long finishTime)(Code)
Constructor used to initialize a job info bean from the database.


Parameters:
  historyId - publish history id
Parameters:
  projectId - the id of the project
Parameters:
  projectName - the name of the project
Parameters:
  userId - the id of the user
Parameters:
  localeName - the string representation of a locale
Parameters:
  flags - flags of the publish job
Parameters:
  resourceCount - number of published resources
Parameters:
  enqueueTime - time when the job was enqueued
Parameters:
  startTime - time when the job was started
Parameters:
  finishTime - time when the job was finished




CmsPublishJobInfoBean
protected CmsPublishJobInfoBean(CmsObject cms, CmsPublishList publishList, I_CmsReport report) throws CmsException(Code)
The Default constructor.


Parameters:
  cms - the cms context to use for publishing
Parameters:
  publishList - the list of resources to publish
Parameters:
  report - the report to write to
throws:
  CmsException - if something goes wrong





Method Detail
enqueue
protected void enqueue()(Code)
Signalizes that the publish job has been enqueued.

Actually sets the enqueue time only if it is not set already (re-enqueue during startup).




finish
protected void finish()(Code)
Signalizes the end of the publish job.

Actually only sets the finish time and closes the publish report stream.




getCmsObject
protected CmsObject getCmsObject()(Code)
Returns the cms object, will be set to null after publishing.

the cms object




getEnqueueTime
public long getEnqueueTime()(Code)
Returns the time this object has been created.

the time this object has been created




getFinishTime
public long getFinishTime()(Code)
Returns the time the publish job ends.

the time the publish job ends




getFlags
public int getFlags()(Code)
Returns the flags of this publish job.

the flags of this publish job




getLocale
public Locale getLocale()(Code)
Returns the locale for this publish job.

the locale for this publish job




getProjectId
public CmsUUID getProjectId()(Code)
Returns the project id for this publish job.

the project id for this publish job




getProjectName
public String getProjectName()(Code)
Returns the originally stored project name.

the originally stored project name




getPublishHistoryId
public CmsUUID getPublishHistoryId()(Code)
Returns the publish history id.

the publish history id




getPublishList
public CmsPublishList getPublishList()(Code)
Returns the list of resources to publish.

the list of resources to publish




getPublishReport
public I_CmsReport getPublishReport()(Code)
Returns the report for this publish job.

This is not the original report, it is wrapper that also writes to a temporary file.

It will be null before starting and after finishing.

the report for this publish job
See Also:   CmsPublishJobEnqueued.getReport




getReport
public I_CmsReport getReport()(Code)
Returns the report for this publish job.

the report for this publish job




getSize
public int getSize()(Code)
Returns the number of resources in the publish list.

the number of resources in the publish list




getStartTime
public long getStartTime()(Code)
Returns the time the publish job did actually start.

the time the publish job did actually start




getThreadUUID
public CmsUUID getThreadUUID()(Code)
Returns the UUID of the running publish thread.

the UUID of the running publish thread




getUserId
public CmsUUID getUserId()(Code)
Returns the user for this publish job.

the user for this publish job




isDirectPublish
protected boolean isDirectPublish()(Code)
Returns true if this is a "direct publish" operation.

true if this is a "direct publish" operation




isFinished
protected boolean isFinished()(Code)
Returns if the publish job is already finished.

true if the publish job is already finished




isStarted
protected boolean isStarted()(Code)
Returns if the publish job is already started.

true if the publish job is already started




removePublishReport
public I_CmsReport removePublishReport()(Code)
Removes the assigned publish report.

the removed report




revive
public void revive(CmsObject adminCms, CmsPublishList publishList) throws CmsException(Code)
Revives this publish job.


Parameters:
  adminCms - an admin cms object
Parameters:
  publishList - a publish list
throws:
  CmsException - if somethign goes wrong




start
protected void start(CmsUUID threadUUID)(Code)
Signalizes the start of the publish job.

Actually sets the starting time, writes the report header and sets the running thread uuid.


Parameters:
  threadUUID - the running thread uuid




toString
public String toString()(Code)

See Also:   java.lang.Object.toString



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.