Class AccountAccessMethodSecurityExpressionRoot
- java.lang.Object
-
- org.springframework.security.access.expression.SecurityExpressionRoot
-
- de.adorsys.ledgers.middleware.rest.security.SecurityExpressionAdapter
-
- de.adorsys.ledgers.middleware.rest.security.AccountAccessMethodSecurityExpressionRoot
-
- All Implemented Interfaces:
org.springframework.security.access.expression.method.MethodSecurityExpressionOperations,org.springframework.security.access.expression.SecurityExpressionOperations
public class AccountAccessMethodSecurityExpressionRoot extends SecurityExpressionAdapter
-
-
Field Summary
-
Fields inherited from class de.adorsys.ledgers.middleware.rest.security.SecurityExpressionAdapter
accountService, authMapper, paymentService, scaService, userManagementService
-
-
Constructor Summary
Constructors Constructor Description AccountAccessMethodSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, MiddlewareAccountManagementService accountService, MiddlewarePaymentService paymentService, KeycloakAuthMapper authMapper, MiddlewareUserManagementService userManagementService, MiddlewareRedirectScaService scaService)
-
Method Summary
-
Methods inherited from class de.adorsys.ledgers.middleware.rest.security.SecurityExpressionAdapter
getFilterObject, getReturnObject, getThis, setFilterObject, setReturnObject
-
Methods inherited from class org.springframework.security.access.expression.SecurityExpressionRoot
denyAll, getAuthentication, getPrincipal, hasAnyAuthority, hasAnyRole, hasAuthority, hasPermission, hasPermission, hasRole, isAnonymous, isAuthenticated, isFullyAuthenticated, isRememberMe, permitAll, setDefaultRolePrefix, setPermissionEvaluator, setRoleHierarchy, setTrustResolver
-
-
-
-
Constructor Detail
-
AccountAccessMethodSecurityExpressionRoot
public AccountAccessMethodSecurityExpressionRoot(org.springframework.security.core.Authentication authentication, MiddlewareAccountManagementService accountService, MiddlewarePaymentService paymentService, KeycloakAuthMapper authMapper, MiddlewareUserManagementService userManagementService, MiddlewareRedirectScaService scaService)
-
-
Method Detail
-
isNewStaffUser
public boolean isNewStaffUser(UserTO user)
-
hasManagerAccessToAccountIban
public boolean hasManagerAccessToAccountIban(String iban)
-
hasManagerAccessToAccountId
public boolean hasManagerAccessToAccountId(String accountId)
-
isNewAccountAndCanBeCreatedForUser
public boolean isNewAccountAndCanBeCreatedForUser(AccountDetailsTO account, String userId)
-
hasManagerAccessToUser
public boolean hasManagerAccessToUser(String userId)
-
isSameUser
public boolean isSameUser(String userId)
-
hasAccessToAccountByPaymentId
public boolean hasAccessToAccountByPaymentId(String paymentId)
-
hasAccessToAccountsWithIbans
public boolean hasAccessToAccountsWithIbans(Collection<String> ibans)
-
hasAccessToAccount
public boolean hasAccessToAccount(String accountId)
-
hasAccessToAccountWithIban
public boolean hasAccessToAccountWithIban(String iban)
-
accountInfoByIdentifier
public boolean accountInfoByIdentifier(AccountIdentifierTypeTO type, String accountIdentifier)
-
isEnabledAccount
public boolean isEnabledAccount(String accountId)
-
hasAccessToAccountsByLogin
public boolean hasAccessToAccountsByLogin(String login, List<AccountReferenceTO> references)
-
isEnabledUser
public boolean isEnabledUser(String userId)
-
hasScaScope
public boolean hasScaScope()
-
hasPartialScope
public boolean hasPartialScope()
-
hasAccessToAccountByScaOperation
public boolean hasAccessToAccountByScaOperation(StartScaOprTO opr)
-
hasAccessToAccountByAuthorizationId
public boolean hasAccessToAccountByAuthorizationId(String authorizationId)
-
-