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


org.apache.lenya.cms.repository.Node

All known Subclasses:   org.apache.lenya.cms.repository.SourceNode,
Node
public interface Node extends RepositoryItem,ContentHolder(Code)
A repository node is used to persist a Persistable .
version:
   $Id: Node.java 568271 2007-08-21 20:49:18Z andreas $


Field Summary
 StringIDENTIFIABLE_TYPE
     The identifiable type.
 StringLENYA_PROTOCOL
    


Method Summary
 voidcheckin()
     Checks in the node.
 voidcheckout()
     Checks out the node with restriction to the current session..
 voidcheckout(boolean restrictedToSession)
     Checks out the node with the possibility to allow other sessions to check it in.
 voidcopyRevisionsFrom(Node source)
    
 voiddelete()
     Delete this node.
 booleanexists()
    
 voidforceCheckIn()
     Checks in the node even if it is checked out by a different session.
 StringgetCheckoutUserId()
    
public  CollectiongetChildren()
    
 HistorygetHistory()
    
 OutputStreamgetOutputStream()
    
 PersistablegetPersistable()
    
 SessiongetSession()
    
 booleanisCheckedOut()
    
 booleanisCheckedOutBySession(Session session)
     Checks if the node is checked out by a certain session.
 booleanisCollection()
    
 booleanisLocked()
    
 voidlock()
     Locks the node.
 voidregisterDirty()
     Registers the node as dirty.
 voidregisterRemoved()
     Registers the node as removed.
 voidrollback(int revisionNumber)
    
 voidsetPersistable(Persistable persistable)
    
 voidunlock()
     Unlocks the node.

Field Detail
IDENTIFIABLE_TYPE
String IDENTIFIABLE_TYPE(Code)
The identifiable type.



LENYA_PROTOCOL
String LENYA_PROTOCOL(Code)
The protocol with which to find Lenya nodes





Method Detail
checkin
void checkin() throws RepositoryException(Code)
Checks in the node.
throws:
  RepositoryException - if the node is not checked out or is checkedout by a different session.



checkout
void checkout() throws RepositoryException(Code)
Checks out the node with restriction to the current session..
throws:
  RepositoryException - if an error occurs.



checkout
void checkout(boolean restrictedToSession) throws RepositoryException(Code)
Checks out the node with the possibility to allow other sessions to check it in. This is a workaround for the current WYSIWYG editor infrastructure, which can't use the same session for opening and saving a node.
Parameters:
  restrictedToSession - if the check-out is restricted to the current session.
throws:
  RepositoryException - if an error occurs.



copyRevisionsFrom
void copyRevisionsFrom(Node source) throws RepositoryException(Code)

Parameters:
  source - The node to copy the revisions from.
throws:
  RepositoryException - if an error occurs.



delete
void delete() throws RepositoryException(Code)
Delete this node.
throws:
  RepositoryException - if an error occurs.



exists
boolean exists() throws RepositoryException(Code)
if the node exists.
throws:
  RepositoryException - if an error occurs.



forceCheckIn
void forceCheckIn() throws RepositoryException(Code)
Checks in the node even if it is checked out by a different session.
throws:
  RepositoryException - if the node is not checked out.



getCheckoutUserId
String getCheckoutUserId() throws RepositoryException(Code)
The ID of the user who has checked out this node.
throws:
  RepositoryException - if the node is not checked out.



getChildren
public Collection getChildren() throws RepositoryException(Code)
children
throws:
  RepositoryException - if an error occurs.



getHistory
History getHistory()(Code)
The revision history.



getOutputStream
OutputStream getOutputStream() throws RepositoryException(Code)
The output stream.
throws:
  RepositoryException - if the node does not exist.



getPersistable
Persistable getPersistable()(Code)
The object which is persisted using this node or nullif no object is registered.



getSession
Session getSession()(Code)
The session this node belongs to.



isCheckedOut
boolean isCheckedOut() throws RepositoryException(Code)
if the node is checked out.
throws:
  RepositoryException - if an error occurs.



isCheckedOutBySession
boolean isCheckedOutBySession(Session session) throws RepositoryException(Code)
Checks if the node is checked out by a certain session. We pass the session as a parameter to allow the check for nodes from the shared item store.
Parameters:
  session - The session. if the node is checked out by a specific session.
throws:
  RepositoryException - if an error occurs.



isCollection
boolean isCollection() throws RepositoryException(Code)
if the node is a collection.
throws:
  RepositoryException - if an error occurs.



isLocked
boolean isLocked() throws RepositoryException(Code)
if the node is locked.
throws:
  RepositoryException - if an error occurs.



lock
void lock() throws RepositoryException(Code)
Locks the node.
throws:
  RepositoryException - if an error occurs.



registerDirty
void registerDirty() throws RepositoryException(Code)
Registers the node as dirty.
throws:
  RepositoryException - if an error occurs.



registerRemoved
void registerRemoved() throws RepositoryException(Code)
Registers the node as removed.
throws:
  RepositoryException - if an error occurs.



rollback
void rollback(int revisionNumber) throws RepositoryException(Code)

Parameters:
  revisionNumber - The revision number to roll back.
throws:
  RepositoryException - if this revision doesn't exist.



setPersistable
void setPersistable(Persistable persistable) throws RepositoryException(Code)

Parameters:
  persistable - The object which is persisted using the node.
throws:
  RepositoryException - if the node already has an item.



unlock
void unlock() throws RepositoryException(Code)
Unlocks the node.
throws:
  RepositoryException - if an error occurs.



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