Java Doc for SourceNodeRCML.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » repository » 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 » apache lenya 2.0 » org.apache.lenya.cms.repository 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.lenya.cms.repository.SourceNodeRCML

SourceNodeRCML
public class SourceNodeRCML implements RCML(Code)
Handle with the RCML file


Field Summary
final protected static  StringATTR_BACKUP
    
final protected static  StringATTR_IDENTITY
    
final protected static  StringATTR_SESSION
    
final protected static  StringATTR_TIME
    
final protected static  StringATTR_VERSION
    
final protected static  StringELEMENT_BACKUP
    
final protected static  StringELEMENT_CHECKIN
    
final protected static  StringELEMENT_CHECKOUT
    
final protected static  StringELEMENT_IDENTITY
    
final protected static  StringELEMENT_SESSION
    
final protected static  StringELEMENT_TIME
    
final protected static  StringELEMENT_VERSION
    
final protected static  StringELEMENT_XPSREVISIONCONTROL
    
final protected static  StringNAMESPACE
    
final protected static  StringRCML_EXTENSION
    

Constructor Summary
public  SourceNodeRCML(String contentSourceUri, String metaSourceUri, ServiceManager manager)
    

Method Summary
public synchronized  voidcheckIn(Node node, boolean backup, boolean newVersion)
    
public synchronized  voidcheckOut(Node node)
    
public synchronized  voidcheckOut(Node node, boolean restrictedToSession)
    
public synchronized  voidcheckOutIn(Node node, short type, long time, boolean backup, boolean newVersion, boolean restrictedToSession)
    
protected  voidclearDirty()
    
public synchronized  voidcopyFrom(Node node, Node otherNode)
    
public synchronized  booleandelete()
     Delete the revisions, the RCML source and the collection if the latter is empty.
protected synchronized  voiddeleteBackup(String sourceUri, long time)
    
public synchronized  voiddeleteRevisions()
    
protected  voidfinalize()
    
public synchronized  VectorgetBackupEntries()
    
protected  StringgetBackupSourceUri(SourceWrapper wrapper, long time)
    
protected  StringgetBackupSourceUri(String uri, long time)
    
public  String[]getBackupsTime()
    
protected  StringgetChildValue(NamespaceHelper helper, Element element, String childName, String defaultValue)
    
protected  StringgetChildValue(NamespaceHelper helper, Element element, String childName)
    
public synchronized  VectorgetEntries()
    
protected  RCMLEntrygetEntry(NamespaceHelper helper, Element element)
    
public  CheckInEntrygetLatestCheckInEntry()
    
public  CheckOutEntrygetLatestCheckOutEntry()
    
protected  ElementgetLatestElement(NamespaceHelper helper, String type)
    
public  RCMLEntrygetLatestEntry(short type)
     get the latest entry (a check out or check in)
Parameters:
  type - The type.
public  RCMLEntrygetLatestEntry()
    
protected  RCMLEntrygetLegacyEntry(NamespaceHelper helper, Element element)
    
protected  StringgetRcmlSourceUri()
    
public synchronized  booleanisCheckedOut()
    
public  booleanisCheckedOutBySession(Session session)
    
public  booleanisDirty()
    
public synchronized  voidmakeBackup(long time)
    
protected synchronized  voidmakeBackup(String sourceUri, long time)
    
public synchronized  voidpruneEntries()
     Prune the list of entries and delete the corresponding backups.
public synchronized  voidrestoreBackup(Node node, long time)
    
protected synchronized  voidrestoreBackup(SourceWrapper wrapper, long time)
    
protected  ElementsaveToXml(NamespaceHelper helper, RCMLEntry entry)
    
protected  NamespaceHelpersaveToXml()
    
protected  voidsetDirty()
    
public synchronized  voidwrite()
     Write the XML RCML-document in the RCML-file.

Field Detail
ATTR_BACKUP
final protected static String ATTR_BACKUP(Code)



ATTR_IDENTITY
final protected static String ATTR_IDENTITY(Code)



ATTR_SESSION
final protected static String ATTR_SESSION(Code)



ATTR_TIME
final protected static String ATTR_TIME(Code)



ATTR_VERSION
final protected static String ATTR_VERSION(Code)



ELEMENT_BACKUP
final protected static String ELEMENT_BACKUP(Code)



ELEMENT_CHECKIN
final protected static String ELEMENT_CHECKIN(Code)



ELEMENT_CHECKOUT
final protected static String ELEMENT_CHECKOUT(Code)



ELEMENT_IDENTITY
final protected static String ELEMENT_IDENTITY(Code)



ELEMENT_SESSION
final protected static String ELEMENT_SESSION(Code)



ELEMENT_TIME
final protected static String ELEMENT_TIME(Code)



ELEMENT_VERSION
final protected static String ELEMENT_VERSION(Code)



ELEMENT_XPSREVISIONCONTROL
final protected static String ELEMENT_XPSREVISIONCONTROL(Code)



NAMESPACE
final protected static String NAMESPACE(Code)



RCML_EXTENSION
final protected static String RCML_EXTENSION(Code)




Constructor Detail
SourceNodeRCML
public SourceNodeRCML(String contentSourceUri, String metaSourceUri, ServiceManager manager)(Code)

Parameters:
  contentSourceUri - The content source URI.
Parameters:
  metaSourceUri - The meta source URI.
Parameters:
  manager - The service manager.




Method Detail
checkIn
public synchronized void checkIn(Node node, boolean backup, boolean newVersion) throws RevisionControlException(Code)



checkOut
public synchronized void checkOut(Node node) throws RevisionControlException(Code)



checkOut
public synchronized void checkOut(Node node, boolean restrictedToSession) throws RevisionControlException(Code)



checkOutIn
public synchronized void checkOutIn(Node node, short type, long time, boolean backup, boolean newVersion, boolean restrictedToSession) throws RevisionControlException(Code)
Write a new entry for a check out or a check in the RCML-File made by the user with identity at time
Parameters:
  node - The node.
Parameters:
  type - co for a check out, ci for a check in
Parameters:
  time -
Parameters:
  backup - Create backup element (only considered for check-in entries).
Parameters:
  newVersion - If the revision number shall be increased (only considered for check-inentries).
Parameters:
  restrictedToSession - If the check-out is restricted to the session (only considered forcheck-out entries).
throws:
  RevisionControlException - if an error occurs



clearDirty
protected void clearDirty()(Code)
Set the value dirty to false



copyFrom
public synchronized void copyFrom(Node node, Node otherNode) throws RevisionControlException(Code)



delete
public synchronized boolean delete()(Code)
Delete the revisions, the RCML source and the collection if the latter is empty. boolean true, if the file was deleted



deleteBackup
protected synchronized void deleteBackup(String sourceUri, long time) throws RevisionControlException(Code)



deleteRevisions
public synchronized void deleteRevisions() throws RevisionControlException(Code)
delete the revisions
throws:
  RevisionControlException - when somthing went wrong



finalize
protected void finalize() throws IOException, Exception(Code)
Call the method write, if the document is dirty
throws:
  IOException - if an error occurs
throws:
  Exception - if an error occurs



getBackupEntries
public synchronized Vector getBackupEntries() throws Exception(Code)
get all backup entries Vector of all entries in this RCML-file with a backup
throws:
  Exception - if an error occurs



getBackupSourceUri
protected String getBackupSourceUri(SourceWrapper wrapper, long time)(Code)



getBackupSourceUri
protected String getBackupSourceUri(String uri, long time)(Code)



getBackupsTime
public String[] getBackupsTime() throws Exception(Code)
get the time's value of the backups String[] the times
throws:
  Exception - if an error occurs



getChildValue
protected String getChildValue(NamespaceHelper helper, Element element, String childName, String defaultValue)(Code)



getChildValue
protected String getChildValue(NamespaceHelper helper, Element element, String childName)(Code)



getEntries
public synchronized Vector getEntries() throws RevisionControlException(Code)
get all check in and check out Vector of all check out and check in entries in this RCML-file
throws:
  RevisionControlException - if an error occurs



getEntry
protected RCMLEntry getEntry(NamespaceHelper helper, Element element)(Code)



getLatestCheckInEntry
public CheckInEntry getLatestCheckInEntry() throws RevisionControlException(Code)
get the latest check in CheckInEntry The entry of the check in
throws:
  RevisionControlException - if an error occurs



getLatestCheckOutEntry
public CheckOutEntry getLatestCheckOutEntry() throws RevisionControlException(Code)
get the latest check out CheckOutEntry The entry of the check out
throws:
  RevisionControlException - if an error occurs



getLatestElement
protected Element getLatestElement(NamespaceHelper helper, String type) throws RevisionControlException(Code)



getLatestEntry
public RCMLEntry getLatestEntry(short type) throws RevisionControlException(Code)
get the latest entry (a check out or check in)
Parameters:
  type - The type. RCMLEntry The entry of the check out/in
throws:
  RevisionControlException - if an error occurs



getLatestEntry
public RCMLEntry getLatestEntry() throws RevisionControlException(Code)



getLegacyEntry
protected RCMLEntry getLegacyEntry(NamespaceHelper helper, Element element)(Code)



getRcmlSourceUri
protected String getRcmlSourceUri()(Code)



isCheckedOut
public synchronized boolean isCheckedOut() throws RevisionControlException(Code)



isCheckedOutBySession
public boolean isCheckedOutBySession(Session session) throws RevisionControlException(Code)



isDirty
public boolean isDirty()(Code)
Check if the document is dirty boolean dirty



makeBackup
public synchronized void makeBackup(long time) throws RevisionControlException(Code)



makeBackup
protected synchronized void makeBackup(String sourceUri, long time) throws RevisionControlException(Code)



pruneEntries
public synchronized void pruneEntries() throws RevisionControlException(Code)
Prune the list of entries and delete the corresponding backups. Limit the number of entries to the value maximalNumberOfEntries (2maxNumberOfRollbacks(configured)+1)
throws:
  RevisionControlException - if an error occurs



restoreBackup
public synchronized void restoreBackup(Node node, long time) throws RevisionControlException(Code)



restoreBackup
protected synchronized void restoreBackup(SourceWrapper wrapper, long time) throws RevisionControlException(Code)



saveToXml
protected Element saveToXml(NamespaceHelper helper, RCMLEntry entry) throws RevisionControlException(Code)



saveToXml
protected NamespaceHelper saveToXml() throws RevisionControlException(Code)



setDirty
protected void setDirty()(Code)
Set the value dirty to true



write
public synchronized void write() throws RevisionControlException(Code)
Write the XML RCML-document in the RCML-file.
throws:
  RevisionControlException - if an error occurs



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.