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


java.lang.Object
   org.opencms.db.CmsPublishList

CmsPublishList
public class CmsPublishList implements Externalizable(Code)
A container for all new/changed/deteled Cms resources that are published together.

Only classes inside the org.opencms.db package can add or remove elements to or from this list. This allows the OpenCms API to pass the list around between classes, but with restricted access to create this list.

To create a publish list, one of the public constructors must be used in order to set the basic operation mode (project publish or direct publish). After this, use org.opencms.db.CmsDriverManager.fillPublishList(CmsDbContextCmsPublishList) to fill the actual values of the publish list.


author:
   Alexander Kandzior
author:
   Thomas Weckert
version:
   $Revision: 1.29 $
since:
   6.0.0
See Also:   org.opencms.db.CmsDriverManager.fillPublishList(CmsDbContextCmsPublishList)




Constructor Summary
public  CmsPublishList()
    
public  CmsPublishList(CmsProject project)
    
public  CmsPublishList(CmsResource directPublishResource, boolean publishSiblings)
    
public  CmsPublishList(List directPublishResources, boolean publishSiblings)
    
public  CmsPublishList(List directPublishResources, boolean publishSiblings, boolean publishSubResources)
    

Method Summary
protected  voidadd(CmsResource resource, boolean check)
    
protected  voidaddAll(Collection resources, boolean check)
    
protected  voidfinalize()
    
public  ListgetAllResources()
    
public  ListgetDeletedFolderList()
    
public  ListgetDirectPublishResources()
    
public  ListgetFileList()
    
public  ListgetFolderList()
    
public  CmsUUIDgetProjectId()
    
public  CmsUUIDgetPublishHistoryId()
    
protected  voidinitialize()
    
public  booleanisDirectPublish()
    
public  booleanisPublishSiblings()
    
public  booleanisPublishSubResources()
    
public  voidreadExternal(ObjectInput in)
    
protected  booleanremove(CmsResource resource)
    
public  voidrevive(CmsObject cms)
    
public  intsize()
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    


Constructor Detail
CmsPublishList
public CmsPublishList()(Code)
Empty constructor.




CmsPublishList
public CmsPublishList(CmsProject project)(Code)
Constructs a publish list for a given project.


Parameters:
  project - the project to publish, this should always be the id of the current project




CmsPublishList
public CmsPublishList(CmsResource directPublishResource, boolean publishSiblings)(Code)
Constructs a publish list for a single direct publish resource.


Parameters:
  directPublishResource - a VFS resource to be published directly
Parameters:
  publishSiblings - indicates if all siblings of the selected resources should be published




CmsPublishList
public CmsPublishList(List directPublishResources, boolean publishSiblings)(Code)
Constructs a publish list for a list of direct publish resources.


Parameters:
  directPublishResources - a list of CmsResource instances to be published directly
Parameters:
  publishSiblings - indicates if all siblings of the selected resources should be published




CmsPublishList
public CmsPublishList(List directPublishResources, boolean publishSiblings, boolean publishSubResources)(Code)
Constructs a publish list for a list of direct publish resources.


Parameters:
  directPublishResources - a list of CmsResource instances to be published directly
Parameters:
  publishSiblings - indicates if all siblings of the selected resources should be published
Parameters:
  publishSubResources - indicates if sub-resources in folders should be published (for direct publish only)





Method Detail
add
protected void add(CmsResource resource, boolean check) throws IllegalArgumentException(Code)
Adds a new/changed Cms folder resource to the publish list.


Parameters:
  resource - a new/changed Cms folder resource
Parameters:
  check - if set an exception is thrown if the specified resource is unchanged, if not set the resource is ignored
throws:
  IllegalArgumentException - if the specified resource is unchanged




addAll
protected void addAll(Collection resources, boolean check) throws IllegalArgumentException(Code)
Appends all the given resources to this publish list.


Parameters:
  resources - resources to be added to this publish list
Parameters:
  check - if set an exception is thrown if the a resource is unchanged, if not set the resource is ignored
throws:
  IllegalArgumentException - if one of the resources is unchanged




finalize
protected void finalize() throws Throwable(Code)

See Also:   java.lang.Object.finalize



getAllResources
public List getAllResources()(Code)
Returns a list of all resources in the publish list, including folders and files.

a list of CmsResource objects




getDeletedFolderList
public List getDeletedFolderList()(Code)
Returns a list of folder resources with the given state.

a list of folder resources with the desired state




getDirectPublishResources
public List getDirectPublishResources()(Code)
Returns the list of resources that should be published for a "direct" publish operation.

Will return null if this publish list was not initilaized for a "direct publish" but for a project publish.

the list of resources that should be published for a "direct" publish operation, or null




getFileList
public List getFileList()(Code)
Returns an unmodifiable list of the Cms file resources in this publish list.

the list with the Cms file resources in this publish list




getFolderList
public List getFolderList()(Code)
Returns an unmodifiable list of the new/changed Cms folder resources in this publish list.

the list with the new/changed Cms file resources in this publish list




getProjectId
public CmsUUID getProjectId()(Code)
Returns the id of the project that should be published, or -1 if this publish list is initialized for a "direct publish" operation.

the id of the project that should be published, or -1




getPublishHistoryId
public CmsUUID getPublishHistoryId()(Code)
Returns the publish history Id for this publish list.

the publish history Id




initialize
protected void initialize()(Code)
Initializes the publish list, ensuring all internal lists are in the right order.




isDirectPublish
public boolean isDirectPublish()(Code)
Checks if this is a publish list is used for a "direct publish" operation.

true if this is a publish list is used for a "direct publish" operation




isPublishSiblings
public boolean isPublishSiblings()(Code)
Returns true if all siblings of the project resources are to be published.

true if all siblings of the project resources are to be publisheds




isPublishSubResources
public boolean isPublishSubResources()(Code)
Returns true if sub-resources in folders should be published (for direct publish only).

true if sub-resources in folders should be published (for direct publish only)




readExternal
public void readExternal(ObjectInput in) throws IOException(Code)

See Also:   java.io.Externalizable.readExternal(java.io.ObjectInput)



remove
protected boolean remove(CmsResource resource)(Code)
Removes a Cms resource from the publish list.


Parameters:
  resource - a Cms resource true if this publish list contains the specified resource
See Also:   List.remove(java.lang.Object)




revive
public void revive(CmsObject cms)(Code)
Revives the publish list by populating the internal resource lists with CmsResource instances.


Parameters:
  cms - a cms object used to read the resource instances




size
public int size()(Code)
Returns the number of all resources to be published.

the number of all resources to be published




toString
public String toString()(Code)

See Also:   java.lang.Object.toString



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)

See Also:   java.io.Externalizable.writeExternal(java.io.ObjectOutput)



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.