org.nhindirect.config.service.impl
Class ConfigurationServiceImpl

java.lang.Object
  extended by org.nhindirect.config.service.impl.ConfigurationServiceImpl
All Implemented Interfaces:
AddressService, AnchorService, CertificatePolicyService, CertificateService, ConfigurationService, DNSService, DomainService, SettingService, TrustBundleService

public class ConfigurationServiceImpl
extends Object
implements ConfigurationService

Implements the single Service Endpoint Interface. Delegates everything to the individual service implementations.


Constructor Summary
ConfigurationServiceImpl()
           
 
Method Summary
 void addAddress(Collection<org.nhindirect.config.store.Address> address)
          Add an Address.
 void addAnchors(Collection<org.nhindirect.config.store.Anchor> anchors)
          Add a collection of Anchors.
 void addCertificates(Collection<org.nhindirect.config.store.Certificate> certs)
          Add a Certificate.
 void addDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
          Adds multiple new DNS records to the store.
 void addDomain(org.nhindirect.config.store.Domain domain)
          Add a new Domain.
 void addPolicy(org.nhindirect.config.store.CertPolicy policy)
           
 void addPolicyGroup(org.nhindirect.config.store.CertPolicyGroup group)
           
 void addPolicyUseToGroup(long groupId, long policyId, org.nhindirect.config.store.CertPolicyUse policyUse, boolean incoming, boolean outgoing)
           
 void addSetting(String name, String value)
          
 void addTrustBundle(org.nhindirect.config.store.TrustBundle bundle)
          Adds a trust bundle to the system.
 void associatePolicyGroupToDomain(long domainId, long policyGroupId)
           
 void associateTrustBundleToDomain(long domainId, long trustBundleId, boolean incoming, boolean outgoing)
          Associates a domain to a trust bundle.
 boolean contains(org.nhindirect.config.store.Certificate cert)
          Determines if a certificate exists in the certificate store.
 void deletePolicies(long[] policyIds)
           
 void deletePolicyGroups(long[] groupIds)
           
 void deleteSetting(Collection<String> names)
          
 void deleteTrustBundles(long[] trustBundleIds)
          Deletes a set of trust bundle from the system.
 void disassociatePolicyGroupFromDomain(long domainId, long policyGroupId)
           
 void disassociatePolicyGroupFromDomains(long policyGroupId)
           
 void disassociatePolicyGroupsFromDomain(long domainId)
           
 void disassociateTrustBundleFromDomain(long domainId, long trustBundleId)
          Dissociates a domain from a trust bundle.
 void disassociateTrustBundleFromDomains(long trustBundleId)
          Dissociates a trust bundle from all domains.
 void disassociateTrustBundlesFromDomain(long domainId)
          Dissociates a domain from all trust bundles.
 Collection<org.nhindirect.config.store.Address> getAddress(Collection<String> addressNames, org.nhindirect.config.store.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<org.nhindirect.config.store.Setting> getAllSettings()
          
 org.nhindirect.config.store.Anchor getAnchor(String owner, String thumbprint, CertificateGetOptions options)
          Get an Anchor.
 Collection<org.nhindirect.config.store.Anchor> getAnchors(Collection<Long> anchorIds, CertificateGetOptions options)
          Get a collection of Anchors.
 Collection<org.nhindirect.config.store.Anchor> getAnchorsForOwner(String owner, CertificateGetOptions options)
          Get a collection of Anchors for an owner.
 AnchorService getAnchorSvc()
          Get the AnchorService object.
 org.nhindirect.config.store.Certificate getCertificate(String owner, String thumbprint, CertificateGetOptions options)
          Get a Certificate.
 CertificatePolicyService getCertificatePolicySvc()
          Get the CertificatePolicyService object.
 Collection<org.nhindirect.config.store.Certificate> getCertificates(Collection<Long> certIds, CertificateGetOptions options)
          Get a collection of Certificates.
 Collection<org.nhindirect.config.store.Certificate> getCertificatesForOwner(String owner, CertificateGetOptions options)
          Get a collection of Certificates for an owner.
 CertificateService getCertSvc()
          Get the CertificateService object.
 Collection<org.nhindirect.config.store.DNSRecord> getDNSByName(String name)
          Gets DNS records by record name.
 Collection<org.nhindirect.config.store.DNSRecord> getDNSByNameAndType(String name, int type)
          Gets DNS records by record name and a specific record type.
 org.nhindirect.config.store.DNSRecord getDNSByRecordId(long recordId)
          Gets a single DNS record for an internal record id.
 Collection<org.nhindirect.config.store.DNSRecord> getDNSByRecordIds(long[] recordIds)
          Gets DNS records by the internal record ids.
 Collection<org.nhindirect.config.store.DNSRecord> getDNSByType(int type)
          Gets all DNS records or a given type.
 int getDNSCount()
          Gets the number of records in the DNS store.
 DNSService getDNSSvc()
          Get the DNSService object.
 org.nhindirect.config.store.Domain getDomain(Long id)
          Return a Domain matching the given ID.
 int getDomainCount()
          Get a count of Domains.
 Collection<org.nhindirect.config.store.Domain> getDomains(Collection<String> domainNames, org.nhindirect.config.store.EntityStatus status)
          Get a collection of all Domains matching the parameters.
 DomainService getDomainSvc()
          Get the DomainService object.
 Collection<org.nhindirect.config.store.Anchor> getIncomingAnchors(String owner, CertificateGetOptions options)
          Get a collection of incoming Anchors.
 Collection<org.nhindirect.config.store.Anchor> getOutgoingAnchors(String owner, CertificateGetOptions options)
          Get a collection of outgoing Anchors.
 Collection<org.nhindirect.config.store.CertPolicy> getPolicies()
           
 org.nhindirect.config.store.CertPolicy getPolicyById(long id)
           
 org.nhindirect.config.store.CertPolicy getPolicyByName(String policyName)
           
 org.nhindirect.config.store.CertPolicyGroup getPolicyGroupById(long id)
           
 org.nhindirect.config.store.CertPolicyGroup getPolicyGroupByName(String policyGroupName)
           
 Collection<org.nhindirect.config.store.CertPolicyGroupDomainReltn> getPolicyGroupDomainReltns()
           
 Collection<org.nhindirect.config.store.CertPolicyGroup> getPolicyGroups()
           
 Collection<org.nhindirect.config.store.CertPolicyGroupDomainReltn> getPolicyGroupsByDomain(long domainId)
           
 org.nhindirect.config.store.Setting getSettingByName(String name)
          
 Collection<org.nhindirect.config.store.Setting> getSettingsByNames(Collection<String> names)
          
 SettingService getSettingSvc()
          Get the SettingService object.
 org.nhindirect.config.store.TrustBundle getTrustBundleById(long id)
          Gets a specific trust bundle by its internal id.
 org.nhindirect.config.store.TrustBundle getTrustBundleByName(String bundleName)
          Gets a specific trust bundle by name.
 Collection<org.nhindirect.config.store.TrustBundle> getTrustBundles(boolean fetchAnchors)
          Gets a collection of all trust bundles in the system
 Collection<org.nhindirect.config.store.TrustBundleDomainReltn> getTrustBundlesByDomain(long domainId, boolean fetchAnchors)
          Gets all trust bundles associated with a domain
 TrustBundleService getTrustBundleSvc()
          Get the TrustBundleService object.
 void init()
          Initialization method.
 Collection<org.nhindirect.config.store.Address> listAddresss(String lastAddressName, int maxResults)
          Return a list of Addresses matching the parameters.
 Collection<org.nhindirect.config.store.Anchor> listAnchors(Long lastAnchorID, int maxResults, CertificateGetOptions options)
          Get a collection of Anchors.
 Collection<org.nhindirect.config.store.Certificate> listCertificates(long lastCertificateId, int maxResults, CertificateGetOptions options)
          Get a collection of Certificates.
 Collection<org.nhindirect.config.store.Domain> listDomains(String lastDomainName, int maxResults)
          Return a list of Domains matching the parameters.
 void refreshTrustBundle(long id)
          Forces an on demand refresh of a trust bundle regardless of its refresh internal.
 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 removeDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
          Removes DNS records matching the DNS records' name and type.
 void removeDNSByRecordId(long recordId)
          Removes a single DNS record by an existing internal record id.
 void removeDNSByRecordIds(long[] recordIds)
          Removes DNS records by existing internal record ids.
 void removeDomain(String domainName)
          Deprecated. 
 void removeDomainById(Long domainId)
          Remove a Domain.
 void removePolicyUseFromGroup(long policyGroupReltnId)
           
 Collection<org.nhindirect.config.store.Domain> searchDomain(String domain, org.nhindirect.config.store.EntityStatus status)
          Return a collection of Domains matching the parameters.
 void setAddressSvc(AddressService addressSvc)
          Set the AddressService object.
 void setAnchorStatusForOwner(String owner, org.nhindirect.config.store.EntityStatus status)
          Set an Anchor status for a given owner.
 void setAnchorSvc(AnchorService anchorSvc)
          Set the AnchorService object.
 void setCertificatePolicySvc(CertificatePolicyService certPolicySvc)
          Set the CertificatePolicyService object.
 void setCertificateStatus(Collection<Long> certificateIds, org.nhindirect.config.store.EntityStatus status)
          Set a Certificate status.
 void setCertificateStatusForOwner(String owner, org.nhindirect.config.store.EntityStatus status)
          Set the Certificate status for an owner.
 void setCertSvc(CertificateService certSvc)
          Set the CertificateService object.
 void setDNSSvc(DNSService dnsSvc)
          Set the DNSService object.
 void setDomainSvc(DomainService domainSvc)
          Set the DomainService object.
 void setSettingSvc(SettingService settingSvc)
          Set the SettingService object.
 void setTrustBundleSvc(TrustBundleService trustBundleSvc)
          Set the TrustBundleService object.
 void updateAddress(org.nhindirect.config.store.Address address)
          Update an Address.
 void updateDNS(long recordId, org.nhindirect.config.store.DNSRecord record)
          Update a DNS record for a specific internal id.
 void updateDomain(org.nhindirect.config.store.Domain domain)
          Update a Domain.
 void updateGroupAttributes(long id, String groupName)
           
 void updateLastUpdateError(long trustBundleId, Calendar attemptTime, org.nhindirect.config.store.BundleRefreshError error)
          Updates the last error that occurred when trying to download or refresh the bundle from its URL.
 void updatePolicyAttributes(long id, String policyName, org.nhindirect.policy.PolicyLexicon lexicon, byte[] policyData)
           
 void updateSetting(String name, String value)
          
 void updateTrustBundleAttributes(long trustBundleId, String bundleName, String bundleUrl, org.nhindirect.config.store.Certificate signingCert, int refreshInterval)
          Updates multiple attributes of a trust bundle.
 void updateTrustBundleSigningCertificate(long trustBundleId, org.nhindirect.config.store.Certificate signingCert)
          Updates the signing certificate used to validate the authenticity of a bundle.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceImpl

public ConfigurationServiceImpl()
Method Detail

init

public void init()
Initialization method.


addAddress

@FaultAction(className=ConfigurationFault.class)
public void addAddress(Collection<org.nhindirect.config.store.Address> address)
                throws ConfigurationServiceException
Description copied from interface: AddressService
Add an Address.

Specified by:
addAddress in interface AddressService
Parameters:
address - The Address to add.
Throws:
ConfigurationServiceException

updateAddress

@FaultAction(className=ConfigurationFault.class)
public void updateAddress(org.nhindirect.config.store.Address address)
                   throws ConfigurationServiceException
Description copied from interface: AddressService
Update an Address.

Specified by:
updateAddress in interface AddressService
Parameters:
address - The Address to update.
Throws:
ConfigurationServiceException

getAddressCount

@FaultAction(className=ConfigurationFault.class)
public int getAddressCount()
                    throws ConfigurationServiceException
Description copied from interface: AddressService
Get a count of Addresses.

Specified by:
getAddressCount in interface AddressService
Returns:
a count of Addresses.
Throws:
ConfigurationServiceException

getAddress

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Address> getAddress(Collection<String> addressNames,
                                                                                                               org.nhindirect.config.store.EntityStatus status)
                                                           throws ConfigurationServiceException
Description copied from interface: AddressService
Get a collection of all Addresses matching the parameters.

Specified by:
getAddress in interface AddressService
Parameters:
addressNames - A collection of address names.
status - An EntityStatus object.
Returns:
a collection of all Addresses matching the parameters.
Throws:
ConfigurationServiceException

removeAddress

@FaultAction(className=ConfigurationFault.class)
public void removeAddress(String addressName)
                   throws ConfigurationServiceException
Description copied from interface: AddressService
Remove an Address.

Specified by:
removeAddress in interface AddressService
Parameters:
addressName - The address name.
Throws:
ConfigurationServiceException

listAddresss

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Address> listAddresss(String lastAddressName,
                                                                                                                 int maxResults)
                                                             throws ConfigurationServiceException
Description copied from interface: AddressService
Return a list of Addresses matching the parameters.

Specified by:
listAddresss in interface AddressService
Parameters:
lastAddressName - The last address name.
maxResults - The maximum number of results.
Returns:
a list of Addresses matching the parameters.
Throws:
ConfigurationServiceException

addDomain

@FaultAction(className=ConfigurationFault.class)
public void addDomain(org.nhindirect.config.store.Domain domain)
               throws ConfigurationServiceException
Description copied from interface: DomainService
Add a new Domain.

Specified by:
addDomain in interface DomainService
Parameters:
domain - The Domain to add.
Throws:
ConfigurationServiceException

updateDomain

@FaultAction(className=ConfigurationFault.class)
public void updateDomain(org.nhindirect.config.store.Domain domain)
                  throws ConfigurationServiceException
Description copied from interface: DomainService
Update a Domain.

Specified by:
updateDomain in interface DomainService
Parameters:
domain - The Domain to update.
Throws:
ConfigurationServiceException

getDomainCount

@FaultAction(className=ConfigurationFault.class)
public int getDomainCount()
                   throws ConfigurationServiceException
Description copied from interface: DomainService
Get a count of Domains.

Specified by:
getDomainCount in interface DomainService
Returns:
a count of Domains.
Throws:
ConfigurationServiceException

getDomains

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Domain> getDomains(Collection<String> domainNames,
                                                                                                              org.nhindirect.config.store.EntityStatus status)
                                                          throws ConfigurationServiceException
Description copied from interface: DomainService
Get a collection of all Domains matching the parameters.

Specified by:
getDomains in interface DomainService
Parameters:
domainNames - A collection of domain names.
status - An EntityStatus object.
Returns:
a collection of all Domains matching the parameters.
Throws:
ConfigurationServiceException

removeDomain

@Deprecated
@FaultAction(className=ConfigurationFault.class)
public void removeDomain(String domainName)
                  throws ConfigurationServiceException
Deprecated. 

Description copied from interface: DomainService
Remove a Domain.

Specified by:
removeDomain in interface DomainService
Parameters:
domainName - The name of the Domain to remove.
Throws:
ConfigurationServiceException

removeDomainById

@FaultAction(className=ConfigurationFault.class)
public void removeDomainById(Long domainId)
                      throws ConfigurationServiceException
Description copied from interface: DomainService
Remove a Domain.

Specified by:
removeDomainById in interface DomainService
Parameters:
domainId - The id of the Domain to remove.
Throws:
ConfigurationServiceException

listDomains

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Domain> listDomains(String lastDomainName,
                                                                                                               int maxResults)
                                                           throws ConfigurationServiceException
Description copied from interface: DomainService
Return a list of Domains matching the parameters.

Specified by:
listDomains in interface DomainService
Parameters:
lastDomainName - The last domain name.
maxResults - The maximum number of results.
Returns:
a List of Domains matching the parameters.
Throws:
ConfigurationServiceException

searchDomain

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Domain> searchDomain(String domain,
                                                                                                                org.nhindirect.config.store.EntityStatus status)
Description copied from interface: DomainService
Return a collection of Domains matching the parameters.

Specified by:
searchDomain in interface DomainService
Parameters:
domain - The Domain name.
status - The Domain EntityStatus.
Returns:
a collection of Domains matching the parameters.

getDomain

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.Domain getDomain(Long id)
Description copied from interface: DomainService
Return a Domain matching the given ID.

Specified by:
getDomain in interface DomainService
Parameters:
id - The ID of the Domain.
Returns:
a Domain matching the given ID.

addCertificates

@FaultAction(className=ConfigurationFault.class)
public void addCertificates(Collection<org.nhindirect.config.store.Certificate> certs)
                     throws ConfigurationServiceException
Description copied from interface: CertificateService
Add a Certificate.

Specified by:
addCertificates in interface CertificateService
Parameters:
certs - The Certificate.
Throws:
ConfigurationServiceException

setCertificateStatus

@FaultAction(className=ConfigurationFault.class)
public void setCertificateStatus(Collection<Long> certificateIds,
                                                                              org.nhindirect.config.store.EntityStatus status)
                          throws ConfigurationServiceException
Description copied from interface: CertificateService
Set a Certificate status.

Specified by:
setCertificateStatus in interface CertificateService
Parameters:
certificateIds - A collection of Certificates.
status - The Certificate status.
Throws:
ConfigurationServiceException

setCertificateStatusForOwner

@FaultAction(className=ConfigurationFault.class)
public void setCertificateStatusForOwner(String owner,
                                                                                      org.nhindirect.config.store.EntityStatus status)
                                  throws ConfigurationServiceException
Description copied from interface: CertificateService
Set the Certificate status for an owner.

Specified by:
setCertificateStatusForOwner in interface CertificateService
Parameters:
owner - The Certificate owner.
status - The Certificate status.
Throws:
ConfigurationServiceException

removeCertificates

@FaultAction(className=ConfigurationFault.class)
public void removeCertificates(Collection<Long> certificateIds)
                        throws ConfigurationServiceException
Description copied from interface: CertificateService
Remove a Certificate.

Specified by:
removeCertificates in interface CertificateService
Parameters:
certificateIds - A collection of Certificate IDs.
Throws:
ConfigurationServiceException

removeCertificatesForOwner

@FaultAction(className=ConfigurationFault.class)
public void removeCertificatesForOwner(String owner)
                                throws ConfigurationServiceException
Description copied from interface: CertificateService
Remove the Certificates for an owner.

Specified by:
removeCertificatesForOwner in interface CertificateService
Parameters:
owner - The Certificate owner.
Throws:
ConfigurationServiceException

contains

@FaultAction(className=ConfigurationFault.class)
public boolean contains(org.nhindirect.config.store.Certificate cert)
Description copied from interface: CertificateService
Determines if a certificate exists in the certificate store. Although not specific in the interface definition, certificate thumbprinting is recommended for certificate searching.

Specified by:
contains in interface CertificateService
Parameters:
cert - The certificate to search for.
Returns:
True if the certificate exist in the store. False otherwise.

addAnchors

@FaultAction(className=ConfigurationFault.class)
public void addAnchors(Collection<org.nhindirect.config.store.Anchor> anchors)
                throws ConfigurationServiceException
Description copied from interface: AnchorService
Add a collection of Anchors.

Specified by:
addAnchors in interface AnchorService
Parameters:
anchors - A collection of Anchors.
Throws:
ConfigurationServiceException

setAnchorStatusForOwner

@FaultAction(className=ConfigurationFault.class)
public void setAnchorStatusForOwner(String owner,
                                                                                 org.nhindirect.config.store.EntityStatus status)
                             throws ConfigurationServiceException
Description copied from interface: AnchorService
Set an Anchor status for a given owner.

Specified by:
setAnchorStatusForOwner in interface AnchorService
Parameters:
owner - The anchor owner.
status - The anchor status.
Throws:
ConfigurationServiceException

removeAnchors

@FaultAction(className=ConfigurationFault.class)
public void removeAnchors(Collection<Long> anchorIds)
                   throws ConfigurationServiceException
Description copied from interface: AnchorService
Remove an Anchor.

Specified by:
removeAnchors in interface AnchorService
Parameters:
anchorIds - A collection of Anchor IDs.
Throws:
ConfigurationServiceException

removeAnchorsForOwner

@FaultAction(className=ConfigurationFault.class)
public void removeAnchorsForOwner(String owner)
                           throws ConfigurationServiceException
Description copied from interface: AnchorService
Remove the Anchors for an owner.

Specified by:
removeAnchorsForOwner in interface AnchorService
Parameters:
owner - The Anchor owner.
Throws:
ConfigurationServiceException

getDomainSvc

public DomainService getDomainSvc()
Get the DomainService object.

Returns:
the DomainService object.

setDomainSvc

@Autowired
public void setDomainSvc(DomainService domainSvc)
Set the DomainService object.

Parameters:
domainSvc - The DomainService object.

getAddressSvc

public AddressService getAddressSvc()
Get the AddressService object.

Returns:
the AddressService object.

setAddressSvc

@Autowired
public void setAddressSvc(AddressService addressSvc)
Set the AddressService object.

Parameters:
addressSvc - The ADdressService object.

getCertSvc

public CertificateService getCertSvc()
Get the CertificateService object.

Returns:
the CertificateService object.

setCertSvc

@Autowired
public void setCertSvc(CertificateService certSvc)
Set the CertificateService object.

Parameters:
certSvc - The CertificateService object.

getSettingSvc

public SettingService getSettingSvc()
Get the SettingService object.

Returns:
the SettingService object.

setSettingSvc

@Autowired
public void setSettingSvc(SettingService settingSvc)
Set the SettingService object.

Parameters:
settingSvc - The SettingService object.

getAnchorSvc

public AnchorService getAnchorSvc()
Get the AnchorService object.

Returns:
the AnchorService object.

setAnchorSvc

@Autowired
public void setAnchorSvc(AnchorService anchorSvc)
Set the AnchorService object.

Parameters:
anchorSvc - The AnchorService object.

getDNSSvc

public DNSService getDNSSvc()
Get the DNSService object.

Returns:
the DNSService object.

setDNSSvc

@Autowired
public void setDNSSvc(DNSService dnsSvc)
Set the DNSService object.

Parameters:
anchorSvc - The DNSService object.

getTrustBundleSvc

public TrustBundleService getTrustBundleSvc()
Get the TrustBundleService object.

Returns:
the TrustBundleService object.

setTrustBundleSvc

@Autowired
public void setTrustBundleSvc(TrustBundleService trustBundleSvc)
Set the TrustBundleService object.

Parameters:
trustBundleSvc - The TrustBundleService object.

getCertificatePolicySvc

public CertificatePolicyService getCertificatePolicySvc()
Get the CertificatePolicyService object.

Returns:
the CertificatePolicyService object.

setCertificatePolicySvc

@Autowired
public void setCertificatePolicySvc(CertificatePolicyService certPolicySvc)
Set the CertificatePolicyService object.

Parameters:
certPolicySvc - The CertificatePolicyService object.

getCertificate

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.Certificate getCertificate(String owner,
                                                                                                           String thumbprint,
                                                                                                           CertificateGetOptions options)
                                                       throws ConfigurationServiceException
Description copied from interface: CertificateService
Get a Certificate.

Specified by:
getCertificate in interface CertificateService
Parameters:
owner - The Certificate owner.
thumbprint - The Certificate thumbprint.
options - The Certificate options.
Returns:
a Certificate.
Throws:
ConfigurationServiceException

getCertificates

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Certificate> getCertificates(Collection<Long> certIds,
                                                                                                                        CertificateGetOptions options)
                                                                    throws ConfigurationServiceException
Description copied from interface: CertificateService
Get a collection of Certificates.

Specified by:
getCertificates in interface CertificateService
Parameters:
certIds - A collection of Certificate IDs.
options - The Certificate options.
Returns:
a collection of Certificates.
Throws:
ConfigurationServiceException

getCertificatesForOwner

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Certificate> getCertificatesForOwner(String owner,
                                                                                                                                CertificateGetOptions options)
                                                                            throws ConfigurationServiceException
Description copied from interface: CertificateService
Get a collection of Certificates for an owner.

Specified by:
getCertificatesForOwner in interface CertificateService
Parameters:
owner - The Certificate owner.
options - The Certificate options.
Returns:
a collection of Certificates.
Throws:
ConfigurationServiceException

listCertificates

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Certificate> listCertificates(long lastCertificateId,
                                                                                                                         int maxResults,
                                                                                                                         CertificateGetOptions options)
                                                                     throws ConfigurationServiceException
Description copied from interface: CertificateService
Get a collection of Certificates.

Specified by:
listCertificates in interface CertificateService
Parameters:
lastCertificateId - The last Certificate ID.
maxResults - The maximum number of results.
options - The Certificate options.
Returns:
a collection of Certificates.
Throws:
ConfigurationServiceException

getAnchor

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.Anchor getAnchor(String owner,
                                                                                                 String thumbprint,
                                                                                                 CertificateGetOptions options)
                                             throws ConfigurationServiceException
Description copied from interface: AnchorService
Get an Anchor.

Specified by:
getAnchor in interface AnchorService
Parameters:
owner - The Anchor owner.
thumbprint - The Anchor thumbprint.
options - The Anchor options.
Returns:
an Anchor.
Throws:
ConfigurationServiceException

getAnchors

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Anchor> getAnchors(Collection<Long> anchorIds,
                                                                                                              CertificateGetOptions options)
                                                          throws ConfigurationServiceException
Description copied from interface: AnchorService
Get a collection of Anchors.

Specified by:
getAnchors in interface AnchorService
Parameters:
anchorIds - A collection of Anchor IDs.
options - The Anchor options.
Returns:
a collection of Anchors.
Throws:
ConfigurationServiceException

getAnchorsForOwner

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Anchor> getAnchorsForOwner(String owner,
                                                                                                                      CertificateGetOptions options)
                                                                  throws ConfigurationServiceException
Description copied from interface: AnchorService
Get a collection of Anchors for an owner.

Specified by:
getAnchorsForOwner in interface AnchorService
Parameters:
owner - The Anchor owner.
options - The Anchor options.
Returns:
a collection of Anchors.
Throws:
ConfigurationServiceException

getIncomingAnchors

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Anchor> getIncomingAnchors(String owner,
                                                                                                                      CertificateGetOptions options)
                                                                  throws ConfigurationServiceException
Description copied from interface: AnchorService
Get a collection of incoming Anchors.

Specified by:
getIncomingAnchors in interface AnchorService
Parameters:
owner - The Anchor owner.
options - The Anchor options.
Returns:
a collection of Anchors.
Throws:
ConfigurationServiceException

getOutgoingAnchors

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Anchor> getOutgoingAnchors(String owner,
                                                                                                                      CertificateGetOptions options)
                                                                  throws ConfigurationServiceException
Description copied from interface: AnchorService
Get a collection of outgoing Anchors.

Specified by:
getOutgoingAnchors in interface AnchorService
Parameters:
owner - The Anchor owner.
options - The Anchor options.
Returns:
a collection of Anchors.
Throws:
ConfigurationServiceException

listAnchors

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Anchor> listAnchors(Long lastAnchorID,
                                                                                                               int maxResults,
                                                                                                               CertificateGetOptions options)
                                                           throws ConfigurationServiceException
Description copied from interface: AnchorService
Get a collection of Anchors.

Specified by:
listAnchors in interface AnchorService
Parameters:
lastAnchorID - The last Anchor ID.
maxResults - The maximum number of results.
options - The Anchor options.
Returns:
a collection of Anchors.
Throws:
ConfigurationServiceException

addSetting

@FaultAction(className=ConfigurationFault.class)
public void addSetting(String name,
                                                                    String value)
                throws ConfigurationServiceException

Specified by:
addSetting in interface SettingService
Throws:
ConfigurationServiceException

getAllSettings

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Setting> getAllSettings()
                                                               throws ConfigurationServiceException

Specified by:
getAllSettings in interface SettingService
Throws:
ConfigurationServiceException

getSettingByName

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.Setting getSettingByName(String name)
                                                     throws ConfigurationServiceException

Specified by:
getSettingByName in interface SettingService
Throws:
ConfigurationServiceException

getSettingsByNames

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.Setting> getSettingsByNames(Collection<String> names)
                                                                   throws ConfigurationServiceException

Specified by:
getSettingsByNames in interface SettingService
Throws:
ConfigurationServiceException

updateSetting

@FaultAction(className=ConfigurationFault.class)
public void updateSetting(String name,
                                                                       String value)
                   throws ConfigurationServiceException

Specified by:
updateSetting in interface SettingService
Throws:
ConfigurationServiceException

deleteSetting

@FaultAction(className=ConfigurationFault.class)
public void deleteSetting(Collection<String> names)
                   throws ConfigurationServiceException

Specified by:
deleteSetting in interface SettingService
Throws:
ConfigurationServiceException

addDNS

@FaultAction(className=ConfigurationFault.class)
public void addDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
            throws ConfigurationServiceException
Adds multiple new DNS records to the store. The type cannot be ANY.

Specified by:
addDNS in interface DNSService
Parameters:
records - The records to add the store. If a record already exists, then an exception is thrown.
Throws:
ConfigurationServiceException

getDNSByName

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByName(String name)
                                                               throws ConfigurationServiceException
Gets DNS records by record name.

Specified by:
getDNSByName in interface DNSService
Parameters:
name - The record name.
Returns:
A collection of records matching the name and of any type.
Throws:
ConfigurationServiceException

getDNSByNameAndType

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByNameAndType(String name,
                                                                                                                          int type)
                                                                      throws ConfigurationServiceException
Gets DNS records by record name and a specific record type.

Specified by:
getDNSByNameAndType in interface DNSService
Parameters:
name - The record name.
type - The record type to search for.
Returns:
A collection of records matching the name and record type.
Throws:
ConfigurationServiceException

getDNSByRecordId

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.DNSRecord getDNSByRecordId(long recordId)
                                                       throws ConfigurationServiceException
Gets a single DNS record for an internal record id.

Specified by:
getDNSByRecordId in interface DNSService
Parameters:
recordId - The internal record id to search for.
Returns:
A DNS record matching the record id.
Throws:
ConfigurationServiceException

getDNSByRecordIds

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByRecordIds(long[] recordIds)
                                                                    throws ConfigurationServiceException
Gets DNS records by the internal record ids.

Specified by:
getDNSByRecordIds in interface DNSService
Parameters:
recordIds - Array of record ids to search for.
Returns:
A collection of records matching the record ids.
Throws:
ConfigurationServiceException

getDNSByType

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.DNSRecord> getDNSByType(int type)
                                                               throws ConfigurationServiceException
Gets all DNS records or a given type. Using type ANY will return all records in the store.

Specified by:
getDNSByType in interface DNSService
Parameters:
type - The record type to search for.
Returns:
A collection of records matching the record type.
Throws:
ConfigurationServiceException

getDNSCount

@FaultAction(className=ConfigurationFault.class)
public int getDNSCount()
                throws ConfigurationServiceException
Gets the number of records in the DNS store.

Specified by:
getDNSCount in interface DNSService
Returns:
The number of records in the DNS store.
Throws:
ConfigurationServiceException

removeDNS

@FaultAction(className=ConfigurationFault.class)
public void removeDNS(Collection<org.nhindirect.config.store.DNSRecord> records)
               throws ConfigurationServiceException
Removes DNS records matching the DNS records' name and type.

Specified by:
removeDNS in interface DNSService
Parameters:
records - Records to delete. Matching is done by name and type.
Throws:
ConfigurationServiceException

removeDNSByRecordId

public void removeDNSByRecordId(long recordId)
                         throws ConfigurationServiceException
Description copied from interface: DNSService
Removes a single DNS record by an existing internal record id.

Specified by:
removeDNSByRecordId in interface DNSService
Parameters:
recordId - The internal record id to delete.
Throws:
ConfigurationServiceException

removeDNSByRecordIds

@FaultAction(className=ConfigurationFault.class)
public void removeDNSByRecordIds(long[] recordIds)
                          throws ConfigurationServiceException
Removes DNS records by existing internal record ids.

Specified by:
removeDNSByRecordIds in interface DNSService
Parameters:
recordIds - The internal record ids to delete.
Throws:
ConfigurationServiceException

updateDNS

@FaultAction(className=ConfigurationFault.class)
public void updateDNS(long recordId,
                                                                   org.nhindirect.config.store.DNSRecord record)
               throws ConfigurationServiceException
Update a DNS record for a specific internal id. If a record does not exist, then an exception is thrown. The type cannot be ANY.

Specified by:
updateDNS in interface DNSService
Parameters:
recordId - The internal record id to update.
record - Data to update the record with.
Throws:
ConfigurationServiceException

getTrustBundles

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.TrustBundle> getTrustBundles(boolean fetchAnchors)
                                                                    throws ConfigurationServiceException
Gets a collection of all trust bundles in the system

Specified by:
getTrustBundles in interface TrustBundleService
Parameters:
fetchAnchors - Indicates if the anchors should be fetched. When only the trust bundle names are needed, it is desireable to suppress returning the list of anchors for efficiency.
Returns:
Collection of all trust bundles in the system. If no trust bundles have been configured, then an empty collection is returned.
Throws:
ConfigurationServiceException

getTrustBundleByName

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.TrustBundle getTrustBundleByName(String bundleName)
                                                             throws ConfigurationServiceException
Gets a specific trust bundle by name. Each trust bundle name is unique and case insensitive.

Specified by:
getTrustBundleByName in interface TrustBundleService
Parameters:
bundleName - The bundle name.
Returns:
The trust bundle specified by the name. If a bundle with the given name is not found, then null is returned.
Throws:
ConfigurationServiceException

getTrustBundleById

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.TrustBundle getTrustBundleById(long id)
                                                           throws ConfigurationServiceException
Gets a specific trust bundle by its internal id.

Specified by:
getTrustBundleById in interface TrustBundleService
Parameters:
id - The internal trust bundle id.
Returns:
The trust bundle specified by the id. If a bundle with the given id is not found, then null is returned.
Throws:
ConfigurationServiceException

addTrustBundle

@FaultAction(className=ConfigurationFault.class)
public void addTrustBundle(org.nhindirect.config.store.TrustBundle bundle)
                    throws ConfigurationServiceException
Adds a trust bundle to the system. The anchors should not be provided in the object as they will be downloaded. from the provided trust bundle URL.

Specified by:
addTrustBundle in interface TrustBundleService
Parameters:
bundle - The bundle to add.
Throws:
ConfigurationServiceException - Throw if a bundle with the same name already exists of if required properties are empty or null.

refreshTrustBundle

@FaultAction(className=ConfigurationFault.class)
public void refreshTrustBundle(long id)
                        throws ConfigurationServiceException
Forces an on demand refresh of a trust bundle regardless of its refresh internal.

Specified by:
refreshTrustBundle in interface TrustBundleService
Parameters:
id - The id of the trust bundle to refresh.
Throws:
ConfigurationServiceException

updateLastUpdateError

@FaultAction(className=ConfigurationFault.class)
public void updateLastUpdateError(long trustBundleId,
                                                                               Calendar attemptTime,
                                                                               org.nhindirect.config.store.BundleRefreshError error)
                           throws ConfigurationServiceException
Updates the last error that occurred when trying to download or refresh the bundle from its URL.

Specified by:
updateLastUpdateError in interface TrustBundleService
Parameters:
trustBundleId - The id of the bundle.
attemptTime - The time the bundle update was attempted
error - The reason for the error.
Throws:
ConfigurationServiceException

deleteTrustBundles

@FaultAction(className=ConfigurationFault.class)
public void deleteTrustBundles(long[] trustBundleIds)
                        throws ConfigurationServiceException
Deletes a set of trust bundle from the system. All associations to domains are deleted as well.

Specified by:
deleteTrustBundles in interface TrustBundleService
Parameters:
trustBundleIds - The ids of the bundles to delete.
Throws:
ConfigurationServiceException

updateTrustBundleSigningCertificate

@FaultAction(className=ConfigurationFault.class)
public void updateTrustBundleSigningCertificate(long trustBundleId,
                                                                                             org.nhindirect.config.store.Certificate signingCert)
                                         throws ConfigurationServiceException
Updates the signing certificate used to validate the authenticity of a bundle.

Specified by:
updateTrustBundleSigningCertificate in interface TrustBundleService
Parameters:
trustBundleId - The trust bundle id.
signingCert - The certificate used to sign the bundle
Throws:
ConfigurationServiceException

updateTrustBundleAttributes

@FaultAction(className=ConfigurationFault.class)
public void updateTrustBundleAttributes(long trustBundleId,
                                                                                     String bundleName,
                                                                                     String bundleUrl,
                                                                                     org.nhindirect.config.store.Certificate signingCert,
                                                                                     int refreshInterval)
                                 throws ConfigurationServiceException
Description copied from interface: TrustBundleService
Updates multiple attributes of a trust bundle.

Specified by:
updateTrustBundleAttributes in interface TrustBundleService
Parameters:
trustBundleId - The id of the bundle to update.
bundleName - The new bundle name. If empty or null, then the name is not updated. If the URL changes, a bundle refresh is forced.
bundleUrl - The new bundle url. If empty or null, then the url is not updated.
signingCert - The new certificate used to sign the bundle. The attributes will be applied even if the signingCert is null.
refreshInterval - The new refresh interval.
Throws:
ConfigurationServiceException

associateTrustBundleToDomain

@FaultAction(className=ConfigurationFault.class)
public void associateTrustBundleToDomain(long domainId,
                                                                                      long trustBundleId,
                                                                                      boolean incoming,
                                                                                      boolean outgoing)
                                  throws ConfigurationServiceException
Associates a domain to a trust bundle. Bundle associates are directional and may be set as incoming only, outgoing only, or incoming and outgoing.

Specified by:
associateTrustBundleToDomain in interface TrustBundleService
Parameters:
domainId - The id of the domain.
trustBundleId - The id of the trust bundle.
incoming - Indicates if the trust should allow incoming messages.
outgoing - Indicates if the trust should allow outgoing messages.
Throws:
ConfigurationServiceException

disassociateTrustBundleFromDomain

@FaultAction(className=ConfigurationFault.class)
public void disassociateTrustBundleFromDomain(long domainId,
                                                                                           long trustBundleId)
                                       throws ConfigurationServiceException
Dissociates a domain from a trust bundle.

Specified by:
disassociateTrustBundleFromDomain in interface TrustBundleService
Parameters:
domainId - The id of the domain
trustBundleId - The id of the trust bundle
Throws:
ConfigurationServiceException

disassociateTrustBundlesFromDomain

@FaultAction(className=ConfigurationFault.class)
public void disassociateTrustBundlesFromDomain(long domainId)
                                        throws ConfigurationServiceException
Dissociates a domain from all trust bundles.

Specified by:
disassociateTrustBundlesFromDomain in interface TrustBundleService
Parameters:
domainId - The id of the domain
Throws:
ConfigurationServiceException

disassociateTrustBundleFromDomains

@FaultAction(className=ConfigurationFault.class)
public void disassociateTrustBundleFromDomains(long trustBundleId)
                                        throws ConfigurationServiceException
Dissociates a trust bundle from all domains.

Specified by:
disassociateTrustBundleFromDomains in interface TrustBundleService
Parameters:
trustBundleId - The trust bundle id.
Throws:
ConfigurationServiceException

getTrustBundlesByDomain

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.TrustBundleDomainReltn> getTrustBundlesByDomain(long domainId,
                                                                                                                                           boolean fetchAnchors)
                                                                                       throws ConfigurationServiceException
Gets all trust bundles associated with a domain

Specified by:
getTrustBundlesByDomain in interface TrustBundleService
Parameters:
domainId - The domain id
fetchAnchors - Indicates if the anchors should be returned with each bundle. When only the trust bundle names are needed, it is desirable to suppress returning the list of anchors for efficiency.
Returns:
Collection of all trust bundles associated with a specific domain.
Throws:
ConfigurationServiceException

getPolicies

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.CertPolicy> getPolicies()
                                                               throws ConfigurationServiceException
Specified by:
getPolicies in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyByName

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.CertPolicy getPolicyByName(String policyName)
                                                       throws ConfigurationServiceException
Specified by:
getPolicyByName in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyById

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.CertPolicy getPolicyById(long id)
                                                     throws ConfigurationServiceException
Specified by:
getPolicyById in interface CertificatePolicyService
Throws:
ConfigurationServiceException

addPolicy

@FaultAction(className=ConfigurationFault.class)
public void addPolicy(org.nhindirect.config.store.CertPolicy policy)
               throws ConfigurationServiceException
Specified by:
addPolicy in interface CertificatePolicyService
Throws:
ConfigurationServiceException

deletePolicies

@FaultAction(className=ConfigurationFault.class)
public void deletePolicies(long[] policyIds)
                    throws ConfigurationServiceException
Specified by:
deletePolicies in interface CertificatePolicyService
Throws:
ConfigurationServiceException

updatePolicyAttributes

@FaultAction(className=ConfigurationFault.class)
public void updatePolicyAttributes(long id,
                                                                                String policyName,
                                                                                org.nhindirect.policy.PolicyLexicon lexicon,
                                                                                byte[] policyData)
                            throws ConfigurationServiceException
Specified by:
updatePolicyAttributes in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyGroups

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.CertPolicyGroup> getPolicyGroups()
                                                                        throws ConfigurationServiceException
Specified by:
getPolicyGroups in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyGroupByName

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.CertPolicyGroup getPolicyGroupByName(String policyGroupName)
                                                                 throws ConfigurationServiceException
Specified by:
getPolicyGroupByName in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyGroupById

@FaultAction(className=ConfigurationFault.class)
public org.nhindirect.config.store.CertPolicyGroup getPolicyGroupById(long id)
                                                               throws ConfigurationServiceException
Specified by:
getPolicyGroupById in interface CertificatePolicyService
Throws:
ConfigurationServiceException

addPolicyGroup

@FaultAction(className=ConfigurationFault.class)
public void addPolicyGroup(org.nhindirect.config.store.CertPolicyGroup group)
                    throws ConfigurationServiceException
Specified by:
addPolicyGroup in interface CertificatePolicyService
Throws:
ConfigurationServiceException

deletePolicyGroups

@FaultAction(className=ConfigurationFault.class)
public void deletePolicyGroups(long[] groupIds)
                        throws ConfigurationServiceException
Specified by:
deletePolicyGroups in interface CertificatePolicyService
Throws:
ConfigurationServiceException

updateGroupAttributes

@FaultAction(className=ConfigurationFault.class)
public void updateGroupAttributes(long id,
                                                                               String groupName)
                           throws ConfigurationServiceException
Specified by:
updateGroupAttributes in interface CertificatePolicyService
Throws:
ConfigurationServiceException

addPolicyUseToGroup

@FaultAction(className=ConfigurationFault.class)
public void addPolicyUseToGroup(long groupId,
                                                                             long policyId,
                                                                             org.nhindirect.config.store.CertPolicyUse policyUse,
                                                                             boolean incoming,
                                                                             boolean outgoing)
                         throws ConfigurationServiceException
Specified by:
addPolicyUseToGroup in interface CertificatePolicyService
Throws:
ConfigurationServiceException

removePolicyUseFromGroup

@FaultAction(className=ConfigurationFault.class)
public void removePolicyUseFromGroup(long policyGroupReltnId)
                              throws ConfigurationServiceException
Specified by:
removePolicyUseFromGroup in interface CertificatePolicyService
Throws:
ConfigurationServiceException

associatePolicyGroupToDomain

@FaultAction(className=ConfigurationFault.class)
public void associatePolicyGroupToDomain(long domainId,
                                                                                      long policyGroupId)
                                  throws ConfigurationServiceException
Specified by:
associatePolicyGroupToDomain in interface CertificatePolicyService
Throws:
ConfigurationServiceException

disassociatePolicyGroupFromDomain

@FaultAction(className=ConfigurationFault.class)
public void disassociatePolicyGroupFromDomain(long domainId,
                                                                                           long policyGroupId)
                                       throws ConfigurationServiceException
Specified by:
disassociatePolicyGroupFromDomain in interface CertificatePolicyService
Throws:
ConfigurationServiceException

disassociatePolicyGroupsFromDomain

@FaultAction(className=ConfigurationFault.class)
public void disassociatePolicyGroupsFromDomain(long domainId)
                                        throws ConfigurationServiceException
Specified by:
disassociatePolicyGroupsFromDomain in interface CertificatePolicyService
Throws:
ConfigurationServiceException

disassociatePolicyGroupFromDomains

@FaultAction(className=ConfigurationFault.class)
public void disassociatePolicyGroupFromDomains(long policyGroupId)
                                        throws ConfigurationServiceException
Specified by:
disassociatePolicyGroupFromDomains in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyGroupDomainReltns

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.CertPolicyGroupDomainReltn> getPolicyGroupDomainReltns()
                                                                                              throws ConfigurationServiceException
Specified by:
getPolicyGroupDomainReltns in interface CertificatePolicyService
Throws:
ConfigurationServiceException

getPolicyGroupsByDomain

@FaultAction(className=ConfigurationFault.class)
public Collection<org.nhindirect.config.store.CertPolicyGroupDomainReltn> getPolicyGroupsByDomain(long domainId)
                                                                                           throws ConfigurationServiceException
Specified by:
getPolicyGroupsByDomain in interface CertificatePolicyService
Throws:
ConfigurationServiceException


Copyright © 2014. All Rights Reserved.