Created
August 8, 2017 14:19
-
-
Save gitjs77/ff00b23f11169062931e283bfe864a02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Set card display order | |
* Moved to Querydsl. | |
* | |
* @param id - card id | |
* @param displayOrder - value of the display order | |
* @URL /customer | |
* @Test Tested in CardResourceCustomerTest.testSetCardDisplayOrder | |
* {@see com.infin.it.ibank.card.CardResourceCustomerTest#testSetCardDisplayOrderPositive()} | |
*/ | |
@RequestMapping(method = RequestMethod.PUT, path = "/{id}/display-order") | |
@PreAuthorize("hasAuthority('corpCards_view')") | |
public void setCardDisplayOrder(@PathVariable final Long id, @RequestBody final DisplayOrder displayOrder) { | |
IdValidator.validate(id, THIS_CLASS); | |
CommonValidator.validateObjectOnNull(displayOrder, "displayOrder", THIS_CLASS); | |
cardService.setCardtDisplayOrder(id, displayOrder.displayOrder); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment