org.nhindirect.config.service.impl
Class AnchorServiceImpl

java.lang.Object
  extended by org.nhindirect.config.service.impl.AnchorServiceImpl
All Implemented Interfaces:
AnchorService

public class AnchorServiceImpl
extends Object
implements AnchorService

Service class for methods related to an Anchor object.


Constructor Summary
AnchorServiceImpl()
           
 
Method Summary
 void addAnchors(Collection<Anchor> anchors)
          Add a collection of Anchors.
 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.
 AnchorDao getDao()
          Return the value of the AnchorDao 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.
 Collection<Anchor> listAnchors(Long lastAnchorID, int maxResults, CertificateGetOptions options)
          Get a collection of Anchors.
 void removeAnchors(Collection<Long> anchorIds)
          Remove an Anchor.
 void removeAnchorsForOwner(String owner)
          Remove the Anchors for an owner.
 void setAnchorStatusForOwner(String owner, EntityStatus status)
          Set an Anchor status for a given owner.
 void setDao(AnchorDao dao)
          Set the value of the AnchorDao object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorServiceImpl

public AnchorServiceImpl()
Method Detail

addAnchors

public void addAnchors(Collection<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

getAnchor

public 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

public Collection<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

public Collection<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

public Collection<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

public Collection<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

setAnchorStatusForOwner

public void setAnchorStatusForOwner(String owner,
                                    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

listAnchors

public Collection<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

removeAnchors

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

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

setDao

public void setDao(AnchorDao dao)
Set the value of the AnchorDao object.

Parameters:
dao - the value of the AnchorDao object.

getDao

public AnchorDao getDao()
Return the value of the AnchorDao object.

Returns:
the value of the AnchorDao object.


Copyright © 2010. All Rights Reserved.