public class AnchorServiceImpl extends java.lang.Object implements AnchorService
| Constructor and Description |
|---|
AnchorServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnchors(java.util.Collection<org.nhindirect.config.store.Anchor> anchors)
Add a collection of Anchors.
|
org.nhindirect.config.store.Anchor |
getAnchor(java.lang.String owner,
java.lang.String thumbprint,
CertificateGetOptions options)
Get an Anchor.
|
java.util.Collection<org.nhindirect.config.store.Anchor> |
getAnchors(java.util.Collection<java.lang.Long> anchorIds,
CertificateGetOptions options)
Get a collection of Anchors.
|
java.util.Collection<org.nhindirect.config.store.Anchor> |
getAnchorsForOwner(java.lang.String owner,
CertificateGetOptions options)
Get a collection of Anchors for an owner.
|
org.nhindirect.config.store.dao.AnchorDao |
getDao()
Return the value of the AnchorDao object.
|
java.util.Collection<org.nhindirect.config.store.Anchor> |
getIncomingAnchors(java.lang.String owner,
CertificateGetOptions options)
Get a collection of incoming Anchors.
|
java.util.Collection<org.nhindirect.config.store.Anchor> |
getOutgoingAnchors(java.lang.String owner,
CertificateGetOptions options)
Get a collection of outgoing Anchors.
|
java.util.Collection<org.nhindirect.config.store.Anchor> |
listAnchors(java.lang.Long lastAnchorID,
int maxResults,
CertificateGetOptions options)
Get a collection of Anchors.
|
void |
removeAnchors(java.util.Collection<java.lang.Long> anchorIds)
Remove an Anchor.
|
void |
removeAnchorsForOwner(java.lang.String owner)
Remove the Anchors for an owner.
|
void |
setAnchorStatusForOwner(java.lang.String owner,
org.nhindirect.config.store.EntityStatus status)
Set an Anchor status for a given owner.
|
void |
setDao(org.nhindirect.config.store.dao.AnchorDao dao)
Set the value of the AnchorDao object.
|
public void addAnchors(java.util.Collection<org.nhindirect.config.store.Anchor> anchors)
throws ConfigurationServiceException
AnchorServiceaddAnchors in interface AnchorServiceanchors - A collection of Anchors.ConfigurationServiceExceptionpublic org.nhindirect.config.store.Anchor getAnchor(java.lang.String owner,
java.lang.String thumbprint,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorServicegetAnchor in interface AnchorServiceowner - The Anchor owner.thumbprint - The Anchor thumbprint.options - The Anchor options.ConfigurationServiceExceptionpublic java.util.Collection<org.nhindirect.config.store.Anchor> getAnchors(java.util.Collection<java.lang.Long> anchorIds,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorServicegetAnchors in interface AnchorServiceanchorIds - A collection of Anchor IDs.options - The Anchor options.ConfigurationServiceExceptionpublic java.util.Collection<org.nhindirect.config.store.Anchor> getAnchorsForOwner(java.lang.String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorServicegetAnchorsForOwner in interface AnchorServiceowner - The Anchor owner.options - The Anchor options.ConfigurationServiceExceptionpublic java.util.Collection<org.nhindirect.config.store.Anchor> getIncomingAnchors(java.lang.String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorServicegetIncomingAnchors in interface AnchorServiceowner - The Anchor owner.options - The Anchor options.ConfigurationServiceExceptionpublic java.util.Collection<org.nhindirect.config.store.Anchor> getOutgoingAnchors(java.lang.String owner,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorServicegetOutgoingAnchors in interface AnchorServiceowner - The Anchor owner.options - The Anchor options.ConfigurationServiceExceptionpublic void setAnchorStatusForOwner(java.lang.String owner,
org.nhindirect.config.store.EntityStatus status)
throws ConfigurationServiceException
AnchorServicesetAnchorStatusForOwner in interface AnchorServiceowner - The anchor owner.status - The anchor status.ConfigurationServiceExceptionpublic java.util.Collection<org.nhindirect.config.store.Anchor> listAnchors(java.lang.Long lastAnchorID,
int maxResults,
CertificateGetOptions options)
throws ConfigurationServiceException
AnchorServicelistAnchors in interface AnchorServicelastAnchorID - The last Anchor ID.maxResults - The maximum number of results.options - The Anchor options.ConfigurationServiceExceptionpublic void removeAnchors(java.util.Collection<java.lang.Long> anchorIds)
throws ConfigurationServiceException
AnchorServiceremoveAnchors in interface AnchorServiceanchorIds - A collection of Anchor IDs.ConfigurationServiceExceptionpublic void removeAnchorsForOwner(java.lang.String owner)
throws ConfigurationServiceException
AnchorServiceremoveAnchorsForOwner in interface AnchorServiceowner - The Anchor owner.ConfigurationServiceException@Autowired public void setDao(org.nhindirect.config.store.dao.AnchorDao dao)
dao - the value of the AnchorDao object.public org.nhindirect.config.store.dao.AnchorDao getDao()
Copyright © 2018. All Rights Reserved.