org.nhindirect.config.service.impl.ConfigurationServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of config-service-jar Show documentation
Show all versions of config-service-jar Show documentation
NHIN Direct Java RI config service jar.
/*
Copyright (c) 2010, NHIN Direct Project
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
3. Neither the name of the The NHIN Direct Project (nhindirect.org) nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/
package org.nhindirect.config.service.impl;
import java.util.Calendar;
import java.util.Collection;
import javax.jws.WebService;
import javax.xml.ws.FaultAction;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nhindirect.config.service.AddressService;
import org.nhindirect.config.service.AnchorService;
import org.nhindirect.config.service.CertificateService;
import org.nhindirect.config.service.ConfigurationFault;
import org.nhindirect.config.service.ConfigurationService;
import org.nhindirect.config.service.ConfigurationServiceException;
import org.nhindirect.config.service.DNSService;
import org.nhindirect.config.service.DomainService;
import org.nhindirect.config.service.SettingService;
import org.nhindirect.config.service.TrustBundleService;
import org.nhindirect.config.store.Address;
import org.nhindirect.config.store.Anchor;
import org.nhindirect.config.store.BundleRefreshError;
import org.nhindirect.config.store.Certificate;
import org.nhindirect.config.store.DNSRecord;
import org.nhindirect.config.store.Domain;
import org.nhindirect.config.store.EntityStatus;
import org.nhindirect.config.store.Setting;
import org.nhindirect.config.store.TrustBundle;
import org.nhindirect.config.store.TrustBundleDomainReltn;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Implements the single Service Endpoint Interface. Delegates everything to the
* individual service implementations.
*/
@WebService(endpointInterface = "org.nhindirect.config.service.ConfigurationService")
public class ConfigurationServiceImpl implements ConfigurationService {
private static Log log = LogFactory.getLog(ConfigurationServiceImpl.class);
private DomainService domainSvc;
private AddressService addressSvc;
private CertificateService certSvc;
private AnchorService anchorSvc;
private SettingService settingSvc;
private DNSService dnsSvc;
private TrustBundleService trustBundleSvc;
/**
* Initialization method.
*/
public void init() {
log.info("ConfigurationService initialized");
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AddressService#addAddress(java.util.List)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addAddress(Collection address) throws ConfigurationServiceException {
addressSvc.addAddress(address);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AddressService#updateAddress(org.nhindirect.config.store.Address)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void updateAddress(Address address) throws ConfigurationServiceException {
addressSvc.updateAddress(address);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AddressService#getAddressCount()
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public int getAddressCount() throws ConfigurationServiceException {
return addressSvc.getAddressCount();
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AddressService#getAddress(java.util.List, org.nhindirect.config.store.EntityStatus)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getAddress(Collection addressNames, EntityStatus status)
throws ConfigurationServiceException {
return addressSvc.getAddress(addressNames, status);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AddressService#removeAddress(java.lang.String)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeAddress(String addressName) throws ConfigurationServiceException {
addressSvc.removeAddress(addressName);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AddressService#listAddresss(java.lang.String, int)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection listAddresss(String lastAddressName, int maxResults)
throws ConfigurationServiceException {
return addressSvc.listAddresss(lastAddressName, maxResults);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#addDomain(org.nhindirect.config.store.Domain)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addDomain(Domain domain) throws ConfigurationServiceException {
domainSvc.addDomain(domain);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#updateDomain(org.nhindirect.config.store.Domain)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void updateDomain(Domain domain) throws ConfigurationServiceException {
domainSvc.updateDomain(domain);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#getDomainCount()
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public int getDomainCount() throws ConfigurationServiceException {
return domainSvc.getDomainCount();
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#getDomains(java.util.Collection, org.nhindirect.config.store.EntityStatus)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getDomains(Collection domainNames, EntityStatus status)
throws ConfigurationServiceException {
return domainSvc.getDomains(domainNames, status);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#removeDomain(java.lang.String)
*/
@Override
@Deprecated
@FaultAction(className = ConfigurationFault.class)
public void removeDomain(String domainName) throws ConfigurationServiceException {
domainSvc.removeDomain(domainName);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#removeDomainById(java.lang.Long)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeDomainById(Long domainId) throws ConfigurationServiceException {
domainSvc.removeDomainById(domainId);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#listDomains(java.lang.String, int)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection listDomains(String lastDomainName, int maxResults) throws ConfigurationServiceException {
return domainSvc.listDomains(lastDomainName, maxResults);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#searchDomain(java.lang.String, org.nhindirect.config.store.EntityStatus)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection searchDomain(String domain, EntityStatus status) {
return domainSvc.searchDomain(domain, status);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.DomainService#getDomain(java.lang.Long)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Domain getDomain(Long id) {
return domainSvc.getDomain(id);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#addCertificates(java.util.Collection)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addCertificates(Collection certs) throws ConfigurationServiceException {
certSvc.addCertificates(certs);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#setCertificateStatus(java.util.Collection, org.nhindirect.config.store.EntityStatus)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void setCertificateStatus(Collection certificateIds, EntityStatus status)
throws ConfigurationServiceException {
certSvc.setCertificateStatus(certificateIds, status);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#setCertificateStatusForOwner(java.lang.String, org.nhindirect.config.store.EntityStatus)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void setCertificateStatusForOwner(String owner, EntityStatus status) throws ConfigurationServiceException {
certSvc.setCertificateStatusForOwner(owner, status);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#removeCertificates(java.util.Collection)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeCertificates(Collection certificateIds) throws ConfigurationServiceException {
certSvc.removeCertificates(certificateIds);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#removeCertificatesForOwner(java.lang.String)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeCertificatesForOwner(String owner) throws ConfigurationServiceException {
certSvc.removeCertificatesForOwner(owner);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#contains(java.security.cert.Certificate)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public boolean contains(Certificate cert) {
return certSvc.contains(cert);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#addAnchors(java.util.List)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addAnchors(Collection anchors) throws ConfigurationServiceException {
anchorSvc.addAnchors(anchors);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#setAnchorStatusForOwner(java.lang.String, org.nhindirect.config.store.EntityStatus)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void setAnchorStatusForOwner(String owner, EntityStatus status) throws ConfigurationServiceException {
anchorSvc.setAnchorStatusForOwner(owner, status);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#removeAnchors(java.util.List)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeAnchors(Collection anchorIds) throws ConfigurationServiceException {
anchorSvc.removeAnchors(anchorIds);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#removeAnchorsForOwner(java.lang.String)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeAnchorsForOwner(String owner) throws ConfigurationServiceException {
anchorSvc.removeAnchorsForOwner(owner);
}
/**
* Get the DomainService object.
*
* @return the DomainService object.
*/
public DomainService getDomainSvc() {
return domainSvc;
}
/**
* Set the DomainService object.
*
* @param domainSvc
* The DomainService object.
*/
@Autowired
public void setDomainSvc(DomainService domainSvc) {
this.domainSvc = domainSvc;
}
/**
* Get the AddressService object.
*
* @return the AddressService object.
*/
public AddressService getAddressSvc() {
return addressSvc;
}
/**
* Set the AddressService object.
*
* @param addressSvc
* The ADdressService object.
*/
@Autowired
public void setAddressSvc(AddressService addressSvc) {
this.addressSvc = addressSvc;
}
/**
* Get the CertificateService object.
*
* @return the CertificateService object.
*/
public CertificateService getCertSvc() {
return certSvc;
}
/**
* Set the CertificateService object.
*
* @param certSvc
* The CertificateService object.
*/
@Autowired
public void setCertSvc(CertificateService certSvc) {
this.certSvc = certSvc;
}
/**
* Get the SettingService object.
*
* @return the SettingService object.
*/
public SettingService getSettingSvc() {
return settingSvc;
}
/**
* Set the SettingService object.
*
* @param settingSvc
* The SettingService object.
*/
@Autowired
public void setSettingSvc(SettingService settingSvc) {
this.settingSvc = settingSvc;
}
/**
* Get the AnchorService object.
*
* @return the AnchorService object.
*/
public AnchorService getAnchorSvc() {
return anchorSvc;
}
/**
* Set the AnchorService object.
*
* @param anchorSvc
* The AnchorService object.
*/
@Autowired
public void setAnchorSvc(AnchorService anchorSvc) {
this.anchorSvc = anchorSvc;
}
/**
* Get the DNSService object.
*
* @return the DNSService object.
*/
public DNSService getDNSSvc() {
return dnsSvc;
}
/**
* Set the DNSService object.
*
* @param anchorSvc
* The DNSService object.
*/
@Autowired
public void setDNSSvc(DNSService dnsSvc) {
this.dnsSvc = dnsSvc;
}
/**
* Get the TrustBundleService object.
*
* @return the TrustBundleService object.
*/
public TrustBundleService getTrustBundleSvc() {
return trustBundleSvc;
}
/**
* Set the TrustBundleService object.
*
* @param trustBundleSvc
* The TrustBundleService object.
*/
@Autowired
public void setTrustBundleSvc(TrustBundleService trustBundleSvc) {
this.trustBundleSvc = trustBundleSvc;
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#getCertificate(java.lang.String, java.lang.String, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Certificate getCertificate(String owner, String thumbprint, CertificateGetOptions options)
throws ConfigurationServiceException {
return certSvc.getCertificate(owner, thumbprint, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#getCertificates(java.util.Collection, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getCertificates(Collection certIds, CertificateGetOptions options)
throws ConfigurationServiceException {
return certSvc.getCertificates(certIds, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#getCertificatesForOwner(java.lang.String, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getCertificatesForOwner(String owner, CertificateGetOptions options)
throws ConfigurationServiceException {
return certSvc.getCertificatesForOwner(owner, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.CertificateService#listCertificates(long, int, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection listCertificates(long lastCertificateId, int maxResults,
CertificateGetOptions options) throws ConfigurationServiceException {
return certSvc.listCertificates(lastCertificateId, maxResults, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#getAnchor(java.lang.String, java.lang.String, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Anchor getAnchor(String owner, String thumbprint, CertificateGetOptions options)
throws ConfigurationServiceException {
return anchorSvc.getAnchor(owner, thumbprint, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#getAnchors(java.util.Collection, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getAnchors(Collection anchorIds, CertificateGetOptions options)
throws ConfigurationServiceException {
return anchorSvc.getAnchors(anchorIds, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#getAnchorsForOwner(java.lang.String, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getAnchorsForOwner(String owner, CertificateGetOptions options)
throws ConfigurationServiceException {
return anchorSvc.getAnchorsForOwner(owner, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#getIncomingAnchors(java.lang.String, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getIncomingAnchors(String owner, CertificateGetOptions options)
throws ConfigurationServiceException {
return anchorSvc.getIncomingAnchors(owner, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#getOutgoingAnchors(java.lang.String, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getOutgoingAnchors(String owner, CertificateGetOptions options)
throws ConfigurationServiceException {
return anchorSvc.getOutgoingAnchors(owner, options);
}
/*
* (non-Javadoc)
*
* @see org.nhindirect.config.service.AnchorService#listAnchors(java.lang.Long, int, org.nhindirect.config.service.impl.CertificateGetOptions)
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection listAnchors(Long lastAnchorID, int maxResults, CertificateGetOptions options)
throws ConfigurationServiceException {
return anchorSvc.listAnchors(lastAnchorID, maxResults, options);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addSetting(String name, String value)
throws ConfigurationServiceException {
settingSvc.addSetting(name, value);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getAllSettings()
throws ConfigurationServiceException {
return settingSvc.getAllSettings();
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Setting getSettingByName(String name)
throws ConfigurationServiceException {
return settingSvc.getSettingByName(name);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getSettingsByNames(Collection names)
throws ConfigurationServiceException {
return settingSvc.getSettingsByNames(names);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void updateSetting(String name, String value)
throws ConfigurationServiceException {
settingSvc.updateSetting(name, value);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void deleteSetting(Collection names) throws ConfigurationServiceException {
settingSvc.deleteSetting(names);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addDNS(Collection records)
throws ConfigurationServiceException
{
dnsSvc.addDNS(records);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getDNSByName(String name)
throws ConfigurationServiceException
{
return dnsSvc.getDNSByName(name);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getDNSByNameAndType(String name, int type)
throws ConfigurationServiceException
{
return dnsSvc.getDNSByNameAndType(name, type);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public DNSRecord getDNSByRecordId(long recordId)
throws ConfigurationServiceException
{
return dnsSvc.getDNSByRecordId(recordId);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getDNSByRecordIds(long[] recordIds)
throws ConfigurationServiceException
{
return dnsSvc.getDNSByRecordIds(recordIds);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getDNSByType(int type)
throws ConfigurationServiceException
{
return dnsSvc.getDNSByType(type);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public int getDNSCount() throws ConfigurationServiceException
{
return dnsSvc.getDNSCount();
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeDNS(Collection records)
throws ConfigurationServiceException
{
dnsSvc.removeDNS(records);
}
@Override
public void removeDNSByRecordId(long recordId)
throws ConfigurationServiceException
{
dnsSvc.removeDNSByRecordId(recordId);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void removeDNSByRecordIds(long[] recordIds)
throws ConfigurationServiceException
{
dnsSvc.removeDNSByRecordIds(recordIds);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void updateDNS(long recordId, DNSRecord record)
throws ConfigurationServiceException
{
dnsSvc.updateDNS(recordId, record);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getTrustBundles(boolean fetchAnchors)
throws ConfigurationServiceException
{
return trustBundleSvc.getTrustBundles(fetchAnchors);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public TrustBundle getTrustBundleByName(String bundleName)
throws ConfigurationServiceException
{
return trustBundleSvc.getTrustBundleByName(bundleName);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public TrustBundle getTrustBundleById(long id)
throws ConfigurationServiceException
{
return trustBundleSvc.getTrustBundleById(id);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void addTrustBundle(TrustBundle bundle)
throws ConfigurationServiceException
{
trustBundleSvc.addTrustBundle(bundle);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void refreshTrustBundle(long id)
throws ConfigurationServiceException
{
trustBundleSvc.refreshTrustBundle(id);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void updateLastUpdateError(long trustBundleId, Calendar attemptTime,
BundleRefreshError error) throws ConfigurationServiceException
{
trustBundleSvc.updateLastUpdateError(trustBundleId, attemptTime, error);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void deleteTrustBundles(long[] trustBundleIds)
throws ConfigurationServiceException
{
trustBundleSvc.deleteTrustBundles(trustBundleIds);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void updateTrustBundleSigningCertificate(long trustBundleId,
Certificate signingCert) throws ConfigurationServiceException
{
trustBundleSvc.updateTrustBundleSigningCertificate(trustBundleId, signingCert);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void associateTrustBundleToDomain(long domainId, long trustBundleId, boolean incoming,
boolean outgoing)
throws ConfigurationServiceException
{
trustBundleSvc.associateTrustBundleToDomain(domainId, trustBundleId, incoming, outgoing);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void disassociateTrustBundleFromDomain(long domainId,
long trustBundleId) throws ConfigurationServiceException
{
trustBundleSvc.disassociateTrustBundleFromDomain(domainId, trustBundleId);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void disassociateTrustBundlesFromDomain(long domainId)
throws ConfigurationServiceException
{
trustBundleSvc.disassociateTrustBundlesFromDomain(domainId);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public void disassociateTrustBundleFromDomains(long trustBundleId)
throws ConfigurationServiceException
{
trustBundleSvc.disassociateTrustBundleFromDomains(trustBundleId);
}
/**
* {@inheritDoc}
*/
@Override
@FaultAction(className = ConfigurationFault.class)
public Collection getTrustBundlesByDomain(long domainId,
boolean fetchAnchors) throws ConfigurationServiceException
{
return trustBundleSvc.getTrustBundlesByDomain(domainId, fetchAnchors);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy