org.apache.ws.scout.registry
Class BusinessLifeCycleManagerImpl

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

public class BusinessLifeCycleManagerImpl
extends LifeCycleManagerImpl
implements BusinessLifeCycleManager, Serializable

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

Author:
Anil Saldhana, Geir Magnusson Jr.
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
BusinessLifeCycleManagerImpl(RegistryService registry)
           
 
Method Summary
 void confirmAssociation(Association assoc)
           
 BulkResponse deleteAssociations(Collection<Key> associationKeys)
           
 BulkResponse deleteClassificationSchemes(Collection<Key> schemeKeys)
           
 BulkResponse deleteConcepts(Collection<Key> conceptKeys)
           
 BulkResponse deleteObjects(Collection<Key> keys, String objectType)
          Deletes one or more previously submitted objects from the registry using the object keys and a specified objectType attribute.
protected  BulkResponse deleteOperation(Collection<Key> keys, String op)
           
 BulkResponse deleteOrganizations(Collection<Key> orgkeys)
           
 BulkResponse deleteServiceBindings(Collection<Key> bindingKeys)
           
 BulkResponse deleteServices(Collection<Key> serviceKeys)
           
protected  org.apache.xmlbeans.XmlObject executeOperation(Object dataarray, String op)
           
 BulkResponse saveAssociations(Collection associations, boolean replace)
           
 BulkResponse saveClassificationSchemes(Collection schemes)
           
 BulkResponse saveConcepts(Collection concepts)
           
 BulkResponse saveObjects(Collection col)
          Saves one or more Objects to the registry.
 BulkResponse saveOrganizations(Collection organizations)
           
 BulkResponse saveServiceBindings(Collection bindings)
           
 BulkResponse saveServices(Collection services)
           
 void unConfirmAssociation(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

BusinessLifeCycleManagerImpl

public BusinessLifeCycleManagerImpl(RegistryService registry)
Method Detail

deleteObjects

public BulkResponse deleteObjects(Collection<Key> keys,
                                  String objectType)
                           throws 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 LifeCycleManager
Specified by:
deleteObjects in class LifeCycleManagerImpl
Parameters:
keys -
objectType -
Returns:
Throws:
JAXRException

deleteAssociations

public BulkResponse deleteAssociations(Collection<Key> associationKeys)
                                throws JAXRException
Specified by:
deleteAssociations in interface BusinessLifeCycleManager
Throws:
JAXRException

deleteClassificationSchemes

public BulkResponse deleteClassificationSchemes(Collection<Key> schemeKeys)
                                         throws JAXRException
Specified by:
deleteClassificationSchemes in interface BusinessLifeCycleManager
Throws:
JAXRException

deleteConcepts

public BulkResponse deleteConcepts(Collection<Key> conceptKeys)
                            throws JAXRException
Specified by:
deleteConcepts in interface BusinessLifeCycleManager
Throws:
JAXRException

deleteOrganizations

public BulkResponse deleteOrganizations(Collection<Key> orgkeys)
                                 throws JAXRException
Specified by:
deleteOrganizations in interface BusinessLifeCycleManager
Throws:
JAXRException

deleteServiceBindings

public BulkResponse deleteServiceBindings(Collection<Key> bindingKeys)
                                   throws JAXRException
Specified by:
deleteServiceBindings in interface BusinessLifeCycleManager
Throws:
JAXRException

deleteServices

public BulkResponse deleteServices(Collection<Key> serviceKeys)
                            throws JAXRException
Specified by:
deleteServices in interface BusinessLifeCycleManager
Throws:
JAXRException

saveObjects

public BulkResponse saveObjects(Collection col)
                         throws 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 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:
JAXRException

saveAssociations

public BulkResponse saveAssociations(Collection associations,
                                     boolean replace)
                              throws JAXRException
Specified by:
saveAssociations in interface BusinessLifeCycleManager
Throws:
JAXRException

saveClassificationSchemes

public BulkResponse saveClassificationSchemes(Collection schemes)
                                       throws JAXRException
Specified by:
saveClassificationSchemes in interface BusinessLifeCycleManager
Throws:
JAXRException

saveConcepts

public BulkResponse saveConcepts(Collection concepts)
                          throws JAXRException
Specified by:
saveConcepts in interface BusinessLifeCycleManager
Throws:
JAXRException

saveOrganizations

public BulkResponse saveOrganizations(Collection organizations)
                               throws JAXRException
Specified by:
saveOrganizations in interface BusinessLifeCycleManager
Throws:
JAXRException

saveServiceBindings

public BulkResponse saveServiceBindings(Collection bindings)
                                 throws JAXRException
Specified by:
saveServiceBindings in interface BusinessLifeCycleManager
Throws:
JAXRException

saveServices

public BulkResponse saveServices(Collection services)
                          throws JAXRException
Specified by:
saveServices in interface BusinessLifeCycleManager
Throws:
JAXRException

confirmAssociation

public void confirmAssociation(Association assoc)
                        throws JAXRException,
                               InvalidRequestException
Specified by:
confirmAssociation in interface BusinessLifeCycleManager
Throws:
JAXRException
InvalidRequestException

unConfirmAssociation

public void unConfirmAssociation(Association assoc)
                          throws JAXRException,
                                 InvalidRequestException
Specified by:
unConfirmAssociation in interface BusinessLifeCycleManager
Throws:
JAXRException
InvalidRequestException

executeOperation

protected org.apache.xmlbeans.XmlObject executeOperation(Object dataarray,
                                                         String op)
                                                  throws RegistryException,
                                                         JAXRException
Throws:
RegistryException
JAXRException

deleteOperation

protected BulkResponse deleteOperation(Collection<Key> keys,
                                       String op)
                                throws JAXRException
Throws:
JAXRException


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.