Java Doc for CmsPublishedResource.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.CmsPublishedResource

CmsPublishedResource
public class CmsPublishedResource implements Serializable,Comparable(Code)
Represents the state of a published resource *before* it got published.

This allows various subsequent tasks in the Cms app. (e.g. exporting files and folders) to identify published resources after a resource or project was published.

The values to fill this container are read from the Cms publish history database table that is written during each publishing process.


author:
   Thomas Weckert
version:
   $Revision: 1.35 $
since:
   6.0.0
See Also:   org.opencms.db.I_CmsProjectDriver.readPublishedResources(CmsDbContextCmsUUID)


Inner Class :public static class CmsPublishedResourceState extends CmsResourceState

Field Summary
final public static  CmsPublishedResourceStateSTATE_MOVED_DESTINATION
     Additional state for moved resources, the (new) destination of the moved resource.
final public static  CmsPublishedResourceStateSTATE_MOVED_SOURCE
     Additional state for moved resources, the (deleted) source of the moved resource.

Constructor Summary
public  CmsPublishedResource(CmsResource resource)
    
public  CmsPublishedResource(CmsResource resource, int publishTag)
    
public  CmsPublishedResource(CmsResource resource, int publishTag, CmsResourceState state)
    
public  CmsPublishedResource(CmsUUID structureId, CmsUUID resourceId, int publishTag, String rootPath, int resourceType, boolean isFolder, CmsResourceState resourceState, int siblingCount)
    

Method Summary
public  intcompareTo(Object obj)
    
public  booleanequals(Object obj)
    
public  intgetBackupTagId()
    
public  CmsResourceStategetMovedState()
    
public  intgetPublishTag()
    
public  CmsUUIDgetResourceId()
    
public  StringgetRootPath()
    
public  intgetSiblingCount()
    
public  CmsResourceStategetState()
    
public  CmsUUIDgetStructureId()
    
public  intgetType()
    
public  inthashCode()
    
public  booleanisFile()
    
public  booleanisFolder()
    
public  booleanisMoved()
    
public  booleanisVfsResource()
    
public  StringtoString()
    

Field Detail
STATE_MOVED_DESTINATION
final public static CmsPublishedResourceState STATE_MOVED_DESTINATION(Code)
Additional state for moved resources, the (new) destination of the moved resource.



STATE_MOVED_SOURCE
final public static CmsPublishedResourceState STATE_MOVED_SOURCE(Code)
Additional state for moved resources, the (deleted) source of the moved resource.




Constructor Detail
CmsPublishedResource
public CmsPublishedResource(CmsResource resource)(Code)
Creates an object for published VFS resources.

Do not write objects created with this constructor to db, since the publish tag is not set.


Parameters:
  resource - an CmsResource object to create a CmsPublishedResource from




CmsPublishedResource
public CmsPublishedResource(CmsResource resource, int publishTag)(Code)
Creates an object for published VFS resources.


Parameters:
  resource - an CmsResource object to create a CmsPublishedResource from
Parameters:
  publishTag - the publish Tag




CmsPublishedResource
public CmsPublishedResource(CmsResource resource, int publishTag, CmsResourceState state)(Code)
Creates an object for published VFS resources.


Parameters:
  resource - an CmsResource object to create a CmsPublishedResource from
Parameters:
  state - the resource state
Parameters:
  publishTag - the publish tag




CmsPublishedResource
public CmsPublishedResource(CmsUUID structureId, CmsUUID resourceId, int publishTag, String rootPath, int resourceType, boolean isFolder, CmsResourceState resourceState, int siblingCount)(Code)
Creates an object for published VFS resources.


Parameters:
  structureId - the structure ID of the published resource
Parameters:
  resourceId - the resource ID of the published resource
Parameters:
  publishTag - the publish tag
Parameters:
  rootPath - the root path of the published resource
Parameters:
  resourceType - the type of the published resource
Parameters:
  isFolder - indicates if the published resource is a folder or a file
Parameters:
  resourceState - the state of the resource *before* it was published
Parameters:
  siblingCount - count of siblings of the published resource





Method Detail
compareTo
public int compareTo(Object obj)(Code)

See Also:   java.lang.Comparable.compareTo(java.lang.Object)



equals
public boolean equals(Object obj)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getBackupTagId
public int getBackupTagId()(Code)
Returns the publish tag of the published resource.

the publish tag of the published resourceCmsPublishedResource.getPublishTag()




getMovedState
public CmsResourceState getMovedState()(Code)
Returns the resource state including move operation information.

the resource state including move operation information




getPublishTag
public int getPublishTag()(Code)
Returns the publish tag of the published resource.

the publish tag of the published resource




getResourceId
public CmsUUID getResourceId()(Code)
Returns the resource ID of the published resource.

the resource ID of the published resource




getRootPath
public String getRootPath()(Code)
Returns the root path of the published resource.

the root path of the published resource




getSiblingCount
public int getSiblingCount()(Code)
Returns the count of siblings of the published resource.

If a resource has no sibling, the total sibling count for this resource is 1, if a resource has n siblings, the sibling count is n + 1.

the count of siblings of the published resource




getState
public CmsResourceState getState()(Code)
Returns the resource state of the published resource.

the resource state of the published resource




getStructureId
public CmsUUID getStructureId()(Code)
Returns the structure ID of the published resource.

the structure ID of the published resource




getType
public int getType()(Code)
Returns the resource type of the published resource.

the resource type of the published resource




hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



isFile
public boolean isFile()(Code)
Determines if this resource is a file.

true if this resource is a file, false otherwise




isFolder
public boolean isFolder()(Code)
Checks if this resource is a folder.

true if this is is a folder




isMoved
public boolean isMoved()(Code)
Returns true if the resource has been moved.

true if the resource has been moved




isVfsResource
public boolean isVfsResource()(Code)
Checks if this published resource represents a VFS resource.

If the published resource has no structure id, it is considered to be no VFS resource.

true if this published resource is a VFS resource




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.