org.nhindirect.config.service.DomainService 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;
import java.util.Collection;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import org.nhindirect.config.store.Domain;
import org.nhindirect.config.store.EntityStatus;
/**
* Service class for methods related to a Domain object.
*/
public interface DomainService {
/**
* Add a new Domain.
*
* @param domain
* The Domain to add.
* @throws ConfigurationServiceException
*/
@WebMethod(operationName = "addDomain", action = "urn:AddDomain")
void addDomain(@WebParam(name = "domain") Domain domain) throws ConfigurationServiceException;
/**
* Update a Domain.
*
* @param domain
* The Domain to update.
* @throws ConfigurationServiceException
*/
@WebMethod(operationName = "updateDomain", action = "urn:UpdateDomain")
void updateDomain(@WebParam(name = "domain") Domain domain) throws ConfigurationServiceException;
/**
* Get a count of Domains.
*
* @return a count of Domains.
* @throws ConfigurationServiceException
*/
@WebMethod(operationName = "getDomainCount", action = "urn:GetDomainCount")
int getDomainCount() throws ConfigurationServiceException;
/**
* Get a collection of all Domains matching the parameters.
*
* @param domainNames
* A collection of domain names.
* @param status
* An EntityStatus object.
* @return a collection of all Domains matching the parameters.
* @throws ConfigurationServiceException
*/
@WebMethod(operationName = "getDomains", action = "urn:GetDomains")
Collection getDomains(@WebParam(name = "names") Collection domainNames,
@WebParam(name = "status") EntityStatus status) throws ConfigurationServiceException;
/**
* Remove a Domain.
*
* @param domainName
* The name of the Domain to remove.
* @throws ConfigurationServiceException
*
* @deprecated Use of removeDomain(Long domainId) is preferred.
*/
@Deprecated
@WebMethod(operationName = "removeDomain", action = "urn:RemoveDomain")
void removeDomain(@WebParam(name = "name") String domainName) throws ConfigurationServiceException;
/**
* Remove a Domain.
*
* @param domainId
* The id of the Domain to remove.
* @throws ConfigurationServiceException
*/
@WebMethod(operationName = "removeDomainById", action = "urn:RemoveDomainById")
void removeDomainById(@WebParam(name = "id") Long domainId) throws ConfigurationServiceException;
/**
* Return a list of Domains matching the parameters.
*
* @param lastDomainName
* The last domain name.
* @param maxResults
* The maximum number of results.
* @return a List of Domains matching the parameters.
* @throws ConfigurationServiceException
*/
@WebMethod(operationName = "listDomains", action = "urn:listDomains")
Collection listDomains(@WebParam(name = "names") String lastDomainName,
@WebParam(name = "maxResults") int maxResults) throws ConfigurationServiceException;
/**
* Return a collection of Domains matching the parameters.
*
* @param domain
* The Domain name.
* @param status
* The Domain EntityStatus.
* @return a collection of Domains matching the parameters.
*/
@WebMethod(operationName = "searchDomain", action = "urn:SearchDomain")
Collection searchDomain(@WebParam(name = "name") String domain,
@WebParam(name = "status") EntityStatus status);
/**
* Return a Domain matching the given ID.
*
* @param id
* The ID of the Domain.
* @return a Domain matching the given ID.
*/
@WebMethod(operationName = "getDomain", action = "urn:GetDomain")
Domain getDomain(@WebParam(name = "id") Long id);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy