cgl.expeditor.datastore.contextspace
Class WSContextSpaceDataStore

java.lang.Object
  extended bycgl.expeditor.datastore.contextspace.WSContextSpaceDataStore
All Implemented Interfaces:
ContextSpaceDataStore

public class WSContextSpaceDataStore
extends java.lang.Object
implements ContextSpaceDataStore

Author:
Mehmet S. Aktas (maktas@indiana.edu)

Constructor Summary
WSContextSpaceDataStore()
          Create a new ContextDataStore and aquire a JDBC connection from the connection pool.
 
Method Summary
 void deleteContext(java.lang.String contextKey)
           
 Attribute fetchContext(java.lang.String contextKey)
           
 AutharizationToken getAuthTokenPublisher(java.lang.String token)
           
 space.remote.MicroSpace getSpaceAccessor()
           
 boolean isAuthTokenExpired(java.lang.String token)
           
 boolean isContextPublisher(Attribute context, java.lang.String publisherID)
           
 boolean isContextReader(Attribute context, java.lang.String publisherID)
           
static void main(java.lang.String[] args)
           
 void saveContext(Attribute context)
           
static void test(java.sql.Connection conn)
           
 void touchAuthToken(java.lang.String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSContextSpaceDataStore

public WSContextSpaceDataStore()
Create a new ContextDataStore and aquire a JDBC connection from the connection pool.

Method Detail

getSpaceAccessor

public space.remote.MicroSpace getSpaceAccessor()

isAuthTokenExpired

public boolean isAuthTokenExpired(java.lang.String token)
                           throws org.apache.juddi.error.RegistryException
Specified by:
isAuthTokenExpired in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

touchAuthToken

public void touchAuthToken(java.lang.String token)
                    throws org.apache.juddi.error.RegistryException
Specified by:
touchAuthToken in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

getAuthTokenPublisher

public AutharizationToken getAuthTokenPublisher(java.lang.String token)
                                         throws org.apache.juddi.error.RegistryException
Specified by:
getAuthTokenPublisher in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

isContextReader

public boolean isContextReader(Attribute context,
                               java.lang.String publisherID)
                        throws org.apache.juddi.error.RegistryException
Specified by:
isContextReader in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

isContextPublisher

public boolean isContextPublisher(Attribute context,
                                  java.lang.String publisherID)
                           throws org.apache.juddi.error.RegistryException
Specified by:
isContextPublisher in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

fetchContext

public Attribute fetchContext(java.lang.String contextKey)
                       throws org.apache.juddi.error.RegistryException
Specified by:
fetchContext in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

saveContext

public void saveContext(Attribute context)
                 throws org.apache.juddi.error.RegistryException
Specified by:
saveContext in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

deleteContext

public void deleteContext(java.lang.String contextKey)
                   throws org.apache.juddi.error.RegistryException
Specified by:
deleteContext in interface ContextSpaceDataStore
Throws:
org.apache.juddi.error.RegistryException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

test

public static void test(java.sql.Connection conn)
                 throws java.lang.Exception
Throws:
java.lang.Exception