1
0
mirror of synced 2026-08-01 15:57:05 +00:00
Files
spring-security/samples/tutorial-xml/src/main/java/bigbank/BankService.java
T

17 lines
407 B
Java
Raw Normal View History

package bigbank;
import org.springframework.security.access.prepost.PreAuthorize;
public interface BankService {
public Account readAccount(Long id);
public Account[] findAccounts();
@PreAuthorize(
"hasRole('supervisor') or " +
"hasRole('teller') and (#account.balance + #amount >= -#account.overdraft)" )
public Account post(Account account, double amount);
}