@Component public class AnchorResource extends ProtectedResource
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor and Description |
|---|
AnchorResource()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addAnchor(javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Anchor anchor)
Adds an anchor to the system.
|
javax.ws.rs.core.Response |
getAnchorForOwner(boolean incoming,
boolean outgoing,
String thumbprint,
String owner)
Gets a set of list of anchor for a given owner of the anchor.
|
javax.ws.rs.core.Response |
getAnchors()
Gets all anchors in the system.
|
javax.ws.rs.core.Response |
removeAnchorsByIds(String ids)
Deletes anchor from the system by system id.
|
javax.ws.rs.core.Response |
removeAnchorsByOwner(String owner)
Delete all anchors for a specific owner.
|
void |
setAnchorDao(org.nhindirect.config.store.dao.AnchorDao anchorDao)
Sets the anchor Dao.
|
@Autowired public void setAnchorDao(org.nhindirect.config.store.dao.AnchorDao anchorDao)
dao - Anchor Daopublic javax.ws.rs.core.Response getAnchorForOwner(boolean incoming,
boolean outgoing,
String thumbprint,
String owner)
incoming - Returned anchors must be marked for use of incoming messages. Defaults to false meaning that no filter is applied.outgoing - Returned anchors must be marked for use of outgoing messages. Defaults to false meaning that no filter is applied.thumbprint - Returned anchors that match a specific thumbprint effectively limiting the number of returned anchors to 1.
Defaults to an empty string meaning that no filter is applied.owner - The owner to retrieve anchors for.public javax.ws.rs.core.Response getAnchors()
public javax.ws.rs.core.Response addAnchor(@Context
javax.ws.rs.core.UriInfo uriInfo,
org.nhindirect.config.model.Anchor anchor)
uriInfo - Injected URI context used for building the location URI.anchor - The anchor to add to the system.public javax.ws.rs.core.Response removeAnchorsByIds(String ids)
ids - List of ids to delete from the system.public javax.ws.rs.core.Response removeAnchorsByOwner(String owner)
owner - The owner to delete anchor from.Copyright © 2015. All Rights Reserved.