Package com.sun.xml.registry.uddi
Class BusinessLifeCycleManagerImpl
- java.lang.Object
-
- com.sun.xml.registry.uddi.LifeCycleManagerImpl
-
- com.sun.xml.registry.uddi.BusinessLifeCycleManagerImpl
-
- All Implemented Interfaces:
BusinessLifeCycleManager,LifeCycleManager
public class BusinessLifeCycleManagerImpl extends LifeCycleManagerImpl implements BusinessLifeCycleManager
Class Declaration for Class1- Author:
-
-
Field Summary
-
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
Constructors Constructor Description BusinessLifeCycleManagerImpl()BusinessLifeCycleManagerImpl(RegistryServiceImpl service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfirmAssociation(Association association)Confirms this Association by the User associated with the caller.BulkResponsedeleteAssociations(Collection schemeKeys)Delete the Associations corresponding to the specified Keys.BulkResponsedeleteClassificationSchemes(Collection schemeKeys)Delete the ClassificationSchemes corresponding to the specified Keys.BulkResponsedeleteConcepts(Collection conceptKeys)Delete the Concepts corresponding to specified Keys.BulkResponsedeleteOrganizations(Collection organizationKeys)Delete the organizations corresponding to specified Keys.BulkResponsedeleteServiceBindings(Collection interfaceKeys)Delete the ServiceInterfaceBindings corresponding to specified Keys.BulkResponsedeleteServices(Collection serviceKeys)Delete the services corresponding to specified Keys.BulkResponsesaveAssociations(Collection associations, boolean replace)Saves specified Association instances.BulkResponsesaveClassificationSchemes(Collection schemes)Saves specified ClassificationScheme instances.BulkResponsesaveConcepts(Collection concepts)Adds or updates (replaces) specified Concepts.BulkResponsesaveOrganizations(Collection organizations)Adds or updates (replaces) specified Organizations.BulkResponsesaveServiceBindings(Collection bindings)Adds or updates (replaces) specified ServiceInterfaceBindings.BulkResponsesaveServices(Collection services)Adds or updates (replaces) specified Services.voidunConfirmAssociation(Association association)Undoes a previous confirmation of this Association by the User associated with the caller.-
Methods inherited from class com.sun.xml.registry.uddi.LifeCycleManagerImpl
createAssociation, createClassification, createClassification, createClassification, createClassificationScheme, createClassificationScheme, createClassificationScheme, createConcept, createConcept, createConceptEquivalence, createEmailAddress, createEmailAddress, createExternalIdentifier, createExternalIdentifier, createExternalLink, createExternalLink, createExtrinsicObject, createExtrinsicObject, createInternationalString, createInternationalString, createInternationalString, createKey, createLocalizedString, createLocalizedString, createObject, createOrganization, createOrganization, createPersonName, createPersonName, createPostalAddress, createRegistryPackage, createRegistryPackage, createService, createService, createServiceBinding, createSlot, createSlot, createSpecificationLink, createTelephoneNumber, createUser, deleteConceptEquivalence, deleteObjects, deleteObjects, deprecateObjects, getRegistryService, saveObjects, 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, deleteObjects, deprecateObjects, getRegistryService, saveObjects, unDeprecateObjects
-
-
-
-
Constructor Detail
-
BusinessLifeCycleManagerImpl
public BusinessLifeCycleManagerImpl()
-
BusinessLifeCycleManagerImpl
public BusinessLifeCycleManagerImpl(RegistryServiceImpl service)
-
-
Method Detail
-
saveOrganizations
public BulkResponse saveOrganizations(Collection organizations) throws JAXRException
Adds or updates (replaces) specified Organizations. Partial commits are allowed. Processing stops on first SaveException encountered.- Specified by:
saveOrganizationsin interfaceBusinessLifeCycleManager- Parameters:
organizations- the Collection of Organization objects to be saved- Returns:
- 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- if the JAXR provider encounters an internal error
-
saveServices
public BulkResponse saveServices(Collection services) throws JAXRException
Adds or updates (replaces) specified Services. Partial commits are allowed. Processing stops on first SaveException encountered.- Specified by:
saveServicesin interfaceBusinessLifeCycleManager- Parameters:
services- the Collection of Service objects to be saved- Returns:
- 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- if the JAXR provider encounters an internal error
-
saveServiceBindings
public BulkResponse saveServiceBindings(Collection bindings) throws JAXRException
Adds or updates (replaces) specified ServiceInterfaceBindings. Partial commits are allowed. Processing stops on first SaveException encountered.- Specified by:
saveServiceBindingsin interfaceBusinessLifeCycleManager- Parameters:
bindings- the Collection of ServiceBinding objects to be saved- Returns:
- 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- if the JAXR provider encounters an internal error
-
saveConcepts
public BulkResponse saveConcepts(Collection concepts) throws JAXRException
Adds or updates (replaces) specified Concepts. Partial commits are allowed. Processing stops on first SaveException encountered.- Specified by:
saveConceptsin interfaceBusinessLifeCycleManager- Parameters:
concepts- the Collection of Concept objects to be saved- Returns:
- 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- if the JAXR provider encounters an internal error
-
saveClassificationSchemes
public BulkResponse saveClassificationSchemes(Collection schemes) throws JAXRException
Saves specified ClassificationScheme instances. If the object is not in the registry, then 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. Partial commits are allowed. Processing stops on first SaveException encountered.- Capability Level: 0
- Specified by:
saveClassificationSchemesin interfaceBusinessLifeCycleManager- Parameters:
schemes- the Collection of ClassificationScheme objects to be saved- Returns:
- 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- if the JAXR provider encounters an internal error
-
deleteOrganizations
public BulkResponse deleteOrganizations(Collection organizationKeys) throws JAXRException
Delete the organizations corresponding to specified Keys. Partial commits are allowed. Processing stops on first DeleteException encountered.- Specified by:
deleteOrganizationsin interfaceBusinessLifeCycleManager- Parameters:
organizationKeys- the Collection of keys for the Organization objects to be deleted- Returns:
- BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
- Throws:
JAXRException- if the JAXR provider encounters an internal error
-
deleteServices
public BulkResponse deleteServices(Collection serviceKeys) throws JAXRException
Delete the services corresponding to specified Keys. Partial commits are allowed. Processing stops on first DeleteException encountered.- Specified by:
deleteServicesin interfaceBusinessLifeCycleManager- Parameters:
serviceKeys- the Collection of keys for the Service objects to be deleted- Returns:
- BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
- Throws:
JAXRException- if the JAXR provider encounters an internal error
-
deleteServiceBindings
public BulkResponse deleteServiceBindings(Collection interfaceKeys) throws JAXRException
Delete the ServiceInterfaceBindings corresponding to specified Keys. Partial commits are allowed. Processing stops on first DeleteException encountered.- Specified by:
deleteServiceBindingsin interfaceBusinessLifeCycleManager- Parameters:
interfaceKeys- the Collection of keys for the ServiceBinding objects to be deleted- Returns:
- BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
- Throws:
JAXRException- if the JAXR provider encounters an internal error
-
deleteConcepts
public BulkResponse deleteConcepts(Collection conceptKeys) throws JAXRException
Delete the Concepts corresponding to specified Keys. Partial commits are allowed. Processing stops on first DeleteException encountered.- Specified by:
deleteConceptsin interfaceBusinessLifeCycleManager- Parameters:
conceptKeys- the Collection of keys for the Concept objects to be deleted- Returns:
- BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
- Throws:
JAXRException- if the JAXR provider encounters an internal error
-
deleteClassificationSchemes
public BulkResponse deleteClassificationSchemes(Collection schemeKeys) throws JAXRException
Delete the ClassificationSchemes corresponding to the specified Keys. Partial commits are allowed. Processing stops on first DeleteException encountered.- Capability Level: 0
- Specified by:
deleteClassificationSchemesin interfaceBusinessLifeCycleManager- Parameters:
schemeKeys- the Collection of keys for the ClassificationScheme objects to be deleted- Returns:
- BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
- Throws:
JAXRException- if the JAXR provider encounters an internal error
-
saveAssociations
public BulkResponse saveAssociations(Collection associations, boolean replace) throws JAXRException
Saves specified Association instances. If the object is not in the registry, then 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. Partial commits are allowed. Processing stops on first SaveException encountered.- Capability Level: 0
- Specified by:
saveAssociationsin interfaceBusinessLifeCycleManager- Parameters:
replace- If set to true then the specified associations replace any existing associations owned by the caller. If set to false specif8ied associations are saved while preserving any existing associations that are not being updated by this call.associations- the Collection of Association objects to be saved- Returns:
- 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- if the JAXR provider encounters an internal error
-
deleteAssociations
public BulkResponse deleteAssociations(Collection schemeKeys) throws JAXRException
Delete the Associations corresponding to the specified Keys. Partial commits are allowed. Processing stops on first DeleteException encountered.- Capability Level: 0
- Specified by:
deleteAssociationsin interfaceBusinessLifeCycleManager- Parameters:
schemeKeys- the Collection of keys for the Association objects to be deleted- Returns:
- BulkResponse containing the Collection of keys for those objects that were deleted successfully and any DeleteException that was encountered in case of partial commit.
- Throws:
JAXRException- if the JAXR provider encounters an internal error
-
confirmAssociation
public void confirmAssociation(Association association) throws JAXRException
Description copied from interface:BusinessLifeCycleManagerConfirms this Association by the User associated with the caller. The User must be the owner of the sourceObject or the targetObject in this association.- If the Association is intramural, this method does nothing and returns.
- If the Association is extramural and already confirmed (isConfirmed returns true), this method does nothing and returns.
- If the Association is extramural and not already confirmed, this method confirms the association for the User associated with the caller.
The details of confirming an extramural Association are registry-specific. For UDDI and ebXML registries, the registry-specific details are described in the JAXR specification.
- Capability Level: 0
- Specified by:
confirmAssociationin interfaceBusinessLifeCycleManager- Parameters:
association- the Association object to be confirmed- Throws:
JAXRException- if the JAXR provider encounters an internal errorInvalidRequestException- if the User is not the owner of the sourceObject or the targetObject
-
unConfirmAssociation
public void unConfirmAssociation(Association association) throws JAXRException
Description copied from interface:BusinessLifeCycleManagerUndoes a previous confirmation of this Association by the User associated with the caller. The User must be the owner of the sourceObject or the targetObject in this association.- If the Association is intramural, this method does nothing and returns.
- If the Association is extramural and already confirmed (isConfirmed returns true), this method unconfirms it for the requestor.
- If the Association is extramural and not already confirmed, this method does nothing and returns.
The details of unconfirming an extramural Association are registry-specific. For UDDI and ebXML registries, the registry-specific details are described in the JAXR specification.
- Capability Level: 0
- Specified by:
unConfirmAssociationin interfaceBusinessLifeCycleManager- Parameters:
association- the Association object to be unconfirmed- Throws:
JAXRException- if the JAXR provider encounters an internal errorInvalidRequestException- if the User is not the owner of the sourceObject or the targetObject
-
-