org.apache.juddi.datastore
Interface DataStore

All Known Implementing Classes:
JDBCDataStore

public interface DataStore

Author:
Steve Viens (sviens@apache.org)

Method Summary
 void beginTrans()
          begin transaction
 void commit()
          commit transaction
 void deleteAssertions(java.lang.String publisherID, java.util.Vector assertionVector)
           
 void deleteBinding(java.lang.String bindingKey)
           
 void deleteBusiness(java.lang.String businessKey)
           
 void deletePublisher(java.lang.String publisherID)
           
 void deleteService(java.lang.String serviceKey)
           
 void deleteTModel(java.lang.String tModelKey)
           
 BindingTemplate fetchBinding(java.lang.String bindingKey)
           
 BusinessEntity fetchBusiness(java.lang.String businessKey)
           
 BusinessInfo fetchBusinessInfo(java.lang.String businessKey)
           
 PublisherInfo fetchPublisherInfo(java.lang.String publisherID)
           
 BusinessService fetchService(java.lang.String serviceKey)
           
 ServiceInfo fetchServiceInfo(java.lang.String serviceKey)
           
 TModel fetchTModel(java.lang.String tModelKey)
           
 TModelInfo fetchTModelInfo(java.lang.String tModelKey)
           
 java.util.Vector findBinding(java.lang.String serviceKey, CategoryBag categoryBag, TModelBag tModelbag, FindQualifiers findQualifiers)
           
 java.util.Vector findBusiness(java.util.Vector nameVector, DiscoveryURLs discoveryURLs, IdentifierBag identifierBag, CategoryBag categoryBag, TModelBag tModelBag, FindQualifiers findQualifiers)
           
 java.util.Vector findPublisher(java.lang.String name, FindQualifiers findQualifiers)
           
 java.util.Vector findRegisteredBusinesses(java.lang.String publisherID)
           
 java.util.Vector findRegisteredTModels(java.lang.String publisherID)
           
 java.util.Vector findRelatedBusinesses(java.lang.String businessKey, KeyedReference keyedReference, FindQualifiers findQualifiers)
           
 java.util.Vector findService(java.lang.String businessKey, java.util.Vector names, CategoryBag categoryBag, TModelBag tModelBag, FindQualifiers findQualifiers)
           
 java.util.Vector findTModel(java.lang.String name, CategoryBag categoryBag, IdentifierBag identifierBag, FindQualifiers findQualifiers)
           
 java.lang.String generateToken(Publisher publisher)
           
 java.util.Vector getAssertions(java.lang.String publisherID)
           
 java.util.Vector getAssertionStatusItems(java.lang.String publisherID, java.lang.String completionStatus)
           
 Publisher getAuthTokenPublisher(java.lang.String token)
           
 Publisher getPublisher(java.lang.String publisherID)
          verify that the individual or system identified by the 'userID' is using the correct password and has the 'authority' to publish to the UDDI registry.
 boolean isAdministrator(java.lang.String publisherID)
           
 boolean isAuthTokenExpired(java.lang.String token)
           
 boolean isBindingPublisher(java.lang.String bindingKey, java.lang.String publisherID)
           
 boolean isBusinessPublisher(java.lang.String businessKey, java.lang.String publisherID)
           
 boolean isServicePublisher(java.lang.String serviceKey, java.lang.String publisherID)
           
 boolean isTModelPublisher(java.lang.String tModelKey, java.lang.String publisherID)
           
 boolean isValidBindingKey(java.lang.String bindingKey)
           
 boolean isValidBusinessKey(java.lang.String businessKey)
           
 boolean isValidServiceKey(java.lang.String serviceKey)
           
 boolean isValidTModelKey(java.lang.String tModelKey)
           
 void markTModelAsDeleted(java.lang.String tModelKey)
           
 void release()
          release this DataStore
 void retireAuthToken(java.lang.String token)
           
 void rollback()
          rollback transaction
 void saveAssertions(java.lang.String publisherID, java.util.Vector assertionVector)
           
 void saveBinding(BindingTemplate binding)
           
 void saveBusiness(BusinessEntity business, java.lang.String publisherID)
           
 void savePublisher(Publisher publisher)
           
 void saveService(BusinessService service)
           
 void saveTModel(TModel tModel, java.lang.String publisherID)
           
 java.util.Vector setAssertions(java.lang.String publisherID, java.util.Vector assertionVector)
           
 void storeAuthToken(java.lang.String token, Publisher publisher)
           
 void touchAuthToken(java.lang.String token)
           
 

Method Detail

release

void release()
release this DataStore


beginTrans

void beginTrans()
                throws RegistryException
begin transaction

Throws:
RegistryException

commit

void commit()
            throws RegistryException
commit transaction

Throws:
RegistryException

rollback

void rollback()
              throws RegistryException
rollback transaction

Throws:
RegistryException

getPublisher

Publisher getPublisher(java.lang.String publisherID)
                       throws RegistryException
verify that the individual or system identified by the 'userID' is using the correct password and has the 'authority' to publish to the UDDI registry.

Parameters:
publisherID -
Returns:
publisher
Throws:
RegistryException

isAdministrator

boolean isAdministrator(java.lang.String publisherID)
                        throws RegistryException
Parameters:
publisherID -
Returns:
boolean
Throws:
RegistryException

generateToken

java.lang.String generateToken(Publisher publisher)
                               throws RegistryException
Parameters:
publisher -
Returns:
a secure Token
Throws:
RegistryException

storeAuthToken

void storeAuthToken(java.lang.String token,
                    Publisher publisher)
                    throws RegistryException
Throws:
RegistryException

retireAuthToken

void retireAuthToken(java.lang.String token)
                     throws RegistryException
Throws:
RegistryException

getAuthTokenPublisher

Publisher getAuthTokenPublisher(java.lang.String token)
                                throws RegistryException
Throws:
RegistryException

isAuthTokenExpired

boolean isAuthTokenExpired(java.lang.String token)
                           throws RegistryException
Throws:
RegistryException

touchAuthToken

void touchAuthToken(java.lang.String token)
                    throws RegistryException
Throws:
RegistryException

saveBusiness

void saveBusiness(BusinessEntity business,
                  java.lang.String publisherID)
                  throws RegistryException
Throws:
RegistryException

fetchBusiness

BusinessEntity fetchBusiness(java.lang.String businessKey)
                             throws RegistryException
Throws:
RegistryException

deleteBusiness

void deleteBusiness(java.lang.String businessKey)
                    throws RegistryException
Throws:
RegistryException

isBusinessPublisher

boolean isBusinessPublisher(java.lang.String businessKey,
                            java.lang.String publisherID)
                            throws RegistryException
Throws:
RegistryException

isValidBusinessKey

boolean isValidBusinessKey(java.lang.String businessKey)
                           throws RegistryException
Throws:
RegistryException

saveService

void saveService(BusinessService service)
                 throws RegistryException
Throws:
RegistryException

fetchService

BusinessService fetchService(java.lang.String serviceKey)
                             throws RegistryException
Throws:
RegistryException

deleteService

void deleteService(java.lang.String serviceKey)
                   throws RegistryException
Throws:
RegistryException

isValidServiceKey

boolean isValidServiceKey(java.lang.String serviceKey)
                          throws RegistryException
Throws:
RegistryException

isServicePublisher

boolean isServicePublisher(java.lang.String serviceKey,
                           java.lang.String publisherID)
                           throws RegistryException
Throws:
RegistryException

saveBinding

void saveBinding(BindingTemplate binding)
                 throws RegistryException
Throws:
RegistryException

fetchBinding

BindingTemplate fetchBinding(java.lang.String bindingKey)
                             throws RegistryException
Throws:
RegistryException

deleteBinding

void deleteBinding(java.lang.String bindingKey)
                   throws RegistryException
Throws:
RegistryException

isValidBindingKey

boolean isValidBindingKey(java.lang.String bindingKey)
                          throws RegistryException
Throws:
RegistryException

isBindingPublisher

boolean isBindingPublisher(java.lang.String bindingKey,
                           java.lang.String publisherID)
                           throws RegistryException
Throws:
RegistryException

saveTModel

void saveTModel(TModel tModel,
                java.lang.String publisherID)
                throws RegistryException
Throws:
RegistryException

fetchTModel

TModel fetchTModel(java.lang.String tModelKey)
                   throws RegistryException
Throws:
RegistryException

deleteTModel

void deleteTModel(java.lang.String tModelKey)
                  throws RegistryException
Throws:
RegistryException

markTModelAsDeleted

void markTModelAsDeleted(java.lang.String tModelKey)
                         throws RegistryException
Throws:
RegistryException

isValidTModelKey

boolean isValidTModelKey(java.lang.String tModelKey)
                         throws RegistryException
Throws:
RegistryException

isTModelPublisher

boolean isTModelPublisher(java.lang.String tModelKey,
                          java.lang.String publisherID)
                          throws RegistryException
Throws:
RegistryException

fetchBusinessInfo

BusinessInfo fetchBusinessInfo(java.lang.String businessKey)
                               throws RegistryException
Throws:
RegistryException

fetchServiceInfo

ServiceInfo fetchServiceInfo(java.lang.String serviceKey)
                             throws RegistryException
Throws:
RegistryException

fetchTModelInfo

TModelInfo fetchTModelInfo(java.lang.String tModelKey)
                           throws RegistryException
Throws:
RegistryException

findBusiness

java.util.Vector findBusiness(java.util.Vector nameVector,
                              DiscoveryURLs discoveryURLs,
                              IdentifierBag identifierBag,
                              CategoryBag categoryBag,
                              TModelBag tModelBag,
                              FindQualifiers findQualifiers)
                              throws RegistryException
Throws:
RegistryException

findService

java.util.Vector findService(java.lang.String businessKey,
                             java.util.Vector names,
                             CategoryBag categoryBag,
                             TModelBag tModelBag,
                             FindQualifiers findQualifiers)
                             throws RegistryException
Throws:
RegistryException

findBinding

java.util.Vector findBinding(java.lang.String serviceKey,
                             CategoryBag categoryBag,
                             TModelBag tModelbag,
                             FindQualifiers findQualifiers)
                             throws RegistryException
Throws:
RegistryException

findTModel

java.util.Vector findTModel(java.lang.String name,
                            CategoryBag categoryBag,
                            IdentifierBag identifierBag,
                            FindQualifiers findQualifiers)
                            throws RegistryException
Throws:
RegistryException

findRelatedBusinesses

java.util.Vector findRelatedBusinesses(java.lang.String businessKey,
                                       KeyedReference keyedReference,
                                       FindQualifiers findQualifiers)
                                       throws RegistryException
Throws:
RegistryException

findRegisteredBusinesses

java.util.Vector findRegisteredBusinesses(java.lang.String publisherID)
                                          throws RegistryException
Throws:
RegistryException

findRegisteredTModels

java.util.Vector findRegisteredTModels(java.lang.String publisherID)
                                       throws RegistryException
Throws:
RegistryException

saveAssertions

void saveAssertions(java.lang.String publisherID,
                    java.util.Vector assertionVector)
                    throws RegistryException
Throws:
RegistryException

deleteAssertions

void deleteAssertions(java.lang.String publisherID,
                      java.util.Vector assertionVector)
                      throws RegistryException
Throws:
RegistryException

getAssertions

java.util.Vector getAssertions(java.lang.String publisherID)
                               throws RegistryException
Throws:
RegistryException

setAssertions

java.util.Vector setAssertions(java.lang.String publisherID,
                               java.util.Vector assertionVector)
                               throws RegistryException
Throws:
RegistryException

getAssertionStatusItems

java.util.Vector getAssertionStatusItems(java.lang.String publisherID,
                                         java.lang.String completionStatus)
                                         throws RegistryException
Throws:
RegistryException

savePublisher

void savePublisher(Publisher publisher)
                   throws RegistryException
Throws:
RegistryException

deletePublisher

void deletePublisher(java.lang.String publisherID)
                     throws RegistryException
Throws:
RegistryException

fetchPublisherInfo

PublisherInfo fetchPublisherInfo(java.lang.String publisherID)
                                 throws RegistryException
Throws:
RegistryException

findPublisher

java.util.Vector findPublisher(java.lang.String name,
                               FindQualifiers findQualifiers)
                               throws RegistryException
Throws:
RegistryException


Copyright © 2004-2007. All Rights Reserved.