Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.slide.common
Interface NamespaceAccessToken  view NamespaceAccessToken download NamespaceAccessToken.java

All Superinterfaces:
javax.transaction.UserTransaction
All Known Implementing Classes:
NamespaceAccessTokenImpl

public interface NamespaceAccessToken
extends javax.transaction.UserTransaction

The NamespaceAccessToken is an interface used to completely hide the real Namespace object reference from the client application. It is used by Slide to authenticate and control any operations on the namespace.

Using the NamespaceAccessToken, the application can obtain access to the helper interfaces (Content, Lock, Macro, Security and Structure).

The NamespaceAccessToken object implements the UserTransaction interface (see the Java Transaction API documentation for more details) to allow the client to control transaction demarcation.

Version:
$Revision: 1.22 $

Method Summary
 void disconnect()
          Disconnect.
 void exportData(SlideToken token, java.io.Writer writer)
          Saves Slide Data to XML.
 void exportData(SlideToken token, java.io.Writer writer, java.lang.String startNode)
          Saves Slide Data to XML.
 org.apache.slide.content.Content getContentHelper()
          Get the version helper.
 org.apache.slide.lock.Lock getLockHelper()
          Get the lock helper.
 org.apache.slide.util.logger.Logger getLogger()
          Get namespace logger.
 org.apache.slide.macro.Macro getMacroHelper()
          Get the macro helper.
 java.lang.String getName()
          Get namespace name.
 NamespaceConfig getNamespaceConfig()
          Retrive the namespace configuration.
 org.apache.slide.search.Search getSearchHelper()
          Get the lock helper.
 org.apache.slide.security.Security getSecurityHelper()
          Get the security helper.
 org.apache.slide.structure.Structure getStructureHelper()
          Get the data helper.
 javax.transaction.TransactionManager getTransactionManager()
           
 Uri getUri(SlideToken token, java.lang.String uri)
          Builds a new uri object to access this namespace.
 void importData(SlideToken token, org.apache.slide.util.conf.Configuration objectNodeConfiguration)
          Import data from configuration object.
 void importData(SlideToken token, java.io.Reader reader)
          Import data from reader.
 
Methods inherited from interface javax.transaction.UserTransaction
begin, commit, getStatus, rollback, setRollbackOnly, setTransactionTimeout
 

Method Detail

getNamespaceConfig

public NamespaceConfig getNamespaceConfig()
Retrive the namespace configuration.


importData

public void importData(SlideToken token,
                       org.apache.slide.util.conf.Configuration objectNodeConfiguration)
                throws org.apache.slide.util.conf.ConfigurationException,
                       UnknownObjectClassException,
                       ServiceAccessException
Import data from configuration object.


importData

public void importData(SlideToken token,
                       java.io.Reader reader)
                throws org.apache.slide.util.conf.ConfigurationException,
                       UnknownObjectClassException,
                       ServiceAccessException,
                       org.xml.sax.SAXException,
                       java.io.IOException
Import data from reader.


exportData

public void exportData(SlideToken token,
                       java.io.Writer writer)
                throws SlideException
Saves Slide Data to XML.


exportData

public void exportData(SlideToken token,
                       java.io.Writer writer,
                       java.lang.String startNode)
                throws SlideException
Saves Slide Data to XML.


getStructureHelper

public org.apache.slide.structure.Structure getStructureHelper()
Get the data helper.


getContentHelper

public org.apache.slide.content.Content getContentHelper()
Get the version helper.


getLockHelper

public org.apache.slide.lock.Lock getLockHelper()
Get the lock helper.


getSearchHelper

public org.apache.slide.search.Search getSearchHelper()
Get the lock helper.


getSecurityHelper

public org.apache.slide.security.Security getSecurityHelper()
Get the security helper.


getMacroHelper

public org.apache.slide.macro.Macro getMacroHelper()
Get the macro helper.


disconnect

public void disconnect()
Disconnect.


getName

public java.lang.String getName()
Get namespace name.


getUri

public Uri getUri(SlideToken token,
                  java.lang.String uri)
Builds a new uri object to access this namespace.


getLogger

public org.apache.slide.util.logger.Logger getLogger()
Get namespace logger.


getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()