![JAR search and dependency download from the Maven repository](/logo.png)
com.sun.xml.registry.uddi.BusinessLifeCycleManagerImpl Maven / Gradle / Ivy
/*
* Copyright (c) 2007, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.sun.xml.registry.uddi;
import com.sun.xml.registry.common.*;
import com.sun.xml.registry.common.util.*;
import javax.xml.registry.*;
import java.util.Collection;
/**
* Class Declaration for Class1
* @see
* @author
*/
public class BusinessLifeCycleManagerImpl extends LifeCycleManagerImpl
implements BusinessLifeCycleManager {
public BusinessLifeCycleManagerImpl() {
super();
}
public BusinessLifeCycleManagerImpl(RegistryServiceImpl service) {
super(service);
}
/**
* Adds or updates (replaces) specified Organizations.
* Partial commits are allowed. Processing stops on first SaveException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* saved successfully and any SaveException that was encountered in case of partial commit.
*
*/
public BulkResponse saveOrganizations(Collection organizations)
throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.SaveOrganizationsCommand(service, response,
organizations));
return response;
} else {
return uddi.saveOrganizations(organizations);
}
}
/**
* Adds or updates (replaces) specified Services.
* Partial commits are allowed. Processing stops on first SaveException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* saved successfully and any SaveException that was encountered in case of partial commit.
*/
public BulkResponse saveServices(Collection services) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.SaveServicesCommand(service, response,
services));
return response;
} else {
return uddi.saveServices(services);
}
}
/**
* Adds or updates (replaces) specified ServiceInterfaceBindings.
* Partial commits are allowed. Processing stops on first SaveException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* saved successfully and any SaveException that was encountered in case of partial commit.
*/
public BulkResponse saveServiceBindings(Collection bindings) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.SaveServiceBindingsCommand(service, response,
bindings));
return response;
} else {
return uddi.saveServiceBindings(bindings);
}
}
/**
* Adds or updates (replaces) specified Concepts.
* Partial commits are allowed. Processing stops on first SaveException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* saved successfully and any SaveException that was encountered in case of partial commit.
*/
public BulkResponse saveConcepts(Collection concepts) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.SaveConceptsCommand(service, response,
concepts));
return response;
} else {
return uddi.saveConcepts(concepts);
}
}
/**
* 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
*
* @return BulkResponse containing the Collection of keys for those objects that were
* saved successfully and any SaveException that was encountered in case of partial commit.
*/
public BulkResponse saveClassificationSchemes(Collection schemes) throws JAXRException {
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.SaveClassificationSchemesCommand(service,
response, schemes));
return response;
} else {
return uddi.saveClassificationSchemes(schemes);
}
}
/**
* Delete the organizations corresponding to specified Keys.
* Partial commits are allowed. Processing stops on first DeleteException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* deleted successfully and any DeleteException that was encountered in case of partial commit.
*/
public BulkResponse deleteOrganizations(Collection organizationKeys) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.DeleteOrganizationsCommand(service, response,
organizationKeys));
return response;
} else {
return uddi.deleteOrganizations(organizationKeys);
}
}
/**
* Delete the services corresponding to specified Keys.
* Partial commits are allowed. Processing stops on first DeleteException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* deleted successfully and any DeleteException that was encountered in case of partial commit.
*/
public BulkResponse deleteServices(Collection serviceKeys) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.DeleteServicesCommand(service, response,
serviceKeys));
return response;
} else {
return uddi.deleteServices(serviceKeys);
}
}
/**
* Delete the ServiceInterfaceBindings corresponding to specified Keys.
* Partial commits are allowed. Processing stops on first DeleteException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* deleted successfully and any DeleteException that was encountered in case of partial commit.
*/
public BulkResponse deleteServiceBindings(Collection interfaceKeys) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.DeleteServiceBindingsCommand(service, response,
interfaceKeys));
return response;
} else {
return uddi.deleteServiceBindings(interfaceKeys);
}
}
/**
* Delete the Concepts corresponding to specified Keys.
* Partial commits are allowed. Processing stops on first DeleteException encountered.
*
* @return BulkResponse containing the Collection of keys for those objects that were
* deleted successfully and any DeleteException that was encountered in case of partial commit.
*/
public BulkResponse deleteConcepts(Collection conceptKeys) throws JAXRException{
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.DeleteConceptsCommand(service, response,
conceptKeys));
return response;
} else {
return uddi.deleteConcepts(conceptKeys);
}
}
/**
* Delete the ClassificationSchemes corresponding to the specified Keys.
* Partial commits are allowed. Processing stops on first DeleteException encountered.
*
*
* - Capability Level: 0
*
* @return BulkResponse containing the Collection of keys for those objects that were
* deleted successfully and any DeleteException that was encountered in case of partial commit.
*/
public BulkResponse deleteClassificationSchemes(Collection schemeKeys)
throws JAXRException {
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.DeleteClassificationSchemesCommand(service,
response, schemeKeys));
return response;
} else {
return uddi.deleteConcepts(schemeKeys);
}
}
/**
* 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
*
* @param 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.
* @return BulkResponse containing the Collection of keys for those objects that were
* saved successfully and any SaveException that was encountered in case of partial commit.
*/
public BulkResponse saveAssociations(Collection associations,
boolean replace) throws JAXRException {
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.SaveAssociationsCommand(service, response,
associations, replace));
return response;
} else {
return uddi.saveAssociations(associations, replace);
}
}
/**
* Delete the Associations corresponding to the specified Keys.
* Partial commits are allowed. Processing stops on first DeleteException encountered.
*
*
* - Capability Level: 0
*
* @return BulkResponse containing the Collection of keys for those objects that were
* deleted successfully and any DeleteException that was encountered in case of partial commit.
*/
public BulkResponse deleteAssociations(Collection schemeKeys)
throws JAXRException {
if (!service.getConnection().isSynchronous()) {
BulkResponseImpl response = new BulkResponseImpl();
response.setStatus(JAXRResponse.STATUS_UNAVAILABLE);
response.setRequestId(Utility.getInstance().generateUUID());
service.storeBulkResponse(response);
FuturesRequestManager.invokeCommand(
new JAXRCommand.DeleteAssociationsCommand(service, response,
schemeKeys));
return response;
} else {
return uddi.deleteAssociations(schemeKeys);
}
}
//must be associations
public void confirmAssociation(javax.xml.registry.infomodel.Association association)
throws JAXRException {
uddi.confirmAssociation(association);
}
public void unConfirmAssociation(javax.xml.registry.infomodel.Association association)
throws JAXRException {
uddi.unConfirmAssociation(association);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy