Class AdminResource
- java.lang.Object
-
- de.adorsys.ledgers.middleware.rest.resource.AdminResource
-
- All Implemented Interfaces:
AdminResourceAPI
@RestController @MiddlewareResetResource @RequestMapping("/admin") public class AdminResource extends Object implements AdminResourceAPI
-
-
Field Summary
-
Fields inherited from interface de.adorsys.ledgers.middleware.rest.resource.AdminResourceAPI
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description AdminResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<CustomPageImpl<AccountDetailsExtendedTO>>accounts(String countryCode, String branchId, String branchLogin, String iban, Boolean blocked, int page, int size)org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>>admins(int page, int size)org.springframework.http.ResponseEntity<Boolean>changeStatus(String userId)org.springframework.http.ResponseEntity<List<UserTO>>getAllUsers()org.springframework.http.ResponseEntity<UserTO>register(UserTO user)org.springframework.http.ResponseEntity<Void>updatePassword(String branchId, String password)org.springframework.http.ResponseEntity<Void>user(UserTO user)org.springframework.http.ResponseEntity<CustomPageImpl<UserExtendedTO>>users(String countryCode, String branchId, String branchLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size)
-
-
-
Method Detail
-
getAllUsers
@PreAuthorize("hasAnyRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<List<UserTO>> getAllUsers()- Specified by:
getAllUsersin interfaceAdminResourceAPI
-
users
@PreAuthorize("hasRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<CustomPageImpl<UserExtendedTO>> users(String countryCode, String branchId, String branchLogin, String userLogin, UserRoleTO role, Boolean blocked, int page, int size)- Specified by:
usersin interfaceAdminResourceAPI
-
admins
@PreAuthorize("hasRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<CustomPageImpl<UserTO>> admins(int page, int size)- Specified by:
adminsin interfaceAdminResourceAPI
-
accounts
@PreAuthorize("hasRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<CustomPageImpl<AccountDetailsExtendedTO>> accounts(String countryCode, String branchId, String branchLogin, String iban, Boolean blocked, int page, int size)- Specified by:
accountsin interfaceAdminResourceAPI
-
updatePassword
@PreAuthorize("hasRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<Void> updatePassword(String branchId, String password)- Specified by:
updatePasswordin interfaceAdminResourceAPI
-
changeStatus
@PreAuthorize("hasRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<Boolean> changeStatus(String userId)- Specified by:
changeStatusin interfaceAdminResourceAPI
-
register
@PreAuthorize("hasRole(\'SYSTEM\')") public org.springframework.http.ResponseEntity<UserTO> register(UserTO user)- Specified by:
registerin interfaceAdminResourceAPI
-
user
@PreAuthorize("hasRole(\'SYSTEM\') and isEnabledUser(#user.id)") public org.springframework.http.ResponseEntity<Void> user(UserTO user)- Specified by:
userin interfaceAdminResourceAPI
-
-