|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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. |
Content |
getContentHelper()
Get the version helper. |
Lock |
getLockHelper()
Get the lock helper. |
Logger |
getLogger()
Get namespace logger. |
Macro |
getMacroHelper()
Get the macro helper. |
java.lang.String |
getName()
Get namespace name. |
NamespaceConfig |
getNamespaceConfig()
Retrive the namespace configuration. |
Search |
getSearchHelper()
Get the lock helper. |
Security |
getSecurityHelper()
Get the security helper. |
Structure |
getStructureHelper()
Get the data helper. |
Uri |
getUri(SlideToken token,
java.lang.String uri)
Builds a new uri object to access this namespace. |
void |
importData(SlideToken token,
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 |
public NamespaceConfig getNamespaceConfig()
public void importData(SlideToken token, Configuration objectNodeConfiguration) throws ConfigurationException, UnknownObjectClassException, ServiceAccessException
token
- SlideToken, used for access to the namespaceobjectNodeConfiguration
- Configuration object
ConfigurationException
- Something went wrong during the
reading of the XML
UnknownObjectClassException
- Object class not found
ServiceAccessException
- Error accessing servicepublic void importData(SlideToken token, java.io.Reader reader) throws ConfigurationException, UnknownObjectClassException, ServiceAccessException, org.xml.sax.SAXException, java.io.IOException
token
- SlideToken, used for access to the namespacereader
- Reader
ConfigurationException
- Something went wrong during the
reading of the XML
UnknownObjectClassException
- Object class not found
ServiceAccessException
- Error accessing service
org.xml.sax.SAXException
java.io.IOException
public void exportData(SlideToken token, java.io.Writer writer) throws SlideException
writer
- Writer
SlideException
public void exportData(SlideToken token, java.io.Writer writer, java.lang.String startNode) throws SlideException
writer
- WriterstartNode
- Start generating XML from this node of the Slide tree
SlideException
public Structure getStructureHelper()
public Content getContentHelper()
public Lock getLockHelper()
public Search getSearchHelper()
public Security getSecurityHelper()
public Macro getMacroHelper()
public void disconnect()
public java.lang.String getName()
public Uri getUri(SlideToken token, java.lang.String uri)
token
- SlideTokenuri
- Requested Uri
public Logger getLogger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |