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

All known Subclasses:   com.caucho.jcr.file.FileSession,
BaseSession
abstract public class BaseSession implements Session(Code)
Represents an open session to a Repository workspace.




Method Summary
public  voidaddLockToken(String lt)
     Adds a lock token.
public  voidcheckPermission(String absPath, String actions)
     Checks if the session can perform the given actions for the path.
public  voidexportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
     Exports XML data from the given node based on the document view.
public  voidexportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse)
     Exports XML data from the given node based on the document view.
public  voidexportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse)
     Exports XML data from the given node based on the system view.
public  voidexportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse)
     Exports XML data from the given node based on the system view.
public  ObjectgetAttribute(String name)
     Returns a session attribute.
public  String[]getAttributeNames()
     Returns an array of the session attribute names.
public  ContentHandlergetImportContentHandler(String parentAbsPath, int uuidBehavior)
     Returns a SAX ContentHandler to important data.
public  ItemgetItem(String absPath)
     Returns an item based on an absolute path.
public  String[]getLockTokens()
     Returns the current lock tokens.
public  StringgetNamespacePrefix(String uri)
     Returns the prefix for a given URI.
public  String[]getNamespacePrefixes()
     Returns the session's namespace prefixes.
public  StringgetNamespaceURI(String prefix)
     Returns the URI for a given namespace prefix.
public  NodegetNodeByUUID(String uuid)
    
abstract public  RepositorygetRepository()
     Returns the owning repository.
abstract public  NodegetRootNode()
     Returns the session's root node.
public  StringgetUserID()
     Returns the user who opened this session.
public  ValueFactorygetValueFactory()
     Returns the session's value factory.
public  WorkspacegetWorkspace()
     Returns the repository's workspace for this session.
public  booleanhasPendingChanges()
     Returns true if the session has changes.
public  Sessionimpersonate(Credentials credentials)
     Create a new session with the new credentials.
public  voidimportXML(String parentAbsPath, InputStream in, int uuidBehavior)
     Import data based on an XML stream.
public  booleanisLive()
     Return true if the session is active.
public  booleanitemExists(String absPath)
     Returns true if the item named by the path exists.
public  voidlogout()
     Close the session.
public  voidmove(String srcAbsPath, String destAbsPath)
     Moves the node given by the source path to the destination path.
public  voidrefresh(boolean keepChanges)
     Updates changes from the repository.
public  voidremoveLockToken(String lt)
     Removes the named lock token.
public  voidsave()
     Saves changes to the workspace.
public  voidsetNamespacePrefix(String newPrefix, String existingUri)
     Exports XML data from the given node based on the document view.



Method Detail
addLockToken
public void addLockToken(String lt) throws LockException, RepositoryException(Code)
Adds a lock token.



checkPermission
public void checkPermission(String absPath, String actions) throws java.security.AccessControlException, RepositoryException(Code)
Checks if the session can perform the given actions for the path.
Parameters:
  absPath - absolute path to a node.
Parameters:
  actions - actions attempted on the node.



exportDocumentView
public void exportDocumentView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws PathNotFoundException, SAXException, RepositoryException(Code)
Exports XML data from the given node based on the document view.
Parameters:
  absPath - path to the node serving as root to export
Parameters:
  out - OutputStream to receive the XML



exportDocumentView
public void exportDocumentView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, PathNotFoundException, RepositoryException(Code)
Exports XML data from the given node based on the document view.
Parameters:
  absPath - path to the node serving as root to export
Parameters:
  out - OutputStream to receive the XML



exportSystemView
public void exportSystemView(String absPath, ContentHandler contentHandler, boolean skipBinary, boolean noRecurse) throws PathNotFoundException, SAXException, RepositoryException(Code)
Exports XML data from the given node based on the system view.
Parameters:
  absPath - path to the node serving as root to export
Parameters:
  contentHandler - SAX ContentHandler to receive the XML



exportSystemView
public void exportSystemView(String absPath, OutputStream out, boolean skipBinary, boolean noRecurse) throws IOException, PathNotFoundException, RepositoryException(Code)
Exports XML data from the given node based on the system view.
Parameters:
  absPath - path to the node serving as root to export
Parameters:
  out - OutputStream to receive the XML



getAttribute
public Object getAttribute(String name)(Code)
Returns a session attribute.
Parameters:
  name - the session attribute name



getAttributeNames
public String[] getAttributeNames()(Code)
Returns an array of the session attribute names.



getImportContentHandler
public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException(Code)
Returns a SAX ContentHandler to important data.
Parameters:
  parentAbsPath - the absolute path of the parent node



getItem
public Item getItem(String absPath) throws PathNotFoundException, RepositoryException(Code)
Returns an item based on an absolute path.
Parameters:
  absPath - the path locating the item.
throws:
  PathNotFoundException - if the path does not name an item



getLockTokens
public String[] getLockTokens()(Code)
Returns the current lock tokens.



getNamespacePrefix
public String getNamespacePrefix(String uri) throws NamespaceException, RepositoryException(Code)
Returns the prefix for a given URI.



getNamespacePrefixes
public String[] getNamespacePrefixes() throws RepositoryException(Code)
Returns the session's namespace prefixes.



getNamespaceURI
public String getNamespaceURI(String prefix) throws NamespaceException, RepositoryException(Code)
Returns the URI for a given namespace prefix.



getNodeByUUID
public Node getNodeByUUID(String uuid) throws ItemNotFoundException, RepositoryException(Code)
Finds a node by its UUID
Parameters:
  uuid - the node's UUID.



getRepository
abstract public Repository getRepository()(Code)
Returns the owning repository.



getRootNode
abstract public Node getRootNode() throws RepositoryException(Code)
Returns the session's root node.



getUserID
public String getUserID()(Code)
Returns the user who opened this session.



getValueFactory
public ValueFactory getValueFactory() throws UnsupportedRepositoryOperationException, RepositoryException(Code)
Returns the session's value factory.



getWorkspace
public Workspace getWorkspace()(Code)
Returns the repository's workspace for this session.



hasPendingChanges
public boolean hasPendingChanges() throws RepositoryException(Code)
Returns true if the session has changes.



impersonate
public Session impersonate(Credentials credentials) throws LoginException, RepositoryException(Code)
Create a new session with the new credentials.
Parameters:
  credentials - security credentials for the new sessions.



importXML
public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, VersionException, InvalidSerializedDataException, LockException, RepositoryException(Code)
Import data based on an XML stream.
Parameters:
  parentAbsPath - path to the node which will be the data's parent.
Parameters:
  in - InputStream to the XML data



isLive
public boolean isLive()(Code)
Return true if the session is active.



itemExists
public boolean itemExists(String absPath) throws RepositoryException(Code)
Returns true if the item named by the path exists.
Parameters:
  absPath - a path locating the item.



logout
public void logout()(Code)
Close the session.



move
public void move(String srcAbsPath, String destAbsPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException(Code)
Moves the node given by the source path to the destination path.
Parameters:
  srcAbsPath - the absolute path name of the source node
Parameters:
  destAbsPath - the absolute path name of the destination node



refresh
public void refresh(boolean keepChanges) throws RepositoryException(Code)
Updates changes from the repository.



removeLockToken
public void removeLockToken(String lt)(Code)
Removes the named lock token.



save
public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException(Code)
Saves changes to the workspace.



setNamespacePrefix
public void setNamespacePrefix(String newPrefix, String existingUri) throws NamespaceException, RepositoryException(Code)
Exports XML data from the given node based on the document view.
Parameters:
  absPath - path to the node serving as root to export
Parameters:
  out - OutputStream to receive the XML



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.