title: How to change Spring Security roles by context?
body: <p>I want to know if its possible to set roles based on a selected category. In our app there are categories which contain articles. Now we have a role hierarchy like this: <code>ROLE_ADMIN &gt; ROLE_EDITOR &gt; ROLE_USER</code>. The problem is that a user might have different roles based on the currently selected category:</p>
  
  <pre><code>user1 - cat1 - ROLE_USER
  
  user1 - cat2 - ROLE_EDITOR
  </code></pre>
  
  <p>The categories are not static. New ones can be added and older deleted. Is it possible to achieve this using Spring Security?</p>