Spring Security integration. Url intercept patterns

Hi all,

I’m trying to use url interceptors within a Spring/Spring-Security/Vaadin project.
I wanted to ask about the normal practices in Vaadin based applications about url-intercept patterns
How can, for instance, achieve to grant access to different views in the same UI, to different roles?
Something like:
/ui#!user ----> ROLE_USER
/ui#!admin → ROLE_ADMIN
Real example (spring-security.xml):

<security:intercept-url pattern="/ui/*" access="hasRole('ROLE_USER')"/> <security:intercept-url pattern="/ui/#!user" access="hasRole('ROLE_USER')"/> <security:intercept-url pattern="/ui/#!admin" access="hasRole('ROLE_ADMIN')"/> Thanks a lot in advance