use of org.finra.herd.model.api.xml.ExpectedPartitionValueKey in project herd by FINRAOS.
the class ExpectedPartitionValueRestController method getExpectedPartitionValue.
/**
* Retrieves an existing expected partition value plus/minus an optional offset.
*
* @param partitionKeyGroupName the partition key group name
* @param expectedPartitionValue the expected partition value to retrieve plus/minus an optional offset
* @param offset the optional positive or negative offset
*
* @return the expected partition value
*/
@RequestMapping(value = EXPECTED_PARTITION_VALUES_URI_PREFIX + "/partitionKeyGroups/{partitionKeyGroupName}/expectedPartitionValues/{expectedPartitionValue}", method = RequestMethod.GET)
@Secured(SecurityFunctions.FN_EXPECTED_PARTITION_VALUES_GET)
public ExpectedPartitionValueInformation getExpectedPartitionValue(@PathVariable("partitionKeyGroupName") String partitionKeyGroupName, @PathVariable("expectedPartitionValue") String expectedPartitionValue, @RequestParam(value = "offset", required = false) Integer offset) {
ExpectedPartitionValueKey expectedPartitionValueKey = new ExpectedPartitionValueKey();
expectedPartitionValueKey.setPartitionKeyGroupName(partitionKeyGroupName);
expectedPartitionValueKey.setExpectedPartitionValue(expectedPartitionValue);
return expectedPartitionValueService.getExpectedPartitionValue(expectedPartitionValueKey, offset);
}
Aggregations