2007-12-14 02:27:48 +00:00
|
|
|
package bigbank;
|
|
|
|
|
|
|
|
|
|
import org.springframework.security.annotation.Secured;
|
|
|
|
|
|
|
|
|
|
public interface BankService {
|
|
|
|
|
|
2008-03-28 00:44:42 +00:00
|
|
|
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
|
2007-12-14 02:27:48 +00:00
|
|
|
public Account readAccount(Long id);
|
|
|
|
|
|
2008-03-28 00:44:42 +00:00
|
|
|
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
|
2007-12-14 02:27:48 +00:00
|
|
|
public Account[] findAccounts();
|
|
|
|
|
|
|
|
|
|
@Secured("ROLE_TELLER")
|
|
|
|
|
public Account post(Account account, double amount);
|
|
|
|
|
}
|