Created
May 8, 2022 12:09
-
-
Save sirech/e269d6639172ad6a236c4a6a030f53e2 to your computer and use it in GitHub Desktop.
This file contains 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
private SyncFallbackCache<Collection<SupplierUserPermission>> permissions; | |
private Collection<SupplierUserPermission> getPermissions( | |
int userId, | |
int supplierId) { | |
return permissions.get( | |
() -> String.format("id:%s;suId:%s", userId, supplierId), | |
() -> client.getUserPermissions(userId, supplierId) | |
.getData() | |
.getSupplierUserMyInformation() | |
.getPermissions() | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment