|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.service.impl.ConfigurationServiceImpl
public class ConfigurationServiceImpl
Implements the single Service Endpoint Interface. Delegates everything to the individual service implementations.
| Constructor Summary | |
|---|---|
ConfigurationServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addAddress(Collection<Address> address)
Add an Address. |
void |
addAnchors(Collection<Anchor> anchors)
Add a collection of Anchors. |
void |
addCertificates(Collection<Certificate> certs)
Add a Certificate. |
void |
addDomain(Domain domain)
Add a new Domain. |
void |
addSetting(String name,
String value)
|
boolean |
contains(Certificate cert)
Determines if a certificate exists in the certificate store. |
void |
deleteSetting(Collection<String> names)
|
Collection<Address> |
getAddress(Collection<String> addressNames,
EntityStatus status)
Get a collection of all Addresses matching the parameters. |
int |
getAddressCount()
Get a count of Addresses. |
AddressService |
getAddressSvc()
Get the AddressService object. |
Collection<Setting> |
getAllSettings()
|
Anchor |
getAnchor(String owner,
String thumbprint,
CertificateGetOptions options)
Get an Anchor. |
Collection<Anchor> |
getAnchors(Collection<Long> anchorIds,
CertificateGetOptions options)
Get a collection of Anchors. |
Collection<Anchor> |
getAnchorsForOwner(String owner,
CertificateGetOptions options)
Get a collection of Anchors for an owner. |
AnchorService |
getAnchorSvc()
Get the AnchorService object. |
Certificate |
getCertificate(String owner,
String thumbprint,
CertificateGetOptions options)
Get a Certificate. |
Collection<Certificate> |
getCertificates(Collection<Long> certIds,
CertificateGetOptions options)
Get a collection of Certificates. |
Collection<Certificate> |
getCertificatesForOwner(String owner,
CertificateGetOptions options)
Get a collection of Certificates for an owner. |
CertificateService |
getCertSvc()
Get the CertificateService object. |
Domain |
getDomain(Long id)
Return a Domain matching the given ID. |
int |
getDomainCount()
Get a count of Domains. |
Collection<Domain> |
getDomains(Collection<String> domainNames,
EntityStatus status)
Get a collection of all Domains matching the parameters. |
DomainService |
getDomainSvc()
Get the DomainService object. |
Collection<Anchor> |
getIncomingAnchors(String owner,
CertificateGetOptions options)
Get a collection of incoming Anchors. |
Collection<Anchor> |
getOutgoingAnchors(String owner,
CertificateGetOptions options)
Get a collection of outgoing Anchors. |
Setting |
getSettingByName(String name)
|
Collection<Setting> |
getSettingsByNames(Collection<String> names)
|
SettingService |
getSettingSvc()
Get the SettingService object. |
void |
init()
Initialization method. |
Collection<Address> |
listAddresss(String lastAddressName,
int maxResults)
Return a list of Addresses matching the parameters. |
Collection<Anchor> |
listAnchors(Long lastAnchorID,
int maxResults,
CertificateGetOptions options)
Get a collection of Anchors. |
Collection<Certificate> |
listCertificates(long lastCertificateId,
int maxResults,
CertificateGetOptions options)
Get a collection of Certificates. |
Collection<Domain> |
listDomains(String lastDomainName,
int maxResults)
Return a list of Domains matching the parameters. |
void |
removeAddress(String addressName)
Remove an Address. |
void |
removeAnchors(Collection<Long> anchorIds)
Remove an Anchor. |
void |
removeAnchorsForOwner(String owner)
Remove the Anchors for an owner. |
void |
removeCertificates(Collection<Long> certificateIds)
Remove a Certificate. |
void |
removeCertificatesForOwner(String owner)
Remove the Certificates for an owner. |
void |
removeDomain(String domainName)
Remove a Domain. |
Collection<Domain> |
searchDomain(String domain,
EntityStatus status)
Return a collection of Domains matching the parameters. |
void |
setAddressSvc(AddressService addressSvc)
Set the AddressService object. |
void |
setAnchorStatusForOwner(String owner,
EntityStatus status)
Set an Anchor status for a given owner. |
void |
setAnchorSvc(AnchorService anchorSvc)
Set the AnchorService object. |
void |
setCertificateStatus(Collection<Long> certificateIds,
EntityStatus status)
Set a Certificate status. |
void |
setCertificateStatusForOwner(String owner,
EntityStatus status)
Set the Certificate status for an owner. |
void |
setCertSvc(CertificateService certSvc)
Set the CertificateService object. |
void |
setDomainSvc(DomainService domainSvc)
Set the DomainService object. |
void |
setSettingSvc(SettingService settingSvc)
Set the SettingService object. |
void |
updateAddress(Address address)
Update an Address. |
void |
updateDomain(Domain domain)
Update a Domain. |
void |
updateSetting(String name,
String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationServiceImpl()
| Method Detail |
|---|
public void init()
@FaultAction(className=ConfigurationFault.class)
public void addAddress(Collection<Address> address)
throws ConfigurationServiceException
AddressService
addAddress in interface AddressServiceaddress - The Address to add.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void updateAddress(Address address)
throws ConfigurationServiceException
AddressService
updateAddress in interface AddressServiceaddress - The Address to update.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public int getAddressCount()
throws ConfigurationServiceException
AddressService
getAddressCount in interface AddressServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Address> getAddress(Collection<String> addressNames,
EntityStatus status)
throws ConfigurationServiceException
AddressService
getAddress in interface AddressServiceaddressNames - A collection of address names.status - An EntityStatus object.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void removeAddress(String addressName)
throws ConfigurationServiceException
AddressService
removeAddress in interface AddressServiceaddressName - The address name.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Address> listAddresss(String lastAddressName,
int maxResults)
throws ConfigurationServiceException
AddressService
listAddresss in interface AddressServicelastAddressName - The last address name.maxResults - The maximum number of results.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void addDomain(Domain domain)
throws ConfigurationServiceException
DomainService
addDomain in interface DomainServicedomain - The Domain to add.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void updateDomain(Domain domain)
throws ConfigurationServiceException
DomainService
updateDomain in interface DomainServicedomain - The Domain to update.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public int getDomainCount()
throws ConfigurationServiceException
DomainService
getDomainCount in interface DomainServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Domain> getDomains(Collection<String> domainNames,
EntityStatus status)
throws ConfigurationServiceException
DomainService
getDomains in interface DomainServicedomainNames - A collection of domain names.status - An EntityStatus object.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void removeDomain(String domainName)
throws ConfigurationServiceException
DomainService
removeDomain in interface DomainServicedomainName - The name of the Domain to remove.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Domain> listDomains(String lastDomainName,
int maxResults)
throws ConfigurationServiceException
DomainService
listDomains in interface DomainServicelastDomainName - The last domain name.maxResults - The maximum number of results.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Domain> searchDomain(String domain,
EntityStatus status)
DomainService
searchDomain in interface DomainServicedomain - The Domain name.status - The Domain EntityStatus.
@FaultAction(className=ConfigurationFault.class) public Domain getDomain(Long id)
DomainService
getDomain in interface DomainServiceid - The ID of the Domain.
@FaultAction(className=ConfigurationFault.class)
public void addCertificates(Collection<Certificate> certs)
throws ConfigurationServiceException
CertificateService
addCertificates in interface CertificateServicecerts - The Certificate.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void setCertificateStatus(Collection<Long> certificateIds,
EntityStatus status)
throws ConfigurationServiceException
CertificateService
setCertificateStatus in interface CertificateServicecertificateIds - A collection of Certificates.status - The Certificate status.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void setCertificateStatusForOwner(String owner,
EntityStatus status)
throws ConfigurationServiceException
CertificateService
setCertificateStatusForOwner in interface CertificateServiceowner - The Certificate owner.status - The Certificate status.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void removeCertificates(Collection<Long> certificateIds)
throws ConfigurationServiceException
CertificateService
removeCertificates in interface CertificateServicecertificateIds - A collection of Certificate IDs.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void removeCertificatesForOwner(String owner)
throws ConfigurationServiceException
CertificateService
removeCertificatesForOwner in interface CertificateServiceowner - The Certificate owner.
ConfigurationServiceException@FaultAction(className=ConfigurationFault.class) public boolean contains(Certificate cert)
CertificateService
contains in interface CertificateServicecert - The certificate to search for.
@FaultAction(className=ConfigurationFault.class)
public void addAnchors(Collection<Anchor> anchors)
throws ConfigurationServiceException
AnchorService
addAnchors in interface AnchorServiceanchors - A collection of Anchors.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void setAnchorStatusForOwner(String owner,
EntityStatus status)
throws ConfigurationServiceException
AnchorService
setAnchorStatusForOwner in interface AnchorServiceowner - The anchor owner.status - The anchor status.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void removeAnchors(Collection<Long> anchorIds)
throws ConfigurationServiceException
AnchorService
removeAnchors in interface AnchorServiceanchorIds - A collection of Anchor IDs.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void removeAnchorsForOwner(String owner)
throws ConfigurationServiceException
AnchorService
removeAnchorsForOwner in interface AnchorServiceowner - The Anchor owner.
ConfigurationServiceExceptionpublic DomainService getDomainSvc()
public void setDomainSvc(DomainService domainSvc)
domainSvc - The DomainService object.public AddressService getAddressSvc()
public void setAddressSvc(AddressService addressSvc)
addressSvc - The ADdressService object.public CertificateService getCertSvc()
public void setCertSvc(CertificateService certSvc)
certSvc - The CertificateService object.public SettingService getSettingSvc()
public void setSettingSvc(SettingService settingSvc)
settingSvc - The SettingService object.public AnchorService getAnchorSvc()
public void setAnchorSvc(AnchorService anchorSvc)
anchorSvc - The AnchorService object.
@FaultAction(className=ConfigurationFault.class)
public Certificate getCertificate(String owner,
String thumbprint,
CertificateGetOptions options)
throws ConfigurationServiceException
CertificateService
getCertificate in interface CertificateServiceowner - The Certificate owner.thumbprint - The Certificate thumbprint.options - The Certificate options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Certificate> getCertificates(Collection<Long> certIds,
CertificateGetOptions options)
throws ConfigurationServiceException
CertificateService
getCertificates in interface CertificateServicecertIds - A collection of Certificate IDs.options - The Certificate options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Certificate> getCertificatesForOwner(String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
CertificateService
getCertificatesForOwner in interface CertificateServiceowner - The Certificate owner.options - The Certificate options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Certificate> listCertificates(long lastCertificateId,
int maxResults,
CertificateGetOptions options)
throws ConfigurationServiceException
CertificateService
listCertificates in interface CertificateServicelastCertificateId - The last Certificate ID.maxResults - The maximum number of results.options - The Certificate options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Anchor getAnchor(String owner,
String thumbprint,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorService
getAnchor in interface AnchorServiceowner - The Anchor owner.thumbprint - The Anchor thumbprint.options - The Anchor options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Anchor> getAnchors(Collection<Long> anchorIds,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorService
getAnchors in interface AnchorServiceanchorIds - A collection of Anchor IDs.options - The Anchor options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Anchor> getAnchorsForOwner(String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorService
getAnchorsForOwner in interface AnchorServiceowner - The Anchor owner.options - The Anchor options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Anchor> getIncomingAnchors(String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorService
getIncomingAnchors in interface AnchorServiceowner - The Anchor owner.options - The Anchor options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Anchor> getOutgoingAnchors(String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorService
getOutgoingAnchors in interface AnchorServiceowner - The Anchor owner.options - The Anchor options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Anchor> listAnchors(Long lastAnchorID,
int maxResults,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorService
listAnchors in interface AnchorServicelastAnchorID - The last Anchor ID.maxResults - The maximum number of results.options - The Anchor options.
ConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void addSetting(String name,
String value)
throws ConfigurationServiceException
addSetting in interface SettingServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Setting> getAllSettings()
throws ConfigurationServiceException
getAllSettings in interface SettingServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Setting getSettingByName(String name)
throws ConfigurationServiceException
getSettingByName in interface SettingServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public Collection<Setting> getSettingsByNames(Collection<String> names)
throws ConfigurationServiceException
getSettingsByNames in interface SettingServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void updateSetting(String name,
String value)
throws ConfigurationServiceException
updateSetting in interface SettingServiceConfigurationServiceException
@FaultAction(className=ConfigurationFault.class)
public void deleteSetting(Collection<String> names)
throws ConfigurationServiceException
deleteSetting in interface SettingServiceConfigurationServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||