org.apache.ws.scout.registry
Class BusinessLifeCycleManagerV3Impl

java.lang.Object
  extended by org.apache.ws.scout.registry.LifeCycleManagerImpl
      extended by org.apache.ws.scout.registry.BusinessLifeCycleManagerV3Impl
All Implemented Interfaces:
java.io.Serializable, javax.xml.registry.BusinessLifeCycleManager, javax.xml.registry.LifeCycleManager

public class BusinessLifeCycleManagerV3Impl
extends LifeCycleManagerImpl
implements javax.xml.registry.BusinessLifeCycleManager, java.io.Serializable

Implements JAXR BusinessLifeCycleManager Interface. For futher details, look into the JAXR API Javadoc.

Author:
Anil Saldhana, Geir Magnusson Jr., Tom Cunningham
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.ws.scout.registry.LifeCycleManagerImpl
registry
 
Fields inherited from interface javax.xml.registry.LifeCycleManager
ASSOCIATION, AUDITABLE_EVENT, CLASSIFICATION, CLASSIFICATION_SCHEME, CONCEPT, EMAIL_ADDRESS, EXTERNAL_IDENTIFIER, EXTERNAL_LINK, EXTRINSIC_OBJECT, INTERNATIONAL_STRING, KEY, LOCALIZED_STRING, ORGANIZATION, PERSON_NAME, POSTAL_ADDRESS, REGISTRY_ENTRY, REGISTRY_PACKAGE, SERVICE, SERVICE_BINDING, SLOT, SPECIFICATION_LINK, TELEPHONE_NUMBER, USER, VERSIONABLE
 
Constructor Summary
BusinessLifeCycleManagerV3Impl(javax.xml.registry.RegistryService registry)
           
 
Method Summary
 void confirmAssociation(javax.xml.registry.infomodel.Association assoc)
           
 javax.xml.registry.BulkResponse deleteAssociations(java.util.Collection associationKeys)
           
 javax.xml.registry.BulkResponse deleteClassificationSchemes(java.util.Collection schemeKeys)
           
 javax.xml.registry.BulkResponse deleteConcepts(java.util.Collection conceptKeys)
           
 javax.xml.registry.BulkResponse deleteObjects(java.util.Collection keys, java.lang.String objectType)
          Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.
protected  javax.xml.registry.BulkResponse deleteOperation(java.util.Collection<javax.xml.registry.infomodel.Key> keys, java.lang.String op)
           
 javax.xml.registry.BulkResponse deleteOrganizations(java.util.Collection orgkeys)
           
 javax.xml.registry.BulkResponse deleteServiceBindings(java.util.Collection bindingKeys)
           
 javax.xml.registry.BulkResponse deleteServices(java.util.Collection serviceKeys)
           
protected  java.lang.Object executeOperation(java.lang.Object dataarray, java.lang.String op)
           
 javax.xml.registry.BulkResponse saveAssociations(java.util.Collection associations, boolean replace)
           
 javax.xml.registry.BulkResponse saveClassificationSchemes(java.util.Collection schemes)
           
 javax.xml.registry.BulkResponse saveConcepts(java.util.Collection concepts)
           
 javax.xml.registry.BulkResponse saveObjects(java.util.Collection col)
          Saves one or more Objects to the registry.
 javax.xml.registry.BulkResponse saveOrganizations(java.util.Collection organizations)
           
 javax.xml.registry.BulkResponse saveServiceBindings(java.util.Collection bindings)
           
 javax.xml.registry.BulkResponse saveServices(java.util.Collection services)
           
 void unConfirmAssociation(javax.xml.registry.infomodel.Association assoc)
           
 
Methods inherited from class org.apache.ws.scout.registry.LifeCycleManagerImpl
createAssociation, createClassification, createClassification, createClassification, createClassificationScheme, createClassificationScheme, createClassificationScheme, createConcept, createConcept, createEmailAddress, createEmailAddress, createExternalIdentifier, createExternalIdentifier, createExternalLink, createExternalLink, createExtrinsicObject, createInternationalString, createInternationalString, createInternationalString, createKey, createLocalizedString, createLocalizedString, createObject, createOrganization, createOrganization, createPersonName, createPersonName, createPostalAddress, createRegistryPackage, createRegistryPackage, createService, createService, createServiceBinding, createSlot, createSlot, createSpecificationLink, createTelephoneNumber, createUser, deleteObjects, deprecateObjects, getRegistryService, unDeprecateObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.registry.LifeCycleManager
createAssociation, createClassification, createClassification, createClassification, createClassificationScheme, createClassificationScheme, createClassificationScheme, createConcept, createConcept, createEmailAddress, createEmailAddress, createExternalIdentifier, createExternalIdentifier, createExternalLink, createExternalLink, createExtrinsicObject, createInternationalString, createInternationalString, createInternationalString, createKey, createLocalizedString, createLocalizedString, createObject, createOrganization, createOrganization, createPersonName, createPersonName, createPostalAddress, createRegistryPackage, createRegistryPackage, createService, createService, createServiceBinding, createSlot, createSlot, createSpecificationLink, createTelephoneNumber, createUser, deleteObjects, deprecateObjects, getRegistryService, unDeprecateObjects
 

Constructor Detail

BusinessLifeCycleManagerV3Impl

public BusinessLifeCycleManagerV3Impl(javax.xml.registry.RegistryService registry)
Method Detail

deleteObjects

public javax.xml.registry.BulkResponse deleteObjects(java.util.Collection keys,
                                                     java.lang.String objectType)
                                              throws javax.xml.registry.JAXRException
Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.

Specified by:
deleteObjects in interface javax.xml.registry.LifeCycleManager
Specified by:
deleteObjects in class LifeCycleManagerImpl
Parameters:
keys -
objectType -
Returns:
BulkResponse object
Throws:
javax.xml.registry.JAXRException

deleteAssociations

public javax.xml.registry.BulkResponse deleteAssociations(java.util.Collection associationKeys)
                                                   throws javax.xml.registry.JAXRException
Specified by:
deleteAssociations in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

deleteClassificationSchemes

public javax.xml.registry.BulkResponse deleteClassificationSchemes(java.util.Collection schemeKeys)
                                                            throws javax.xml.registry.JAXRException
Specified by:
deleteClassificationSchemes in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

deleteConcepts

public javax.xml.registry.BulkResponse deleteConcepts(java.util.Collection conceptKeys)
                                               throws javax.xml.registry.JAXRException
Specified by:
deleteConcepts in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

deleteOrganizations

public javax.xml.registry.BulkResponse deleteOrganizations(java.util.Collection orgkeys)
                                                    throws javax.xml.registry.JAXRException
Specified by:
deleteOrganizations in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

deleteServiceBindings

public javax.xml.registry.BulkResponse deleteServiceBindings(java.util.Collection bindingKeys)
                                                      throws javax.xml.registry.JAXRException
Specified by:
deleteServiceBindings in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

deleteServices

public javax.xml.registry.BulkResponse deleteServices(java.util.Collection serviceKeys)
                                               throws javax.xml.registry.JAXRException
Specified by:
deleteServices in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveObjects

public javax.xml.registry.BulkResponse saveObjects(java.util.Collection col)
                                            throws javax.xml.registry.JAXRException
Saves one or more Objects to the registry. An object may be a RegistryObject subclass instance. If an object is not in the registry, it is created in the registry. If it already exists in the registry and has been modified, then its state is updated (replaced) in the registry

TODO:Check if juddi can provide a facility to store a collection of heterogenous objects

TODO - does this belong here? it's really an overload of LifecycleManager.saveObjects, but all the help we need like saveOrganization() is up here...

Specified by:
saveObjects in interface javax.xml.registry.LifeCycleManager
Specified by:
saveObjects in class LifeCycleManagerImpl
Parameters:
col -
Returns:
a BulkResponse containing the Collection of keys for those objects that were saved successfully and any SaveException that was encountered in case of partial commit
Throws:
javax.xml.registry.JAXRException

saveAssociations

public javax.xml.registry.BulkResponse saveAssociations(java.util.Collection associations,
                                                        boolean replace)
                                                 throws javax.xml.registry.JAXRException
Specified by:
saveAssociations in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveClassificationSchemes

public javax.xml.registry.BulkResponse saveClassificationSchemes(java.util.Collection schemes)
                                                          throws javax.xml.registry.JAXRException
Specified by:
saveClassificationSchemes in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveConcepts

public javax.xml.registry.BulkResponse saveConcepts(java.util.Collection concepts)
                                             throws javax.xml.registry.JAXRException
Specified by:
saveConcepts in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveOrganizations

public javax.xml.registry.BulkResponse saveOrganizations(java.util.Collection organizations)
                                                  throws javax.xml.registry.JAXRException
Specified by:
saveOrganizations in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveServiceBindings

public javax.xml.registry.BulkResponse saveServiceBindings(java.util.Collection bindings)
                                                    throws javax.xml.registry.JAXRException
Specified by:
saveServiceBindings in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

saveServices

public javax.xml.registry.BulkResponse saveServices(java.util.Collection services)
                                             throws javax.xml.registry.JAXRException
Specified by:
saveServices in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException

confirmAssociation

public void confirmAssociation(javax.xml.registry.infomodel.Association assoc)
                        throws javax.xml.registry.JAXRException,
                               javax.xml.registry.InvalidRequestException
Specified by:
confirmAssociation in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException

unConfirmAssociation

public void unConfirmAssociation(javax.xml.registry.infomodel.Association assoc)
                          throws javax.xml.registry.JAXRException,
                                 javax.xml.registry.InvalidRequestException
Specified by:
unConfirmAssociation in interface javax.xml.registry.BusinessLifeCycleManager
Throws:
javax.xml.registry.JAXRException
javax.xml.registry.InvalidRequestException

executeOperation

protected java.lang.Object executeOperation(java.lang.Object dataarray,
                                            java.lang.String op)
                                     throws RegistryV3Exception,
                                            javax.xml.registry.JAXRException
Throws:
RegistryV3Exception
javax.xml.registry.JAXRException

deleteOperation

protected javax.xml.registry.BulkResponse deleteOperation(java.util.Collection<javax.xml.registry.infomodel.Key> keys,
                                                          java.lang.String op)
                                                   throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.