|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.resources.ProtectedResource
org.nhindirect.config.resources.AnchorResource
@Component public class AnchorResource
JAX-RS resource for managing anchor resources in the configuration service.
Although not required, this class is instantiated using the Jersey SpringServlet and dependencies are defined in the Sprint context XML file.
| Constructor Summary | |
|---|---|
AnchorResource()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnchorResource()
| Method Detail |
|---|
@Autowired public void setAnchorDao(org.nhindirect.config.store.dao.AnchorDao anchorDao)
dao - Anchor Dao
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||