Java Doc for BaseNode.java in  » EJB-Server-resin-3.1.5 » extra » com » caucho » jcr » base » 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 » EJB Server resin 3.1.5 » extra » com.caucho.jcr.base 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.jcr.base.BaseItem
      com.caucho.jcr.base.BaseNode

All known Subclasses:   com.caucho.jcr.file.FileContentNode,  com.caucho.jcr.file.DirectoryNode,  com.caucho.jcr.file.FileNode,
BaseNode
public class BaseNode extends BaseItem implements Node(Code)
Represents a directory node in the repository.




Method Summary
public  voidaddMixin(String mixinName)
     Adds a mixin type to the node.
public  NodeaddNode(String relPath)
     Creates a new node given by the relative path.
public  NodeaddNode(String relPath, String primaryNodeTypeName)
     Creates a new node given by the relative path.
public  booleancanAddMixin(String mixinName)
     Returns true if the given mixin type can be added to the node.
public  voidcancelMerge(Version version)
     Cancel a version merge.
public  Versioncheckin()
     Checks in a new version for to the node.
public  voidcheckout()
     Checks out a version.
public  voiddoneMerge(Version version)
     Mark the version merge as complete.
public  VersiongetBaseVersion()
     Returns the base version.
public  StringgetCorrespondingNodePath(String workspaceName)
     Returns the node path to a workspace.
public  NodeDefinitiongetDefinition()
     Returns a description of the node.
public  intgetIndex()
    
public  LockgetLock()
     Returns the current lock.
public  NodeType[]getMixinNodeTypes()
     Returns any mixin types for the node.
public  NodegetNode(String relPath)
     Returns the node with the given relative path.
public  NodeIteratorgetNodes()
     Returns the direct child nodes.
public  NodeIteratorgetNodes(String namePattern)
     Returns the child nodes matching the name pattern.
public  ItemgetPrimaryItem()
     Returns the node's primary item.
public  NodeTypegetPrimaryNodeType()
     Returns the node's primary type.
public  PropertyIteratorgetProperties()
     Returns the an iterator of the properties of the node.
public  PropertyIteratorgetProperties(String namePattern)
     Returns the an iterator of the properties of the node matching the pattern.
public  PropertygetProperty(String relPath)
     Returns the property based on the relative path.
public  PropertyIteratorgetReferences()
    
public  StringgetUUID()
    
public  VersionHistorygetVersionHistory()
     Returns the node's version history.
public  booleanhasNode(String relPath)
     Returns true if the path points to a node.
public  booleanhasNodes()
     Returns true if the node has child nodes.
public  booleanhasProperties()
     Returns true if the node has any properties.
public  booleanhasProperty(String relPath)
     Returns true if the path points to a property.
public  booleanholdsLock()
     Returns true if the node owns a lock.
public  booleanisCheckedOut()
     Returns true for a checked out node.
public  booleanisLocked()
     Returns true if the node is locked.
public  booleanisNode()
     Returns true for a node.
public  booleanisNodeType(String nodeTypeName)
     Returns true if the node supports the given node type.
public  Locklock(boolean isDeep, boolean isSessionScoped)
     Lock the node.
public  NodeIteratormerge(String srcWorkspace, boolean bestEffort)
     Merges child nodes.
public  voidorderBefore(String srcChildRelPath, String destChildRelPath)
    
public  voidremoveMixin(String mixinName)
     Removes a mixin type to the node.
public  voidrestore(String versionName, boolean removeExisting)
     Restore the node based on an older version.
public  voidrestore(Version version, boolean removeExisting)
     Restore the node based on an older version.
public  voidrestore(Version version, String relPath, boolean removeExisting)
     Restore the node based on an older version.
public  voidrestoreByLabel(String versionLabel, boolean removeExisting)
     Restore the node based on an older version.
public  PropertysetProperty(String name, Value value)
     Sets a property of the node.
public  PropertysetProperty(String name, Value value, int type)
     Sets a property of the node.
public  PropertysetProperty(String name, Value[] values)
     Sets a property of the node with a value array.
public  PropertysetProperty(String name, Value[] values, int type)
     Sets a property of the node with a value array.
public  PropertysetProperty(String name, String[] values)
    
public  PropertysetProperty(String name, String[] values, int type)
    
public  PropertysetProperty(String name, String value)
    
public  PropertysetProperty(String name, String value, int type)
    
public  PropertysetProperty(String name, InputStream value)
    
public  PropertysetProperty(String name, boolean value)
    
public  PropertysetProperty(String name, double value)
    
public  PropertysetProperty(String name, long value)
    
public  PropertysetProperty(String name, Calendar value)
    
public  PropertysetProperty(String name, Node value)
    
public  voidunlock()
     Unlocks the node.
public  voidupdate(String srcWorkspaceName)
    



Method Detail
addMixin
public void addMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException(Code)
Adds a mixin type to the node.



addNode
public Node addNode(String relPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException(Code)
Creates a new node given by the relative path.
Parameters:
  relPath - relative path to the new node.



addNode
public Node addNode(String relPath, String primaryNodeTypeName) throws ItemExistsException, PathNotFoundException, NoSuchNodeTypeException, LockException, VersionException, ConstraintViolationException, RepositoryException(Code)
Creates a new node given by the relative path.
Parameters:
  relPath - relative path to the new node.
Parameters:
  primaryNodeTypeName - the node type of the new node



canAddMixin
public boolean canAddMixin(String mixinName) throws NoSuchNodeTypeException, RepositoryException(Code)
Returns true if the given mixin type can be added to the node.



cancelMerge
public void cancelMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException(Code)
Cancel a version merge.



checkin
public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException(Code)
Checks in a new version for to the node.



checkout
public void checkout() throws UnsupportedRepositoryOperationException, LockException, RepositoryException(Code)
Checks out a version.



doneMerge
public void doneMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException(Code)
Mark the version merge as complete.



getBaseVersion
public Version getBaseVersion() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns the base version.



getCorrespondingNodePath
public String getCorrespondingNodePath(String workspaceName) throws ItemNotFoundException, NoSuchWorkspaceException, AccessDeniedException, RepositoryException(Code)
Returns the node path to a workspace.



getDefinition
public NodeDefinition getDefinition() throws RepositoryException(Code)
Returns a description of the node.



getIndex
public int getIndex() throws RepositoryException(Code)
Returns the node's index



getLock
public Lock getLock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, RepositoryException(Code)
Returns the current lock.



getMixinNodeTypes
public NodeType[] getMixinNodeTypes() throws RepositoryException(Code)
Returns any mixin types for the node.



getNode
public Node getNode(String relPath) throws PathNotFoundException, RepositoryException(Code)
Returns the node with the given relative path.
Parameters:
  name - relPath path to the given ndoe.



getNodes
public NodeIterator getNodes() throws RepositoryException(Code)
Returns the direct child nodes.



getNodes
public NodeIterator getNodes(String namePattern) throws RepositoryException(Code)
Returns the child nodes matching the name pattern.



getPrimaryItem
public Item getPrimaryItem() throws ItemNotFoundException, RepositoryException(Code)
Returns the node's primary item.



getPrimaryNodeType
public NodeType getPrimaryNodeType() throws RepositoryException(Code)
Returns the node's primary type.



getProperties
public PropertyIterator getProperties() throws RepositoryException(Code)
Returns the an iterator of the properties of the node.



getProperties
public PropertyIterator getProperties(String namePattern) throws RepositoryException(Code)
Returns the an iterator of the properties of the node matching the pattern.



getProperty
public Property getProperty(String relPath) throws PathNotFoundException, RepositoryException(Code)
Returns the property based on the relative path.



getReferences
public PropertyIterator getReferences() throws RepositoryException(Code)
Returns the an iterator of the references



getUUID
public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns the node's UUID



getVersionHistory
public VersionHistory getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns the node's version history.



hasNode
public boolean hasNode(String relPath) throws RepositoryException(Code)
Returns true if the path points to a node.
Parameters:
  relPath - path to a property



hasNodes
public boolean hasNodes() throws RepositoryException(Code)
Returns true if the node has child nodes.



hasProperties
public boolean hasProperties() throws RepositoryException(Code)
Returns true if the node has any properties.



hasProperty
public boolean hasProperty(String relPath) throws RepositoryException(Code)
Returns true if the path points to a property.
Parameters:
  relPath - path to a property



holdsLock
public boolean holdsLock() throws RepositoryException(Code)
Returns true if the node owns a lock.



isCheckedOut
public boolean isCheckedOut() throws RepositoryException(Code)
Returns true for a checked out node.



isLocked
public boolean isLocked() throws RepositoryException(Code)
Returns true if the node is locked.



isNode
public boolean isNode()(Code)
Returns true for a node.



isNodeType
public boolean isNodeType(String nodeTypeName) throws RepositoryException(Code)
Returns true if the node supports the given node type.



lock
public Lock lock(boolean isDeep, boolean isSessionScoped) throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException(Code)
Lock the node.



merge
public NodeIterator merge(String srcWorkspace, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, MergeException, LockException, InvalidItemStateException, RepositoryException(Code)
Merges child nodes.



orderBefore
public void orderBefore(String srcChildRelPath, String destChildRelPath) throws UnsupportedRepositoryOperationException, VersionException, ConstraintViolationException, ItemNotFoundException, LockException, RepositoryException(Code)
Moves the source node before the dest
Parameters:
  srcChildRelPath - relative path to the source item
Parameters:
  destChildRelPath - relative path to the destination item



removeMixin
public void removeMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException(Code)
Removes a mixin type to the node.



restore
public void restore(String versionName, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException(Code)
Restore the node based on an older version.



restore
public void restore(Version version, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, RepositoryException(Code)
Restore the node based on an older version.



restore
public void restore(Version version, String relPath, boolean removeExisting) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException(Code)
Restore the node based on an older version.



restoreByLabel
public void restoreByLabel(String versionLabel, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException(Code)
Restore the node based on an older version.



setProperty
public Property setProperty(String name, Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node.
Parameters:
  name - single-level name identifying the property
Parameters:
  value - the property's new value



setProperty
public Property setProperty(String name, Value value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node.
Parameters:
  name - single-level name identifying the property
Parameters:
  value - the property's new value
Parameters:
  type - the property's value type



setProperty
public Property setProperty(String name, Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node with a value array.
Parameters:
  name - single-level name identifying the property
Parameters:
  values - array of values for the property



setProperty
public Property setProperty(String name, Value[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node with a value array.
Parameters:
  name - single-level name identifying the property
Parameters:
  values - array of values for the property
Parameters:
  type - the expected type of the property



setProperty
public Property setProperty(String name, String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node with an array of string values
Parameters:
  name - single-level name identifying the property
Parameters:
  values - array of values for the property



setProperty
public Property setProperty(String name, String[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node with an array of string values
Parameters:
  name - single-level name identifying the property
Parameters:
  values - array of values for the property
Parameters:
  type - the expected type of the property



setProperty
public Property setProperty(String name, String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node with a single string value
Parameters:
  name - single-level name identifying the property
Parameters:
  values - array of values for the property
Parameters:
  type - the expected type of the property



setProperty
public Property setProperty(String name, String value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node with a single string value
Parameters:
  name - single-level name identifying the property
Parameters:
  values - array of values for the property
Parameters:
  type - the expected type of the property



setProperty
public Property setProperty(String name, InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node from an input stream
Parameters:
  name - single-level name identifying the property
Parameters:
  value - input stream containing the data



setProperty
public Property setProperty(String name, boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node from a boolean
Parameters:
  name - single-level name identifying the property
Parameters:
  value - boolean data



setProperty
public Property setProperty(String name, double value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node from a double
Parameters:
  name - single-level name identifying the property
Parameters:
  value - double data



setProperty
public Property setProperty(String name, long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node from a long
Parameters:
  name - single-level name identifying the property
Parameters:
  value - long data



setProperty
public Property setProperty(String name, Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node from a date
Parameters:
  name - single-level name identifying the property
Parameters:
  value - calendar data



setProperty
public Property setProperty(String name, Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException(Code)
Sets a property of the node from a based on a reference to a node
Parameters:
  name - single-level name identifying the property
Parameters:
  value - node reference



unlock
public void unlock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException(Code)
Unlocks the node.



update
public void update(String srcWorkspaceName) throws NoSuchWorkspaceException, AccessDeniedException, LockException, InvalidItemStateException, RepositoryException(Code)
Updates a workspace



Methods inherited from com.caucho.jcr.base.BaseItem
public void accept(ItemVisitor visitor) throws RepositoryException(Code)(Java Doc)
public Item getAncestor(int depth) throws ItemNotFoundException, AccessDeniedException, RepositoryException(Code)(Java Doc)
public int getDepth() throws RepositoryException(Code)(Java Doc)
public String getName() throws RepositoryException(Code)(Java Doc)
public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException(Code)(Java Doc)
public String getPath() throws RepositoryException(Code)(Java Doc)
public Session getSession() throws RepositoryException(Code)(Java Doc)
public boolean isModified()(Code)(Java Doc)
public boolean isNew()(Code)(Java Doc)
public boolean isNode()(Code)(Java Doc)
public boolean isSame(Item otherItem) throws RepositoryException(Code)(Java Doc)
public void refresh(boolean keepChanges) throws InvalidItemStateException, RepositoryException(Code)(Java Doc)
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException(Code)(Java Doc)
public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException(Code)(Java Doc)

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.