@Controller public class AssertionController extends AbstractSecureController
| Modifier and Type | Field and Description |
|---|---|
protected AssertionUtils |
assertionUtils |
protected AuthService |
authService |
protected String |
registryUrl |
apiCheckUrl| Constructor and Description |
|---|
AssertionController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssertion(String recordUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
add an assertion
|
void |
addAssertionWithParams(String recordUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This version of the method can handle the situation where we use rowKeys as Uuids.
|
void |
addBulkAssertions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds a bulk list of assertions.
|
void |
deleteAssertion(String recordUuid,
String assertionUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Remove an assertion
|
void |
deleteAssertionWithParams(String recordUuid,
String assertionUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Removes an assertion
This version of the method can handle the situation where we use rowKeys as Uuids.
|
au.org.ala.biocache.model.QualityAssertion |
getAssertion(String recordUuid,
String assertionUuid,
javax.servlet.http.HttpServletResponse response)
Get single assertion
|
List<au.org.ala.biocache.model.QualityAssertion> |
getAssertions(String recordUuid)
Get user assertions
|
Object |
getAssertionWithParams(String recordUuid,
String assertionUuid,
javax.servlet.http.HttpServletResponse response) |
void |
setAssertionUtils(AssertionUtils assertionUtils) |
au.org.ala.biocache.vocab.ErrorCode[] |
showCodes()
Retrieve an array of the assertion codes in use by the processing system
|
au.org.ala.biocache.vocab.ErrorCode[] |
showGeospatialCodes() |
au.org.ala.biocache.vocab.ErrorCode[] |
showMiscellaneousCodes() |
au.org.ala.biocache.vocab.ErrorCode[] |
showTaxonomicCodes() |
au.org.ala.biocache.vocab.ErrorCode[] |
showTemporalCodes() |
au.org.ala.biocache.vocab.ErrorCode[] |
showUserCodes() |
isValidKey, shouldPerformOperation, shouldPerformOperation@Inject protected AssertionUtils assertionUtils
protected String registryUrl
@Inject protected AuthService authService
@RequestMapping(value={"/assertions/codes","/assertions/codes/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.vocab.ErrorCode[] showCodes()
throws Exception
Exception@RequestMapping(value={"/assertions/geospatial/codes","/assertions/geospatial/codes/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.vocab.ErrorCode[] showGeospatialCodes()
throws Exception
Exception@RequestMapping(value={"/assertions/taxonomic/codes","/assertions/taxonomic/codes/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.vocab.ErrorCode[] showTaxonomicCodes()
throws Exception
Exception@RequestMapping(value={"/assertions/temporal/codes","/assertions/temporal/codes/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.vocab.ErrorCode[] showTemporalCodes()
throws Exception
Exception@RequestMapping(value={"/assertions/miscellaneous/codes","/assertions/miscellaneous/codes/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.vocab.ErrorCode[] showMiscellaneousCodes()
throws Exception
Exception@RequestMapping(value={"/assertions/user/codes","/assertions/user/codes/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.vocab.ErrorCode[] showUserCodes()
throws Exception
Exception@RequestMapping(value="/occurrences/assertions/add",
method=POST)
public void addAssertionWithParams(@RequestParam(value="recordUuid",required=true)
String recordUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
recordUuid - request - response - Exception@RequestMapping(value="/bulk/assertions/add",
method=POST)
public void addBulkAssertions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
request - response - Exception@RequestMapping(value="/occurrences/{recordUuid}/assertions/add",
method=POST)
public void addAssertion(@PathVariable(value="recordUuid")
String recordUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="/occurrences/assertions/delete",
method=POST)
public void deleteAssertionWithParams(@RequestParam(value="recordUuid",required=true)
String recordUuid,
@RequestParam(value="assertionUuid",required=true)
String assertionUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
recordUuid - assertionUuid - request - response - Exception@RequestMapping(value="/occurrences/{recordUuid}/assertions/delete",
method=POST)
public void deleteAssertion(@PathVariable(value="recordUuid")
String recordUuid,
@RequestParam(value="assertionUuid",required=true)
String assertionUuid,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value={"/occurrences/assertions","/occurrences/assertions/"},
method=GET)
@ResponseBody
public Object getAssertionWithParams(@RequestParam(value="recordUuid",required=true)
String recordUuid,
@RequestParam(value="assertionUuid",required=false)
String assertionUuid,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value={"/occurrences/{recordUuid}/assertions/{assertionUuid}","/occurrences/{recordUuid}/assertions/{assertionUuid}/"},
method=GET)
@ResponseBody
public au.org.ala.biocache.model.QualityAssertion getAssertion(@PathVariable(value="recordUuid")
String recordUuid,
@PathVariable(value="assertionUuid")
String assertionUuid,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value={"/occurrences/{recordUuid}/assertions","/occurrences/{recordUuid}/assertions/"},
method=GET)
@ResponseBody
public List<au.org.ala.biocache.model.QualityAssertion> getAssertions(@PathVariable(value="recordUuid")
String recordUuid)
throws Exception
Exceptionpublic void setAssertionUtils(AssertionUtils assertionUtils)
Copyright © 2014. All rights reserved.